automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional Library Compilation


From: Ralf Corsepius
Subject: Re: Conditional Library Compilation
Date: Tue, 03 Feb 2004 19:21:18 +0100

On Tue, 2004-02-03 at 18:41, Drummonds, Scott B wrote:
> Hi, everyone,

> How do I have an additional library built based on a Automake
> conditional?

One possibility:

noinst_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c bar.c

if FEATURE
noinst_LIBRARIES += libMyLib.a
libMyLIB_a_CPPFLAGS = -DMyLibExtraFlags
libMyLib_a_SOURCES = $(libfoo_a_SOURCES)
endif

Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]