diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-27 09:48:18 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-27 09:48:18 +0100 |
commit | b0a89cc6e5ffff050ddecd09e9af8eb6723f9ba6 (patch) | |
tree | 6ab90064e1a45c8533968ea7aa86efe63fe94e2f /protocols/Makefile | |
parent | 3f10fad9408844802fcfa3caf3e65e248185f5af (diff) |
Use nifty gcc -MD feature to automatically track .h dependencies of all C
files, this finally gives proper dependencies, which means the end of
getting broken binaries around headerfile changes, etc.
Sure, this may not work on obscurux with superawesomeincompatiblecc while
autoconf does, but at least BitlBee's configure script still runs in <1s.
:-)
Diffstat (limited to 'protocols/Makefile')
-rw-r--r-- | protocols/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Makefile b/protocols/Makefile index 1c7816bc..9e8d3fb9 100644 --- a/protocols/Makefile +++ b/protocols/Makefile @@ -39,6 +39,7 @@ clean: $(subdirs) rm -f *.o $(OUTFILE) core distclean: clean $(subdirs) + rm -rf .depend $(subdirs): @$(MAKE) -C $@ $(MAKECMDGOALS) @@ -54,3 +55,5 @@ $(objects): ../Makefile.settings Makefile $(objects): %.o: $(SRCDIR)%.c @echo '*' Compiling $< @$(CC) -c $(CFLAGS) $< -o $@ + +-include .depend/*.d |