aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2002-10-24 20:39:15 +0000
committerhpa <hpa>2002-10-24 20:39:15 +0000
commitc58494429df0ef0f73cab746a0ad97bd706a55ef (patch)
treed25b961b2bec8b9bfdda16f9f56afef83c268488
parent816932ec84dbea9dc1f212a6ac749d077689febc (diff)
downloadsyslinux-c58494429df0ef0f73cab746a0ad97bd706a55ef.tar.gz
syslinux-c58494429df0ef0f73cab746a0ad97bd706a55ef.tar.xz
syslinux-c58494429df0ef0f73cab746a0ad97bd706a55ef.zip
Fix dependencies
-rw-r--r--memdisk/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/memdisk/Makefile b/memdisk/Makefile
index cee164df..ebc572a9 100644
--- a/memdisk/Makefile
+++ b/memdisk/Makefile
@@ -63,8 +63,8 @@ spotless: clean
%.i: %.c
$(CC) $(INCLUDE) $(CFLAGS) -E -o $@ $<
+# Cancel default rule
%.o: %.c
- $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $<
%.bin: %.asm
$(NASM) -f bin $(NINCLUDE) -o $@ -l $*.lst $<
@@ -84,9 +84,12 @@ memdisk.o: memdisk.bin
.depend:
rm -f .depend
- for csrc in $(CSRC) ; do $(CC) $(INCLUDE) -M $$csrc >> .depend ; done
+ for csrc in *.c ; do $(CC) $(INCLUDE) -M $$csrc | sed -e 's/\.o/\.s/' >> .depend ; done
for ssrc in $(SSRC) ; do $(CC) $(INCLUDE) -x c -traditional -M $$ssrc | sed -e 's/\.S16\.o/\.o16/' >> .depend ; done
for nsrc in $(NASMSRC) ; do $(NASM) -DDEPEND $(NINCLUDE) -o `echo $$nsrc | sed -e 's/\.asm/\.bin/'` -M $$nsrc >> .depend ; done
+# This file contains the version number, so add a dependency for it
+setup.s: ../version
+
# Include dependencies file
include .depend