Re: Problems with conditional sources

2008-08-26 Thread John Calcote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Schwab wrote: > John Calcote <[EMAIL PROTECTED]> writes: > >> Andreas Schwab wrote: >>> John Calcote <[EMAIL PROTECTED]> writes: >>> Make is a two-pass utility. The first pass completely assimilates all macro data specified in the Ma

Re: Problems with conditional sources

2008-08-25 Thread Andreas Schwab
John Calcote <[EMAIL PROTECTED]> writes: > Andreas Schwab wrote: >> John Calcote <[EMAIL PROTECTED]> writes: >> >>> Make is a two-pass utility. The first pass completely assimilates all >>> macro data specified in the Makefile. THEN, the second pass generates >>> the rule dependency tree. >> >> Th

Re: Problems with conditional sources

2008-08-25 Thread Paul Smith
On Mon, 2008-08-25 at 15:55 -0600, John Calcote wrote: > Andreas Schwab wrote: > > John Calcote <[EMAIL PROTECTED]> writes: > > > >> Make is a two-pass utility. The first pass completely assimilates > all > >> macro data specified in the Makefile. THEN, the second pass > generates > >> the rule de

Re: Problems with conditional sources

2008-08-25 Thread John Calcote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Schwab wrote: > John Calcote <[EMAIL PROTECTED]> writes: > >> Make is a two-pass utility. The first pass completely assimilates all >> macro data specified in the Makefile. THEN, the second pass generates >> the rule dependency tree. > > This

Re: Problems with conditional sources

2008-08-25 Thread John Calcote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Schwab wrote: > David Sveningsson <[EMAIL PROTECTED]> writes: > >> Hi, I am having some problems with conditional sources. This is what I >> have in Makefile.am: >> >> lib_LTLIBRARIES = libfoo.la >>

Re: Problems with conditional sources

2008-08-25 Thread Paul Smith
On Mon, 2008-08-25 at 23:21 +0200, David Sveningsson wrote: > Thanks, this solved my problems. It doesn't seem work if I use tabs > for indentation, but spaces works fine. Is this expected behavior? > I've used tabs in many other places and it seem to work. I cannot > find any section in the man

Re: Problems with conditional sources

2008-08-25 Thread David Sveningsson
Andreas Schwab skrev: David Sveningsson <[EMAIL PROTECTED]> writes: Hi, I am having some problems with conditional sources. This is what I have in Makefile.am: lib_LTLIBRARIES = libfoo.la libfoo_la_SOURCES = foo.cpp if WANT_BAR libfoo_la_SOURCES += a.cpp else libfoo_la_S

Re: Problems with conditional sources

2008-08-25 Thread Andreas Schwab
John Calcote <[EMAIL PROTECTED]> writes: > Make is a two-pass utility. The first pass completely assimilates all > macro data specified in the Makefile. THEN, the second pass generates > the rule dependency tree. This is not true. Variable refences in target and dependency lists are expanded whe

Re: Problems with conditional sources

2008-08-25 Thread Andreas Schwab
David Sveningsson <[EMAIL PROTECTED]> writes: > Hi, I am having some problems with conditional sources. This is what I > have in Makefile.am: > > lib_LTLIBRARIES = libfoo.la > libfoo_la_SOURCES = foo.cpp > if WANT_BAR > libfoo_la_SOURCES += a.cpp > else >

Re: Problems with conditional sources

2008-08-25 Thread John Calcote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > While that would make sense but my problem originates from the fact that > the conditional files isn't compiled. > > After some hacking into the generated Makefile I noticed that the files > wouldn't be compiled even if I inserted them into libfoo_l

Re: Problems with conditional sources

2008-08-25 Thread David Sveningsson
John Calcote skrev: David Sveningsson wrote: Hi, I am having some problems with conditional sources. This is what I have in Makefile.am: lib_LTLIBRARIES = libfoo.la libfoo_la_SOURCES = foo.cpp if WANT_BAR libfoo_la_SOURCES += a.cpp else libfoo_la_SOURCES += b.cpp endif AM_CPPFLAGS

Re: Problems with conditional sources

2008-08-25 Thread John Calcote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Sveningsson wrote: > Hi, I am having some problems with conditional sources. This is what I > have in Makefile.am: > > lib_LTLIBRARIES = libfoo.la > libfoo_la_SOURCES = foo.cpp > if WANT_BAR > libfoo_la_SO

Problems with conditional sources

2008-08-25 Thread David Sveningsson
Hi, I am having some problems with conditional sources. This is what I have in Makefile.am: lib_LTLIBRARIES = libfoo.la libfoo_la_SOURCES = foo.cpp if WANT_BAR libfoo_la_SOURCES += a.cpp else libfoo_la_SOURCES += b.cpp endif AM_CPPFLAGS = -I${top_srcdir}/include

Re: Conditional sources

2007-11-04 Thread NightStrike
On 11/5/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * NightStrike wrote on Mon, Nov 05, 2007 at 06:01:26AM CET: > > > > lib32dir=$(prefix)/lib32 > > lib64dir=$(prefix)/lib64 > > > > lib32_LIBRARIES = libuuid.a > > libuuid_a_SOURCES = lib32/uuid.c > > > > lib64_LIBRARIES = libuuid.a > > libuuid

Re: Conditional sources

2007-11-04 Thread Ralf Wildenhues
* NightStrike wrote on Mon, Nov 05, 2007 at 06:01:26AM CET: > > lib32dir=$(prefix)/lib32 > lib64dir=$(prefix)/lib64 > > lib32_LIBRARIES = libuuid.a > libuuid_a_SOURCES = lib32/uuid.c > > lib64_LIBRARIES = libuuid.a > libuuid_a_SOURCES = lib64/uuid.c Not sure why you don't write lib32_LIBRARIE

Re: Conditional sources

2007-11-04 Thread NightStrike
On 11/4/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > Please learn about `subdir-objects', that helps. It's indexed in the > manual. Ok, that has actually helped in multiple ways. I am now using that option, and it's good. That gets me past one hurdle. Now I am left with the following: F

Re: Conditional sources

2007-11-04 Thread Ralf Wildenhues
* NightStrike wrote on Sun, Nov 04, 2007 at 08:14:32PM CET: > On 11/4/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > info Automake 'Libtool Issues' [...] > > info Automake 'Conditional Sources' > I was following those sections almost. I misse

Re: Conditional sources

2007-11-04 Thread NightStrike
LIBRARIES += libuuid.a > > > > libuuid_a_SOURCES = $(uuidsrc) > > > > > > > > > > > > When I run autoreconf, I get this: > > > > > > > > Makefile.am: object `uuid.$(OBJEXT)' created by `lib32/uuid.c' and > > > >

Re: Conditional sources

2007-11-04 Thread Ralf Wildenhues
reconf, I get this: > > > > > > Makefile.am: object `uuid.$(OBJEXT)' created by `lib32/uuid.c' and > > > `lib/uuid.c' [...] You can adapt the hint from info Automake 'Libtool Issues' to your example. You'll have to live with a rewritten object file name in that case though. info Automake 'Conditional Sources' has more useful information. Cheers, Ralf

Re: Conditional sources

2007-11-04 Thread NightStrike
On 11/4/07, Benoit SIGOURE <[EMAIL PROTECTED]> wrote: > On Nov 4, 2007, at 7:47 PM, NightStrike wrote: > > > I am trying to figure out how to do conditional sources. Basically, > > here is the setup: > > > > lib/uuid.c > > lib32/uuid.c > > > >

Re: Conditional sources

2007-11-04 Thread Benoit SIGOURE
On Nov 4, 2007, at 7:47 PM, NightStrike wrote: I am trying to figure out how to do conditional sources. Basically, here is the setup: lib/uuid.c lib32/uuid.c If I pass --with-m32 to configure, I want to use the second source. If I don't, then I want to use the first. I put th

Conditional sources

2007-11-04 Thread NightStrike
I am trying to figure out how to do conditional sources. Basically, here is the setup: lib/uuid.c lib32/uuid.c If I pass --with-m32 to configure, I want to use the second source. If I don't, then I want to use the first. I put this in configure.ac: AC_ARG_WITH(m32, [ --with-m32 Co

Re: conditional sources with libtool error?

2001-10-02 Thread Tim Van Holder
> Well this first way didn't work: > automake (I had to use an old 1.4... but I think this doesn't > change the thing) I think it might. I know 1.5 is much better at conditional stuff. But you could be right. > > TASKOBJ=wtask.$OBJEXT # or TASKOBJ='wtask.$(OBJEXT)'; your choice > at this poin

Re: conditional sources with libtool error?

2001-10-02 Thread Matthias Braun
At first: Thank you for your help On 2 Oct 2001, Tim Van Holder wrote: > On Tue, 2001-10-02 at 15:17, Matthias Braun wrote: > > Hello, > > > > I'm quite new to automake so I don't know if the following is a bug or an error >from me: > > > > I use the following Makefile.am: > > --- > > EXTRA_li

Re: conditional sources with libtool error?

2001-10-02 Thread Tim Van Holder
On Tue, 2001-10-02 at 15:17, Matthias Braun wrote: > Hello, > > I'm quite new to automake so I don't know if the following is a bug or an error from >me: > > I use the following Makefile.am: > --- > EXTRA_libsal_la_SOURCES=wtask.cxx > if USE_WINTASK > TASKSOURCES=wtask.cxx > endif > > EXTRA_l

conditional sources with libtool error?

2001-10-02 Thread Matthias Braun
Hello, I'm quite new to automake so I don't know if the following is a bug or an error from me: I use the following Makefile.am: --- EXTRA_libsal_la_SOURCES=wtask.cxx if USE_WINTASK TASKSOURCES=wtask.cxx endif EXTRA_libsal_la_SOURCES+=ptask.cxx if USE_PTHREAD TASKSOURCES=ptask.cxx endif lib