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?


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

> -----Original Message-----
> From: automake-admin@gnu.org [mailto:automake-admin@gnu.org] On Behalf
Of
> Carlo Wood
> Sent: Sunday, 17 March 2002 6:5 PM
> To: automake@gnu.org
> Subject: How to use the same source files in different output objects?
> 
> Hiya,
> 
> I tried for several days to find the answer myself,
> but it seems just not possible with automake :(.
> You are my last resort.
> 
> What I need is to use the same sources, but with
> different CXXFLAGS, for different output targets.
> In particular, I want to generate a library called
> foo.so that was compiled without _REENTRANT defined
> and one called foo_r.so that was compiled from
> the exact same sources but using -D_REENTRANT.
> I don't want to duplicate all sources in the resulting
> tar ball of a 'make dist' of course.
> 
> Can someone please tell me how to do that with
> automake?
> 
> --
> 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]