Analyze source dependencies in Makefile

This commit is contained in:
Tony Garnock-Jones 2010-12-30 13:32:50 -05:00
parent 0f57884762
commit e491109d98
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
scratch/
*.o
cmsg
depend.mk

View File

@ -16,3 +16,9 @@ clean:
rm -f $(TARGET)
rm -f $(OBJECTS)
rm -rf *.dSYM
rm -f depend.mk
depend.mk:
gcc $(CFLAGS) -M *.c > $@
echo "depend.mk:" Makefile *.c >> $@
-include depend.mk