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

2002-03-17 Thread 'Carlo Wood'
On Sun, Mar 17, 2002 at 07:54:33PM -, 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 'compi

Re: mkinstalldirs and conditional building/installation

2002-03-17 Thread Tom Tromey
> "Roger" == Roger Leigh <[EMAIL PROTECTED]> writes: Roger> Is automake CVS available anonymously? Roger> Sorry for being lame--I found it on Savannah. The Savannah copy is frequently out-of-date. The real automake can be found here: http://sources.redhat.com/automake/ Tom

Re: [patch] mkinstalldirs used conditionally

2002-03-17 Thread Tom Tromey
> "Roger" == Roger Leigh <[EMAIL PROTECTED]> writes: Akim> IMHO, this is obfuscating the code. The real means (again, Akim> IMHO) to address this issue should be to use an install-sh which Akim> creates the directories and their parents when needed. [ ... ] Roger> True. It won't be compat

Re: [patch] mkinstalldirs used conditionally

2002-03-17 Thread Tom Tromey
> "Roger" == Roger Leigh <[EMAIL PROTECTED]> writes: Roger> I sent a link to my patch a week ago, but I didn't see any Roger> reply. Is there anything wrong with this patch? This is actually a tricky area. For instance, how is the `installdirs' target going to work? This target is sort of b

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

2002-03-17 Thread Stephano Mariani
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:

PS I use libtool-1.4.2

2002-03-17 Thread Carlo Wood
In case it matters, I use libtool-1.4.2. Perhaps I need to upgrade that for the *_AM_CXXFLAGS to work? -- Carlo Wood <[EMAIL PROTECTED]>

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

2002-03-17 Thread 'Carlo Wood'
On Sun, Mar 17, 2002 at 06:33:44PM -, 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

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

2002-03-17 Thread Stephano Mariani
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of > C

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

2002-03-17 Thread Carlo Wood
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