diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-16 21:14:34 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-16 21:14:34 +0000 |
commit | 97792cbb75b09c9a6cb77133b38f05897c3671e7 (patch) | |
tree | 634eecb7c15f2d75c5190c86e0d151846f03ebf8 /Makefile.moddir_rules | |
parent | 8b5225e1c5dfe48c9521d4b02a73fa405f2c4a2f (diff) |
simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r-- | Makefile.moddir_rules | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index 6925636b9..c614c2ab5 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -40,7 +40,7 @@ $(addsuffix .so,$(filter $(LOADABLE_MODS),$(CC_MODS))): %.so: %.oo modules.link: $(addsuffix .o,$(filter $(EMBEDDED_MODS),$(C_MODS))) modules.link: $(addsuffix .oo,$(filter $(EMBEDDED_MODS),$(CC_MODS))) -.PHONY: clean clean-depend depend uninstall _all +.PHONY: clean uninstall _all ifneq ($(LOADABLE_MODS),) _all: $(LOADABLE_MODS:%=%.so) @@ -67,11 +67,9 @@ modules.link: @for file in $(patsubst %,$(SUBDIR)/%,$(filter %.o,$^)); do echo "INPUT (../$${file})" >> $@; done @for file in $(patsubst %,$(SUBDIR)/%,$(filter-out %.o,$^)); do echo "INPUT (../$${file})" >> $@; done -clean-depend:: - rm -f .depend - -clean:: clean-depend +clean:: rm -f *.so *.o *.oo + rm -f .*.o.d .*.oo.d rm -f modules.link install:: all @@ -79,11 +77,6 @@ install:: all uninstall:: -ifneq ($(wildcard .depend),) - include .depend +ifneq ($(wildcard .*.d),) + include .*.d endif - -depend: .depend - -.depend: - ../build_tools/mkdep $(ASTCFLAGS) `ls *.c *.cc 2> /dev/null` |