[PATCH 3/4] Exclude system headers from .d files

David Gibson <[email protected]> Sat, 30 Apr 2016 18:01:48 +1000
Newsgroups org.ozlabs.lists.ccan
Message-ID <[email protected]>
We currently generated .d dependency files with the -MD option to cc.  That
includes system header files in the dependencies, which isn't often useful
and makes the .d more complicated than necessary.

This changes to -MMD which excludes system headers.

Signed-off-by: David Gibson <[email protected]>
---
 Makefile-ccan | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile-ccan b/Makefile-ccan
index 0613fc8..f4e096b 100644
--- a/Makefile-ccan
+++ b/Makefile-ccan
@@ -135,7 +135,7 @@ MODS:=$(MODS_WITH_SRC) $(MODS_NO_SRC)
 default: libccan.a
 
 # Automatic dependency generation: makes ccan/*/*.d files.
-DEPGEN=-MD
+DEPGEN=-MMD
 -include ccan/*/*.d
 
 # Anything with C files needs building; dir leaves / on, sort uniquifies
-- 
2.5.5

_______________________________________________
ccan mailing list
[email protected]
https://lists.ozlabs.org/listinfo/ccan