X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FMakefile.in;h=96c6f49784eb81b9d5459a243d44a6fa5ef26ce2;hb=16f76cd3859f1674d2296a9600a2b662bb3b30ab;hp=f2661ed574dd3493c1585192962f80df23241c41;hpb=af592d11b560856f33b6e6a0b2fe64d977cc26a0;p=fw%2Fsdcc diff --git a/src/Makefile.in b/src/Makefile.in index f2661ed5..96c6f497 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -8,15 +8,21 @@ include $(PRJDIR)/Makefile.common USE_ALT_LEX = 0 -PORTS = mcs51 z80 avr ds390 +PORTS = mcs51 z80 avr ds390 pic PORT_LIBS = $(PORTS:%=%/port.a) +ifeq ($(DISABLE_GC),1) +LIBS = -lm @LIBS@ +else LIBS = -lgc -lm @LIBS@ ifeq ($(HAVE_LIBGC), 1) else LIBDIRS = -L$(PRJDIR)/support/gc LIBGC = $(PRJDIR)/support/gc/libgc.a endif +endif + +#CFLAGS += -Werror ifdef SDCC_SUB_VERSION CFLAGS += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\" @@ -40,11 +46,10 @@ endif SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) TARGET = $(PRJDIR)/bin/sdcc -PACKIHX = $(PRJDIR)/bin/packihx # Compiling entire program or any subproject # ------------------------------------------ -all: ports checkconf $(LIBGC) $(TARGET) $(PACKIHX) +all: ports checkconf $(LIBGC) $(TARGET) ports: for i in $(PORTS); do $(MAKE) -C $$i; done @@ -56,14 +61,13 @@ $(PRJDIR)/support/gc/libgc.a: # --------------------------------------------------- install: all installdirs $(INSTALL) -s $(TARGET) $(bindir)/sdcc - $(INSTALL) $(PACKIHX) $(bindir)/packihx # Deleting all the installed files # -------------------------------- uninstall: rm -f $(bindir)/sdcc - + rm -f $(bindir)/packihx # Performing self-test # -------------------- @@ -97,10 +101,6 @@ include clean.mk $(TARGET): $(OBJECTS) $(PORT_LIBS) $(CC) -o $@ $(OBJECTS) $(PORT_LIBS) $(LIBDIRS) $(LIBS) -$(PACKIHX): packihx - $(INSTALL) packihx $(PACKIHX) - - .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@