X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common.in;h=5f73360c682764904a39372c9be38a3b7f16b8cc;hb=81096b2cb05e1aa87dec1b0a02d11754f7f1ed6d;hp=73ef6bec513c0911675064559b29653ca6a07aef;hpb=a3d1759c37fa399c45561eda23f696dd25cd5b62;p=fw%2Fsdcc diff --git a/Makefile.common.in b/Makefile.common.in index 73ef6bec..5f73360c 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@ @@ -31,19 +28,49 @@ mandir = @mandir@ 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_DISABLE_AVR = @OPT_DISABLE_AVR@ +OPT_DISABLE_DS390 = @OPT_DISABLE_DS390@ +OPT_DISABLE_DS400 = @OPT_DISABLE_DS400@ +OPT_DISABLE_HC08 = @OPT_DISABLE_HC08@ +OPT_DISABLE_MCS51 = @OPT_DISABLE_MCS51@ +OPT_DISABLE_PIC = @OPT_DISABLE_PIC@ +OPT_DISABLE_PIC16 = @OPT_DISABLE_PIC16@ +OPT_DISABLE_XA51 = @OPT_DISABLE_XA51@ +OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@ + +OPT_DISABLE_UCSIM = @OPT_DISABLE_UCSIM@ +OPT_DISABLE_DEVICE_LIB= @OPT_DISABLE_DEVICE_LIB@ +OPT_DISABLE_PACKIHX = @OPT_DISABLE_PACKIHX@ +OPT_ENABLE_DOC = @OPT_ENABLE_DOC@ +OPT_DISABLE_SDCPP = @OPT_DISABLE_SDCPP@ + +SLIB = $(top_builddir)support/Util + +EXEEXT = @EXEEXT@ +transform = @program_transform_name@ # Flags -DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@) -CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) -I$(PRJDIR)/support -CFLAGS = @CFLAGS@ -Wall + +DEFS += $(subs -DHAVE_CONFIG_H,,@DEFS@) +CPPFLAGS += $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir) +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)