From 47508843061b8dd9455ec86df00d56b462f2a5c9 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 7 Oct 2011 13:53:49 +0000 Subject: Adjust dependency rules to permit per-file flags The dependency rules are currently done in a shell 'for' loop. This does not permit Makefile variables to adjust preprocessor flags as is done with normal compile flags, using the CFLAGS_path/file.o syntax. This change moves the dependency generation into the Makefile itself, and permits a CPPFLAGS_path/file.o to adjust preprocessor flags on a file or directory basis. The CPPFLAGS_... variable is also folded into CFLAGS during the build. Signed-off-by: Simon Glass --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 44e3726f7b..a0cafbddc5 100644 --- a/Makefile +++ b/Makefile @@ -955,7 +955,7 @@ clean: | xargs rm -f clobber: clean - @find $(OBJTREE) -type f \( -name '*.depend' \ + @find $(OBJTREE) -type f \( -name '*.depend*' \ -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ -print0 \ | xargs -0 rm -f -- cgit v1.2.1