From 61d637fbe93c248e3eecf3332a45abc5e21d091b Mon Sep 17 00:00:00 2001 From: hpa Date: Tue, 3 Feb 2004 06:11:54 +0000 Subject: [PATCH] Dependency generation --- menu/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/menu/Makefile b/menu/Makefile index 7b1654d..9514dda 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 -- 2.7.4