From: Ben Hutchings Date: Sat, 14 Oct 2006 00:53:48 +0000 (+0000) Subject: Made source dependency generation more efficient. X-Git-Tag: 0.10~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=df5fd006468fed2f1c10e949993fe849d4fb453e;p=videolink.git Made source dependency generation more efficient. --- diff --git a/Makefile b/Makefile index 81566a7..e001b0a 100644 --- 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 $*