On 10/25/07, Sam Ravnborg <[EMAIL PROTECTED]> wrote:
> On of the things to investigate is how to solve the uses of:
> CFLAGS_<filename>.o

You mean when multiple subdirectories have files with the same name?
(fs/*/inode.c comes to mind)

This could be solved, but it involves some trickery. After each
makefile has been read and processed, the CFLAGS_<filename> variable
must be reset. How about this?

# $(1) is the name of the file to clear CFLAGS for
define clear_cflags
CFLAGS_$(1) := # null
endef

$(foreach obj,$(obj-y),$(eval $(call clear_cflags,$(obj))))


Vegard
-
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to