Started PIC port (based on mcs51 port)
[fw/sdcc] / Makefile
index 1b3c8d2378e7a097ebe4a7343c07192924e642e5..e24d27060ce8dadd0b2cb61912581640672131b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,14 @@
 #
 #
 
+
 SHELL          = /bin/sh
 AUTOCONF       = autoconf
 
 PRJDIR         = .
+srcdir          = .
+include $(srcdir)/Makefile.common
+
 SDCC_MISC      = debugger/mcs51 sim/ucsim
 SDCC_LIBS      = support/cpp
 SDCC_ASLINK    = as/mcs51 as link
@@ -17,7 +21,6 @@ PKGS_TINI     = $(SDCC_LIBS) $(SDCC_ASLINK) \
                  src device/include $(SDCC_PACKIHX)
 PORTS          = mcs51 z80
 
-srcdir          = .
 
 # Compiling entire program or any subproject
 # ------------------------------------------
@@ -26,10 +29,14 @@ all: checkconf sdcc
 tini: checkconf sdcc-tini
 
 sdcc-libs:
+ifeq ($(DISABLE_GC),1)
+       : skip boehm library when disabled by hand.
+else
 ifeq ($(CROSS_LIBGC),1)
        $(MAKE) -C support/gc -f Makefile.cross
 else
        $(MAKE) -C support/gc
+endif
 endif
        for lib in $(SDCC_LIBS); do $(MAKE) -C $$lib; done