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

David Gibson david at gibson.dropbear.id.au
Sat Apr 30 18:01:48 AEST 2016


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 <david at gibson.dropbear.id.au>
---
 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



More information about the ccan mailing list