[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use the same source files in different output objects?
From: |
'Carlo Wood' |
Subject: |
Re: How to use the same source files in different output objects? |
Date: |
Mon, 18 Mar 2002 03:08:07 +0100 |
User-agent: |
Mutt/1.2.5i |
On Sun, Mar 17, 2002 at 07:54:33PM -0000, Stephano Mariani wrote:
> 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).
>
> > -----Original Message-----
> > 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
For archival purposes:
libfoo_r_la_CXXFLAGS = -D_REENTRANT
without the AM_ works. You need at least automake 1.5.
Thanks for the help!
--
Carlo Wood <address@hidden>
PS The 'compile' isn't needed, it is just for compilers
that do not support -o and -c together but I only
support/use gcc anyway, which does support that.