I cant figure out how to write a Makefile.am which directs that a %.cpp
be preprocessed to a %.i (and not compiled). Anybody got a suggestion?
Something like:
AM_CPPFLAGS = -I$(top_srcdir)/src @INCLTDL@
bin_PROGRAMS = Quadratic
Quadratic_SOURCES = Quadratic.cpp
Quadratic_CPPFLAGS = -E #-o Quadrat
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