Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
[fw/sdcc] / src / Makefile.in
index b00d18c73c5e4678d9f7b5174621d85c03a03055..8aa40707f5cc8ce5a13ffb764541be87fdef0d13 100644 (file)
@@ -43,10 +43,12 @@ TARGET              = $(PRJDIR)/bin/sdcc$(EXEEXT)
 
 # Compiling entire program or any subproject
 # ------------------------------------------
-all: ports checkconf $(TARGET)
+all: checkconf $(TARGET)
 
-ports:
-       for i in $(PORTS); do $(MAKE) -C $$i; done
+*/port.a: FORCE 
+       $(MAKE) -C `dirname $@`
+FORCE:
 
 $(PRJDIR)/support/gc/libgc.a:
        cd $(PRJDIR)/support/gc && $(MAKE)