From: David McCullough Date: Tue, 7 Jul 2009 00:51:21 +0000 (+0000) Subject: generate dependency info automatically X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1c3862eb607fc5c518bfd29a790d00ec3bd0c6c8;p=elf2flt.git generate dependency info automatically Signed-off-by: Mike Frysinger --- 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