summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-03 06:11:54 +0000
committerhpa <hpa>2004-02-03 06:11:54 +0000
commit61d637fbe93c248e3eecf3332a45abc5e21d091b (patch)
treee0100d831a32228c5dc4838848196190e663e86a
parentad91206f3879f8584974032d1c51319a9ed946bf (diff)
downloadsyslinux-61d637fbe93c248e3eecf3332a45abc5e21d091b.tar.gz
Dependency generation
-rw-r--r--menu/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/menu/Makefile b/menu/Makefile
index 7b1654d3..9514dda5 100644
--- a/menu/Makefile
+++ b/menu/Makefile
@@ -19,7 +19,7 @@ MENUS = simple.com complex.com
.SUFFIXES: .c .s .s16 .o16 .elf .com
.c.s:
- $(CC) $(CFLAGS) -S -o $@ $<
+ $(CC) $(CFLAGS) -MMD -S -o $@ $<
.s.s16:
echo '.code16gcc' | cat - $< > $@
@@ -44,7 +44,9 @@ libmenu.a: $(LIBMENU)
$(RANLIB) $@
clean:
- -rm -f *.s *.s16 *.o16 *.elf *.com *.a
+ -rm -f *.s *.s16 *.o16 *.elf *.com *.a *.d
spotless: clean
-rm -f *~ \#*
+
+-include *.d \ No newline at end of file