X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common.in;h=ea00cf7f6312f1019dd8d281ee9cea4e238b4f83;hb=195ee3f3ee25ce2c5f2a59fbd2779c4cb80527c3;hp=21371161de57e046659449969bbba9ab96bff291;hpb=4726c45887ee4dd2fc2a58b94ff5abc2fd4cd6fd;p=fw%2Fsdcc diff --git a/Makefile.common.in b/Makefile.common.in index 21371161..ea00cf7f 100644 --- a/Makefile.common.in +++ b/Makefile.common.in @@ -2,9 +2,6 @@ # # -# HACK -PORT = mcs51 - # Version VERSION = @VERSION@ VERSIONHI = @VERSIONHI@ @@ -17,10 +14,10 @@ CC = @CC@ CPP = @CPP@ RANLIB = @RANLIB@ INSTALL = @INSTALL@ -YACC = @YACC@ +YACC = @YACC@ LEX = @LEX@ AWK = @AWK@ - +STRIP = @STRIP@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -32,28 +29,37 @@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ +docdir = @docdir@ +DESTDIR = + +include_dir_suffix = @include_dir_suffix@ +lib_dir_suffix = @lib_dir_suffix@ + +# 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 + +EXEEXT = @EXEEXT@ +transform = @program_transform_name@ # Flags -HAVE_LIBGC = @HAVE_LIBGC@ -DISABLE_GC = @DISABLE_GC@ -DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@) -CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) -ifeq ($(DISABLE_GC),1) -# Skip the Boehm GC library in special, manually configured cases. -else -ifeq ($(HAVE_LIBGC),1) -else -CPPFLAGS += -I$(PRJDIR)/support -endif -endif -CFLAGS = @CFLAGS@ -Wall + +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@ + # 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)