summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-12-01 13:21:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-12-01 13:21:47 -0800
commit0bf7bc5d2e0e3447568a18312733949ebbbbf8a6 (patch)
treec83c8be07c4676aab75aa75e38246bcf5287d4d9
parent5691a17ee9243df2248a987a103c8b56b4ac268e (diff)
downloadsyslinux-0bf7bc5d2e0e3447568a18312733949ebbbbf8a6.tar.gz
core/Makefile: fix dependency generation with old versions of NASM
Fix dependency generation with certain old versions of NASM, which omitted the '\n' between dependency lines. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index 638004cd..1106b4cf 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -119,10 +119,15 @@ clean: tidy
spotless: clean
rm -f $(BTARGET) *_bin.c .depend
+# Note: the extra echo '' is to deal with old versions of NASM which
+# did not properly terminate the dependency list.
.depend:
rm -f .depend
for csrc in $(CSRC) ; do $(CC) $(INCLUDE) -MM $$csrc >> .depend ; done
- for nsrc in $(NASMSRC) ; do $(NASM) -DDEPEND $(NINCLUDE) -o `echo $$nsrc | sed -e 's/\.asm/\.o/'` -M $$nsrc >> .depend ; done
+ for nsrc in $(NASMSRC) ; do \
+ ( $(NASM) -DDEPEND $(NINCLUDE) -o \
+ `echo $$nsrc | sed -e 's/\.asm/\.o/'` -M $$nsrc ; \
+ echo '' ) >> .depend ; done
depend:
rm -f .depend