This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Different CFLAGS for some source-files


Hello,

how can I force automake to use special CFLAGS for certain source-files?
E.g. consider

| noinst_PROGRAMS =  foo
| foo_SOURCES     =  a.c b.c

where b.c needs special flags (e.g. '-Wno-error' because a foreign
headerfile breaks '-Werror' builds or '-O0' to circumvent compiler-bugs
or '-fomit-frame-poiner' in a memory-debugger implementation).

I know about 'foo_CFLAGS' but this would set flags for a.c also. Does
there exists an "official" solution for this problem?



Thanks
Enrico


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]