This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Target-specific CFLAGS
- From: "Drummonds, Scott B" <scott dot b dot drummonds at intel dot com>
- To: <automake at gnu dot org>
- Date: Tue, 24 Feb 2004 10:38:55 -0800
- Subject: Target-specific CFLAGS
Hi, everyone,
A couple of weeks back I posted my problems with getting an ancient
version of Automake to build two libraries. Each was to use the same
source but one should have it's objects compiled with "-DFEATURE". I
attempted to use the following setup:
<quote>
noinst_LIBRARIES = normal.a normal-feature.a
normal_a_SOURCES = [bunch of files]
normal_feature_a_SOURCES = $(normal_a_SOURCES)
normal_feature_a_CFLAGS = -DFEATURE
</quote>
While this didn't work on my old version of Automake, I was told that
upgrading to the most recent version (1.8.2) would fix this problem. It
doesn't. The second library is compiled using the object files created
for the first library. In other words, "-DFEATURE" is never specified
in the compilation of the objects needed for the extra library and I get
two copies of the same library (with different names).
Where have I gone wrong?
Thanks,
Scott