]> git.decadent.org.uk Git - videolink.git/commitdiff
Made source dependency generation more efficient.
authorBen Hutchings <ben@decadent.org.uk>
Sat, 14 Oct 2006 00:53:48 +0000 (00:53 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:57:50 +0000 (23:57 +0000)
Makefile

index 81566a7d843db5cb5e476dd2b3e47044cca68244..e001b0a9783505a7e36f1a983478e9208c67b021 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,17 +98,14 @@ install :
                   -DMOZ_VERSION_MINOR=$(moz_version_minor)             \
                   -DMOZ_VERSION_PATCHLEVEL=$(moz_version_patchlevel)
 
-.objs/%.d : %.cpp .objs/.created
-       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM -MF $@ $<
-
-.objs/%.d : %.c .objs/.created
-       $(CC) $(CFLAGS) $(CPPFLAGS) -MM -MF $@ $<
+.objs/%.d : .objs/.created
+       touch $@
 
 .objs/%.o : %.cpp .objs/.created
-       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
+       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -MD -MF .objs/$*.d -c $<
 
 .objs/%.o : %.c .objs/.created
-       $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+       $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -MD -MF .objs/$*.d -c $<
 
 %/.created :
        mkdir -p $*