[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditionally build a shared or convenience library
From: |
Mike Heffner |
Subject: |
Conditionally build a shared or convenience library |
Date: |
Wed, 11 May 2005 16:39:13 -0400 (EDT) |
Hi,
I would like to have the same library built as a standalone shared library
in one case, but when the library's source tree is mapped as a subdirectory of
another library, built as a convenience library (static). However, following the
examples of conditional library compilation in the automake manual, I can't seem
to extend them to get the following to work:
lib_LTLIBRARIES=
noinst_LTLIBRARIES=
if FOO_STANDALONE
lib_LTLIBRARIES+=libfoo.la
else
noinst_LTLIBRARIES+=libfoo.la
endif
Automake reports this as an error:
foo/Makefile.am:21: `libfoo.la' is already going to be installed in `lib'
foo/Makefile.am:19: `libfoo.la' previously declared here
What is the correct way of doing this conditional library building?
Thanks,
Mike
--
Mike Heffner <address@hidden>
<address@hidden>
- Conditionally build a shared or convenience library,
Mike Heffner <=