X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common.in;h=cd240618d49878259e2aeb5c860726ca6c01a3c4;hb=066a38adf95543bf8d29724681fa0303d67f0bfc;hp=0a8a494df21abdbc24837cd1607fc61318e7a0cd;hpb=5c2bdee638bae9ecf59f628e9543624e1fd76d7c;p=fw%2Fsdcc diff --git a/Makefile.common.in b/Makefile.common.in index 0a8a494d..cd240618 100644 --- a/Makefile.common.in +++ b/Makefile.common.in @@ -20,7 +20,7 @@ INSTALL = @INSTALL@ YACC = @YACC@ LEX = @LEX@ AWK = @AWK@ - +STRIP = @STRIP@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -32,18 +32,26 @@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ +docdir = @datadir@/doc/sdcc + +# 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 -HAVE_LIBGC = @HAVE_LIBGC@ + DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@) -CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) -ifeq ($(HAVE_LIBGC),1) -else -CPPFLAGS += -I$(PRJDIR)/support -endif +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. @@ -51,4 +59,6 @@ M_OR_MM = @M_OR_MM@ # 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)