aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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