alloca() chokes badly on Borland
[fw/sdcc] / Makefile
index 1b3c8d2378e7a097ebe4a7343c07192924e642e5..fe11386e14f05206b1899645aa110e5ba2c3d21a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,15 @@
 #
 #
 
+CFLAGS+=-g
+
 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
@@ -15,9 +20,8 @@ PKGS          = $(SDCC_MISC) $(SDCC_LIBS) $(SDCC_ASLINK) \
                  src device/include device/lib $(SDCC_PACKIHX)
 PKGS_TINI      = $(SDCC_LIBS) $(SDCC_ASLINK) \
                  src device/include $(SDCC_PACKIHX)
-PORTS          = mcs51 z80
-
-srcdir          = .
+PORTS          = $(shell cat ports.build)
+ALLPORTS       = $(shell cat ports.all)
 
 # Compiling entire program or any subproject
 # ------------------------------------------
@@ -26,11 +30,6 @@ all: checkconf sdcc
 tini: checkconf sdcc-tini
 
 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