]> git.pond.sub.org Git - empserver/commitdiff
Explicitly specify dependency output file with gcc -MF
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 28 Oct 2008 23:27:23 +0000 (19:27 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 28 Oct 2008 23:27:23 +0000 (19:27 -0400)
Used to work without that, but somehow no longer does.

Make.mk

diff --git a/Make.mk b/Make.mk
index 803ebf2f302806d5f87d3b3b605505d8e9768ce1..bbe1f09f56311aad3ba1acf0fa634024ebb2478b 100644 (file)
--- a/Make.mk
+++ b/Make.mk
@@ -241,7 +241,7 @@ dist: dist-source dist-client dist-info
 # addition to %.o.
 ifeq ($(how_to_dep),fast)
 %.o: %.c
-       $(COMPILE.c) -MT $@ -MMD -MP $(OUTPUT_OPTION) $< \
+       $(COMPILE.c) -MT $@ -MMD -MP -MF $(@:.o=.d) $(OUTPUT_OPTION) $< \
        || { rm -f $(@:.o=.d) $@; false; }
 # Why the rm?  If gcc's preprocessor chokes, it leaves an empty
 # dependency file behind, and doesn't touch the object file.  If an