[asterisk-addons-commits] tilghman: branch 1.4 r578 - /branches/1.4/Makefile.rules

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Tue Apr 29 23:46:39 CDT 2008


Author: tilghman
Date: Tue Apr 29 23:46:37 2008
New Revision: 578

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=578
Log:
Don't exclude system header files when doing dependency checks.  The reason for
this is fairly obvious -- the Asterisk header files (but only in -addons) are
part of the system header files at that point, so a changed buildopts.h is
considered a change in the system headers.  We WANT that change to be
considered a reason to rebuild everything in -addons, since the buildsum will
no longer match at runtime.

Note that if you're building -addons, you'll still need to do a 'make clean'
to get the old dependency files to go away this first time, but after that,
the dependency checks will take care of it for you.

(Closes issue #11291)

Modified:
    branches/1.4/Makefile.rules

Modified: branches/1.4/Makefile.rules
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/Makefile.rules?view=diff&rev=578&r1=577&r2=578
==============================================================================
--- branches/1.4/Makefile.rules (original)
+++ branches/1.4/Makefile.rules Tue Apr 29 23:46:37 2008
@@ -40,15 +40,15 @@
 
 %.o: %.c
 	$(ECHO_PREFIX) echo "   [CC] $< -> $@"
-	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
 
 %.o: %.s
 	$(ECHO_PREFIX) echo "   [AS] $< -> $@"
-	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
 
 %.oo: %.cc
 	$(ECHO_PREFIX) echo "   [CXX] $< -> $@"
-	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS)) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS)) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
 
 %.c: %.y
 	$(ECHO_PREFIX) echo "   [BISON] $< -> $@"




More information about the asterisk-addons-commits mailing list