PIC port on going development.most of addition, arrays, pointers,
[fw/sdcc] / src / Makefile.in
index f2661ed574dd3493c1585192962f80df23241c41..96c6f49784eb81b9d5459a243d44a6fa5ef26ce2 100644 (file)
@@ -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 $@