Fixed add, sub for sizeof == 2
[fw/sdcc] / Makefile
index 9cc27724a4da72ab105b2b898aa4605e11765a79..0b34350ae74a1adb9d06ec4a47f728b019a4326f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ AUTOCONF        = autoconf
 
 PRJDIR         = .
 PKGS           = debugger/mcs51 sim/ucsim
-SDCC_LIBS      = support/gc support/cpp
+SDCC_LIBS      = support/cpp
 SDCC_ASLINK    = as/mcs51 as link
 
 PRJS           = sim/ucsim
@@ -20,6 +20,11 @@ srcdir          = .
 all: checkconf sdcc
 
 sdcc-libs:
+ifeq ($(CROSS_LIBGC),1)
+       $(MAKE) -C support/gc -f Makefile.cross
+else
+       $(MAKE) -C support/gc
+endif
        for lib in $(SDCC_LIBS); do $(MAKE) -C $$lib; done
 
 sdcc-cc: sdcc-libs
@@ -40,7 +45,7 @@ sdcc: sdcc-cc sdcc-aslink sdcc-misc sdcc
        $(MAKE) -f main.mk all
 
 # Some interesting sub rules
-sdcc-bin: sdcc-cc sdcc-aslink
+sdcc-bin: sdcc-cc sdcc-aslink sdcc-misc
 
 # Compiling and installing everything and runing test
 # ---------------------------------------------------