summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-06 19:18:22 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-06 19:18:22 (GMT)
commit50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a (patch)
treed22a6f5fb268df436bf39760f0e668f1452ceb17 /Makefile
parent263c57146c81d06dd031e0e16d14c4ba87d7c3f6 (diff)
downloadswift-contrib-50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a.zip
swift-contrib-50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a.tar.bz2
Use separate "MM" variable for make dependency generation tool.
On Windows, the compiler cannot be used as a make dependency generation. Make it possible to specify a different tool (e.g. GCC) for dependency generation through the MM variable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 451d98e..f590b59 100644
--- a/Makefile
+++ b/Makefile
@@ -79,13 +79,13 @@ endif
endif
%.dep: %.cpp
- $(QUIET_MM)$(CXX) -MM -MG -MT $(basename $@).o $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@
+ $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@
%.dep: %.c
- $(QUIET_MM)$(CC) -MM -MG -MT $(basename $@).o $(filter-out -arch armv6 -arch i386 -arch ppc,$(CFLAGS)) $< > $@
+ $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CFLAGS)) $< > $@
%.dep: %.mm
- $(QUIET_MM)$(CC) -MM -MG -MT $(basename $@).o $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@
+ $(QUIET_MM)$(CC) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@
%.o: %.c
$(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS)