[dahdi-commits] kpfleming: tools/trunk r4634 - /tools/trunk/Makefile

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Tue Jul 29 17:42:31 CDT 2008


Author: kpfleming
Date: Tue Jul 29 17:42:31 2008
New Revision: 4634

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4634
Log:
add dependency tracking

Modified:
    tools/trunk/Makefile

Modified: tools/trunk/Makefile
URL: http://svn.digium.com/view/dahdi/tools/trunk/Makefile?view=diff&rev=4634&r1=4633&r2=4634
==============================================================================
--- tools/trunk/Makefile (original)
+++ tools/trunk/Makefile Tue Jul 29 17:42:31 2008
@@ -43,7 +43,10 @@
 
 ROOT_PREFIX=
 
-CFLAGS+=$(DAHDI_INCLUDE)
+# extra cflags to build dependencies. Recursively expanded.
+MAKE_DEPS= -MD -MT $@ -MF .$(subst /,_,$@).d -MP
+
+CFLAGS+=$(DAHDI_INCLUDE) $(MAKE_DEPS)
 
 CHKCONFIG	:= $(wildcard /sbin/chkconfig)
 UPDATE_RCD	:= $(wildcard /usr/sbin/update-rc.d)
@@ -350,3 +353,7 @@
 	@build_tools/make_tree > $@
 
 .PHONY: menuselect distclean dist-clean clean version.h all _all install programs tests devel data config update install-programs install-libs install-utils-subdirs utils-subdirs
+
+ifneq ($(wildcard .*.d),)
+   include .*.d
+endif




More information about the dahdi-commits mailing list