summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index a023a4286c..15f3643d2a 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -876,6 +876,9 @@ endif
$(OBJECTS:%.o=%.cc): $(CC_DEP) $(TILEDEFHDRS) $(CONTRIB_LIBS)
+%.d: %.cc .cflags
+ $(QUIET_DEPEND)$(CXX) -MM $(ALL_CFLAGS) $< > $*.d
+
%.o: %.m .cflags
$(QUIET_CC)$(CC) $(ALL_CFLAGS) -Wp,-MD,$*.d -c $< -o $*.o