* sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
[fw/sdcc] / Makefile.common.in
index 90d0edcbae3ed1190bfe8ec5fa5ab990691fd7b3..405c8bb026ae9fdd6e5cf9003545a9a00e361bdf 100644 (file)
@@ -41,16 +41,18 @@ OPT_ENABLE_PACKIHX = @OPT_ENABLE_PACKIHX@
 
 SLIB                   = $(PRJDIR)/support/Util
 
+EXEEXT          = @EXEEXT@
 transform       = @program_transform_name@
 
 # Flags
 
-DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
-CPPFLAGS        = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
-CFLAGS          = -Wall @CFLAGS@
+DEFS           += $(subs -DHAVE_CONFIG_H,,@DEFS@)
+CPPFLAGS       += $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
+CFLAGS         += -Wall @CFLAGS@
+LDFLAGS        += @LDFLAGS@
 M_OR_MM         = @M_OR_MM@
 
-EXTRALIBS      = @LIBS@
+EXTRALIBS      += @LIBS@
 
 # Shared settings between all the sub Makefiles
 # Done here so that we don't have to start a Make from the top levelport