[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Different CFLAGS for some source-files

From: Enrico Scholz
Subject: Different CFLAGS for some source-files
Date: 13 Mar 2002 14:48:02 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)


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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]