
6 Jul
2008
6 Jul
'08
12:32 a.m.
In message Pine.LNX.4.64.0805291257420.31402@blarg.am.freescale.net you wrote:
Mimic the linux kernel build system's ability to have per source file CFLAGS or AFLAGS. In the makefile you can now do:
CFLAGS_<file>.o += MY_FLAGS_OPTIONS
Signed-off-by: Kumar Gala galak@kernel.crashing.org
I'm not sure why this would be needed. I tend to think that using a homogenuous set of compiler flags for all source fines is a good thing. If single source files need different handling,we should rather think why this is the case and probably fix the cause instead of doctoring with the symptoms or finally giving in and twek compiler options until we don't see the warnings / errors any more.
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@denx.de
A man is not complete until he is married -- then he is finished.