automake
[Top][All Lists]
Advanced

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

Re: Preprocessing C++ only


From: Tim Van Holder
Subject: Re: Preprocessing C++ only
Date: Mon, 08 Jan 2007 15:37:10 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

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

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