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]

Re: XXX_CFLAGS


>>> "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


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