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]
Other format: [Raw text]

RE: How to use the same source files in different output objects?


I don't use C++, but it works for CFLAGS... try without the AM_ prefix
ie libfoo_la_CFLAGS = ... and make sure that you use automake
--add-missing (I'm not sure what the option is called, but it causes a
script called 'compile' to be added).

Stephano Mariani


> -----Original Message-----
> From: 'Carlo Wood' [mailto:carlo@alinoe.com]
> Sent: Sunday, 17 March 2002 7:0 PM
> To: Stephano Mariani
> Cc: automake@gnu.org
> Subject: Re: How to use the same source files in different output
objects?
> 
> On Sun, Mar 17, 2002 at 06:33:44PM -0000, Stephano Mariani wrote:
> > lib_LTLIBRARIES = libfoo.la libfoo_r.la
> >
> > libfoo_r_la_AM_CXXFLAGS = -D_REENTRANT
> > libfoo_r_la_SOURCES = foo.cxx
> >
> > libfoo_la_AM_CXXFLAGS = # Something
> > libfoo_la_SOURCES = foo.cxx
> >
> > etc.
> >
> > Stephano Mariani
> 
> This doesn't work with automake 1.5.
> Do I need 1.6, or even the CVS version for this?
> 
> What happens is that I get no CXXFLAGS at all.
> I do
> 
> libcwd_la_AM_CXXFLAGS = -DCWDEBUG $(DEBUGOPTS) $(EXTRAOPTS)
$(WARNOPTS)
> libcwd_la_SOURCES = \
>         elf32.cc \
> 	.. etc
> 
> g++ -DHAVE_CONFIG_H -I./include -I./include -g -O -pipe -c elf32.cc
-MT
> elf32.lo -MD -MP -MF .deps/elf32.TPlo  -fPIC -DPIC -o elf32.lo
> 
> as you can see, there is no -DCWDEBUG.
> 
> --
> Carlo Wood <carlo@alinoe.com>




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