From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 17 Oct 2011 22:51:14 +0200 Subject: [U-Boot] [PATCH v6 18/20] Adjust dependency rules to permit per-file flags In-Reply-To: <1318270953-32482-19-git-send-email-sjg@chromium.org> References: <1318270953-32482-1-git-send-email-sjg@chromium.org> <1318270953-32482-19-git-send-email-sjg@chromium.org> Message-ID: <20111017205114.A8893140797D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1318270953-32482-19-git-send-email-sjg@chromium.org> you wrote: > 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 > --- > Changes in v3: > - Change U-Boot's dependency generation to permit per-file flags > > Changes in v4: > - 'Improve' dependency generation to deal with source files containing paths > - Make sure that clobber target removes all dependency files > > Changes in v5: > - Fix dependency output to include $(obj) for out-of-tree builds > > .gitignore | 2 +- > Makefile | 2 +- > config.mk | 7 +++++++ > rules.mk | 44 +++++++++++++++++++++++++++++++++----------- > 4 files changed, 42 insertions(+), 13 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Some programming languages manage to absorb change, but withstand progress. -- Epigrams in Programming, ACM SIGPLAN Sept. 1982