This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: adding specific C flags for a SINGLE source file
- From: Bruce Allen <ballen at gravity dot phys dot uwm dot edu>
- To: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>
- Cc: automake at gnu dot org
- Date: Thu, 9 Dec 2004 17:21:25 -0600 (CST)
- Subject: Re: adding specific C flags for a SINGLE source file
Alexandre,
> bin_PROGRAMS = foo
> foo_SOURCES = bar.c bar.h main.c
> foo_CFLAGS = -some -flags
> foo_LDADD = libfoo.a
> noinst_LIBRARIES = libfoo.a
> libfoo_a_SOURCES = foo.c foo.h
> libfoo_a_CFLAGS = -some -other -flags
Well, like all 'good answers' this one is obvious: I should have thought
of it myself. Thank you!
What you've written would be a nice addition to the FAQ.
Thank you again!
Cheers,
Bruce