This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Target-specific CFLAGS
- From: Ben Pfaff <blp at cs dot stanford dot edu>
- To: automake at gnu dot org
- Date: Tue, 24 Feb 2004 13:43:24 -0800
- Subject: Re: Target-specific CFLAGS
- Cancel-lock: sha1:AJuMJe2unbUzIbMz838V6S+ogp0=
- References: <92E67798C43ECE4691CCEE09662D2698023C9B5B@scsmsx402.sc.intel.com>
- Reply-to: blp at cs dot stanford dot edu
"Drummonds, Scott B" <scott.b.drummonds@intel.com> writes:
> From: automake-bounces+scott.b.drummonds=intel.com@gnu.org
>> <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>
> ...
>> Where have I gone wrong?
>
> Of course, when my source files are C++ files the _CFLAGS extension does
> nothing. Changing this to _CPPFLAGS fixed the problem. Duh.
You know that CPPFLAGS is for the C preprocessor and CXXFLAGS is
for the C++ compiler, right?
--
Ben Pfaff
email: blp@cs.stanford.edu
web: http://benpfaff.org