X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common.in;h=ea00cf7f6312f1019dd8d281ee9cea4e238b4f83;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=4f5935f673327c0785eac1982291081940751b5c;hpb=ad747cdb5754c81947b3191c18031c4a809e39a4;p=fw%2Fsdcc diff --git a/Makefile.common.in b/Makefile.common.in index 4f5935f6..ea00cf7f 100644 --- a/Makefile.common.in +++ b/Makefile.common.in @@ -2,9 +2,6 @@ # # -# HACK -PORT = mcs51 - # Version VERSION = @VERSION@ VERSIONHI = @VERSIONHI@ @@ -17,7 +14,7 @@ CC = @CC@ CPP = @CPP@ RANLIB = @RANLIB@ INSTALL = @INSTALL@ -YACC = @YACC@ +YACC = @YACC@ LEX = @LEX@ AWK = @AWK@ STRIP = @STRIP@ @@ -32,6 +29,11 @@ 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@ @@ -40,22 +42,24 @@ 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 = @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 *.dep *.rul OBJ = $(SOURCES:.c=.o)