From: pjs Date: Thu, 30 Aug 2001 21:18:16 +0000 (+0000) Subject: Only build each library if configure listed it in ports.build. The X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=77037e3743d15f7bc5cc15576500796f3a1ce5f7;p=fw%2Fsdcc Only build each library if configure listed it in ports.build. The ds390 port had this test... I just put it around the others too. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1196 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index ff773e56..cc175882 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -90,9 +90,11 @@ all: checkconf models model-ds390 model-z80 model-gbz80 objects: build-dir $(OBJECTS) port-specific-objects lib-files models: - for model in $(MODELS); do \ - $(MAKE) MODELFLAGS="--model-$$model" PORT=$$model objects; \ - done + if [ "`grep mcs51 ../../ports.build`" = mcs51 ]; then \ + for model in $(MODELS); do \ + $(MAKE) MODELFLAGS="--model-$$model" PORT=$$model objects; \ + done \ + fi model-ds390: if [ "`grep ds390 ../../ports.build`" = ds390 ]; then \ @@ -100,10 +102,14 @@ model-ds390: fi model-z80: - $(MAKE) MODELFLAGS="-mz80" PORT=z80 objects-z80 OEXT=.o + if [ "`grep z80 ../../ports.build`" = z80 ]; then \ + $(MAKE) MODELFLAGS="-mz80" PORT=z80 objects-z80 OEXT=.o; \ + fi model-gbz80: - $(MAKE) MODELFLAGS="-mgbz80" PORT=gbz80 objects-z80 OEXT=.o + if [ "`grep z80 ../../ports.build`" = z80 ]; then \ + $(MAKE) MODELFLAGS="-mgbz80" PORT=gbz80 objects-z80 OEXT=.o; \ + fi objects-z80: build-dir $(Z80OBJECTS) port-specific-objects cd $(PORTDIR); ls *$(OEXT) > $(PORT).lib