Go to single file .html
[fw/sdcc] / Makefile
index e24d27060ce8dadd0b2cb61912581640672131b7..06df59a909f10143208dfaa7de3d384951918fa1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 #
 #
 
+CFLAGS+=-g
 
 SHELL          = /bin/sh
 AUTOCONF       = autoconf
@@ -15,12 +16,12 @@ SDCC_LIBS   = support/cpp
 SDCC_ASLINK    = as/mcs51 as link
 SDCC_PACKIHX   = packihx
 
-PKGS           = $(SDCC_MISC) $(SDCC_LIBS) $(SDCC_ASLINK) \
-                 src device/include device/lib $(SDCC_PACKIHX)
+PKGS           = src $(SDCC_ASLINK) $(SDCC_PACKIHX) $(SDCC_MISC) \
+                 $(SDCC_LIBS) device/include device/lib
 PKGS_TINI      = $(SDCC_LIBS) $(SDCC_ASLINK) \
                  src device/include $(SDCC_PACKIHX)
-PORTS          = mcs51 z80
-
+PORTS          = $(shell cat ports.build)
+ALLPORTS       = $(shell cat ports.all)
 
 # Compiling entire program or any subproject
 # ------------------------------------------
@@ -29,15 +30,6 @@ 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
 
 sdcc-cc: sdcc-libs