From 1d274ab00fce999b9ce39849d1db984aa59ae015 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 22 Dec 2016 15:23:05 +0900 Subject: Build: add -MP option to add dummy rules to *.d files This adds a phony target for each dependency other than the main file, causing each to depend on nothing. Without this, the incremental build will fail when a header file is removed. Signed-off-by: Masahiro Yamada --- make_helpers/build_macros.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make_helpers') diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 5de810b9..bf9dc794 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -184,7 +184,7 @@ endef # Auxiliary macros to build TF images from sources ################################################################################ -MAKE_DEP = -Wp,-MD,$(DEP) -MT $$@ +MAKE_DEP = -Wp,-MD,$(DEP) -MT $$@ -MP # MAKE_C builds a C source file and generates the dependency file # $(1) = output directory -- cgit v1.2.3