From 1c3862eb607fc5c518bfd29a790d00ec3bd0c6c8 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 7 Jul 2009 00:51:21 +0000 Subject: [PATCH] generate dependency info automatically Signed-off-by: Mike Frysinger --- Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 148fd38..8b82809 100644 --- a/Makefile.in +++ b/Makefile.in @@ -65,7 +65,7 @@ Makefile: $(srcdir)/Makefile.in ./config.status $@ clean: - -rm -f $(PROGS) *.$(OBJEXT) + -rm -f $(PROGS) *.$(OBJEXT) .deps distclean: clean -rm -f Makefile config.log config.status config.cache ld-elf2flt @@ -86,4 +86,6 @@ install: $(INSTALL) -m 755 ld-elf2flt $(target_bindir)/ld $(INSTALL) -m 644 $(SRC_LDFILE) $(target_libdir)/$(LDFILE) - +sinclude .deps +.deps: + $(CC) -MM $(CPPFLAGS) *.c > .deps -- 2.39.5