[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: |
Sun, 17 Mar 2002 19:59:36 +0100 |
User-agent: |
Mutt/1.2.5i |
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 <address@hidden>