the repository which powers this website
Makefile: add -MP option
Work around errors `make` gives when header files are removed without the Makefile being updated. Signed-off-by: Lynn Lin <[email protected]> Signed-off-by: Lars Hjemli <[email protected]>
Lars Hjemli 2010-11-07
parent d41b2dd · commit 5807fb7
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dda743dd..15c7c204 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ endif
# Define a pattern rule for automatic dependency building
#
%.d: %.c
- $(QUIET_MM)$(CC) $(CFLAGS) -MM $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
+ $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
#
# Define a pattern rule for silent object building