]> git.wh0rd.org Git - elf2flt.git/commitdiff
generate dependency info automatically
authorDavid McCullough <davidm@snapgear.com>
Tue, 7 Jul 2009 00:51:21 +0000 (00:51 +0000)
committerDavid McCullough <davidm@snapgear.com>
Tue, 7 Jul 2009 00:51:21 +0000 (00:51 +0000)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile.in

index 148fd38a6184c315396f37e32cd16ea1cc3d4198..8b82809dc5a86ae6753f222d43b948bc0353b298 100644 (file)
@@ -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