automake
[Top][All Lists]
Advanced

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

Re: Preprocessing C++ only


From: Alan Larkin
Subject: Re: Preprocessing C++ only
Date: Mon, 08 Jan 2007 15:09:13 +0000
User-agent: Thunderbird 2.0b1 (X11/20070101)

Tim Van Holder wrote:
> Tim Van Holder wrote:
>> Something like this perhaps (should also work in cases where "$(CC) -E"
>> is not equivalent to "$(CPP)"):
>>
>> .i.cpp:
>>      $(CPP) $(CPPFLAGS) -o $@ $<
>>
>> noinst_DATA: Quadratic.i
> 
> Of course I meant:
> 
> # Not sure if this is needed for automake; but it's needed by GNU make
> # (without it it will not try the .cpp.i rule).
> .SUFFIXES: .i
> 
> .cpp.i:
>       $(CPP) $(CPPFLAGS) -o $@ $<
> 
> noinst_DATA: Quadratic.i
> 

Great. Thanks.

P.S. Its

SUFFIXES = .i
noinst_DATA = Quadratic.i
.cpp.i:
        $(CPP) $(CPPFLAGS) -E -o $@ $<




reply via email to

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