Exclude system headers from .d files
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 16 Feb 2016 12:32:34 +0000 (23:32 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 29 Apr 2016 23:18:28 +0000 (09:18 +1000)
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@gibson.dropbear.id.au>
Makefile-ccan

index 0613fc83941193ba037639e6968a25f3f37931b7..f4e096b55034a63a6920f4564725db8b4fb221f6 100644 (file)
@@ -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