[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional Library Compilation
From: |
Alexandre Duret-Lutz |
Subject: |
Re: Conditional Library Compilation |
Date: |
Tue, 03 Feb 2004 19:31:06 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
>>> "sbd" == Drummonds, Scott B <address@hidden> writes:
sbd> Hi, everyone,
Hi,
Which version of Automake are you using? What make implementation?
[...]
sbd> the following doesn't work:
sbd> if FEATURE
sbd> EXTRA_LIBS=libMyLib.a
sbd> endif
sbd> noinst_LIBRARIES = ... $(EXTRA_LIBS)
What are the symptoms? (i.e., what "doesn't work" means?)
sbd> It seems that, when FEATURE is set, the code inside the conditional is
sbd> inserted after the noinst_LIBRARIES statement. As such, the EXTRA_LIBS
sbd> variable is empty and my additional library is not added as a target.
That shouldn't matter: $(xxx) are not evaluated when they appear
on the rhs of a `=', they are recursively expansed later when
used in a rule.
sbd> How do I have an additional library built based on a
sbd> Automake conditional?
What you describe works for me, it builds libMyLib.a iff
FEATURE is set.
--
Alexandre Duret-Lutz
- Conditional Library Compilation, Drummonds, Scott B, 2004/02/03
- RE: Conditional Library Compilation, Drummonds, Scott B, 2004/02/03
- RE: Conditional Library Compilation, Drummonds, Scott B, 2004/02/03
- RE: Conditional Library Compilation, Drummonds, Scott B, 2004/02/04
- RE: Conditional Library Compilation, Drummonds, Scott B, 2004/02/05
- Re: Conditional Library Compilation, Frederik Fouvry, 2004/02/05
- RE: Conditional Library Compilation, Drummonds, Scott B, 2004/02/05