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