This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Target-specific CFLAGS


Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:

> On Tue, 24 Feb 2004, Ben Pfaff wrote:
>> >
>> > 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?
>
> This distinction is not entirely correct since CPPFLAGS is normally
> supplied to the C++ compiler as well.  CFLAGS is for the C compiler
> and CXXFLAGS is for the C++ compiler.

Well, yes: C++ uses the C preprocessor.
-- 
Ben Pfaff 
email: blp@cs.stanford.edu
web: http://benpfaff.org




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]