X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common.in;h=eb8abd765338eee9836471ead0d0dc626857d230;hb=358bb36a50196d00ce93614ea02553cd1743e5e4;hp=55bb167f3e75a5c9831b6ffb37ab59f70e4d38e4;hpb=f42f6705998596542ceadc46940ab6acd42e6d3a;p=fw%2Fsdcc diff --git a/Makefile.common.in b/Makefile.common.in index 55bb167f..eb8abd76 100644 --- a/Makefile.common.in +++ b/Makefile.common.in @@ -2,9 +2,6 @@ # # -# HACK -PORT = mcs51 - # Version VERSION = @VERSION@ VERSIONHI = @VERSIONHI@ @@ -20,7 +17,7 @@ INSTALL = @INSTALL@ YACC = @YACC@ LEX = @LEX@ AWK = @AWK@ - +STRIP = @STRIP@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -32,18 +29,31 @@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ +docdir = @datadir@/doc + +# Modules to enable/disable +OPT_ENABLE_UCSIM = @OPT_ENABLE_UCSIM@ +OPT_ENABLE_DEVICE_LIB_BUILD = @OPT_ENABLE_DEVICE_LIB_BUILD@ +OPT_ENABLE_PACKIHX = @OPT_ENABLE_PACKIHX@ + +SLIB = $(PRJDIR)/support/Util + +transform = @program_transform_name@ # Flags + DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@) -CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) +CPPFLAGS = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB) CFLAGS = @CFLAGS@ -Wall M_OR_MM = @M_OR_MM@ +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 # directory. # Library compilation options -SCC = $(PRJDIR)/src/sdcc -SAS = $(PRJDIR)/as/$(PORT)/as -CLEANSPEC = *.lst *.asm *.sym *~ *.cdb +CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul + +OBJ = $(SOURCES:.c=.o)