This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Different CFLAGS for some source-files
- From: Enrico Scholz <enrico dot scholz at informatik dot tu-chemnitz dot de>
- To: automake at gnu dot org
- Date: 13 Mar 2002 14:48:02 +0100
- Subject: 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