From 34f380e5e3e050303d86d0a246a720b186022b70 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 16 Feb 2016 23:32:34 +1100 Subject: [PATCH] Exclude system headers from .d files 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 --- Makefile-ccan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile-ccan b/Makefile-ccan index 0613fc83..f4e096b5 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.39.2