This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: XXX_CFLAGS
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Subject: Re: XXX_CFLAGS
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Date: 13 Aug 2001 10:21:45 +0200
- Cc: automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- Organization: LRDE/EPITA http://www.lrde.epita.fr/
- References: <997662173.7850.46.camel@mccallum>
>>> "Ralf" == Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:
Ralf> Hi,
Ralf> automake-cvs/branch-real-1.5 confuses me:
Ralf> # cat Makefile.am
Ralf> hello_c_CFLAGS = -Dhello
Ralf> noinst_PROGRAMS = hello-c
Ralf> hello_c_SOURCES = hello-c.c
Ralf> # make
[...]
Ralf> gcc -g -O2 -o hello-c hello_c-hello-c.o
Ralf> Is this behavior intentional (filenaming of the *.o's)?
As soon as you start using per-target CFLAGS, Automake generates
per-target object files (so that you can share a source file in
two programs but still have it compiled twice, with different
CFLAGS).
--
Alexandre Duret-Lutz