From d2f0861ae0494eb658dd7e8bfac086b826f40d85 Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 9 Mar 2001 13:17:32 +0000 Subject: [PATCH] skip libds390 if --disable-ds390-port git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@677 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/lib/Makefile.in | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index b172d312..b8e1548b 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -73,12 +73,14 @@ models: done modelDS390: - test -d ds390 || mkdir ds390 - rm -f ds390/*.lib - $(MAKE) CFLAGS="$(CFLAGS) -mds390" objects - cd ds390; $(MAKE) - cp *.lib ds390 - mv *.rel *.asm *.cdb ds390 + if [ "`grep ds390 ../../ports.build`" = ds390 ]; then \ + test -d ds390 || mkdir ds390; \ + rm -f ds390/*.lib; \ + $(MAKE) CFLAGS="$(CFLAGS) -mds390" objects; \ + cd ds390; $(MAKE); \ + cp *.lib ds390; \ + mv *.rel *.asm *.cdb ds390; \ + fi # Compiling and installing everything and runing test # --------------------------------------------------- -- 2.47.2