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




Reply via email to