Preprocessing C++ only

2007-01-08 Thread Alan Larkin
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

Re: Preprocessing C++ only

2007-01-08 Thread Tim Van Holder
Alan Larkin wrote: > 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

Re: Preprocessing C++ only

2007-01-08 Thread Tim Van Holder
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 mak

Re: Preprocessing C++ only

2007-01-08 Thread Alan Larkin
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

Re: [Fwd: automake-1.9.6 check FAILURE: 32 of 553 tests failed...]

2007-01-08 Thread Ralf Wildenhues
Hello Linda, * Linda Walsh wrote on Sun, Jan 07, 2007 at 02:57:00AM CET: > I'm pretty sure this went out, but I don't find any response. Stepan responded, but apparently only on-list, without a Cc: to you: > Was it logged for fixin

Re: make -s should cause libtool to get --silent

2007-01-08 Thread Ralf Wildenhues
Hello Reuben, * Reuben Thomas wrote on Sat, Jan 06, 2007 at 01:51:08AM CET: > This is arguably a wish rather than a bug, but it's most irritating that on > an autotoolized project make --silent isn't (though admittedly it's a lot > quieter than without --silent). > > I realise there are workaro

no .deps directory generated

2007-01-08 Thread David Byron
I'm having trouble getting a .deps directory generated when I think it should. As a result, I see this error: Makefile:357: .deps/TestECVersion.Po: No such file or directory I don't think I'm doing anything particularly complicated. My directory structure looks like this: agent config/ tes

Re: no .deps directory generated

2007-01-08 Thread Ralf Wildenhues
Hello David, * David Byron wrote on Mon, Jan 08, 2007 at 07:40:02PM CET: > I'm having trouble getting a .deps directory generated when I think it > should. As a result, I see this error: > > Makefile:357: .deps/TestECVersion.Po: No such file or directory [...] > where configure.ac lives in agent

RE: no .deps directory generated

2007-01-08 Thread David Byron
On Monday, January 8 @ 11:05a, Ralf Wildenhues wrote: > Hello David, > > * David Byron wrote on Mon, Jan 08, 2007 at 07:40:02PM CET: > > I'm having trouble getting a .deps directory generated when > I think it > > should. As a result, I see this error: > > > > Makefile:357: .deps/TestECVersion

Re: no .deps directory generated

2007-01-08 Thread Ralf Wildenhues
* David Byron wrote on Mon, Jan 08, 2007 at 08:25:28PM CET: > On Monday, January 8 @ 11:05a, Ralf Wildenhues wrote: > > * David Byron wrote on Mon, Jan 08, 2007 at 07:40:02PM CET: [...] > > > > > > AC_CONFIG_FILES([Makefile util/Makefile > > > util/tests/Makefile:config/cppunit.mk.in:util/tests/Ma

Re: make -s should cause libtool to get --silent

2007-01-08 Thread Reuben Thomas
On Mon, 8 Jan 2007, Ralf Wildenhues wrote: That would be Automake's or make's responsibility. I've already been told the opposite (owing to my ineptitude, this was off-list as well); Mike Frysinger said: "either way, it'd be a libtool issue ... libtool provides the automake/autoconf code t

RE: no .deps directory generated

2007-01-08 Thread David Byron
On Monday, January 8, 2007 @ 11:46a, Ralf Wildenheus wrote: > * David Byron wrote on Mon, Jan 08, 2007 at 08:25:28PM CET: > > On Monday, January 8 @ 11:05a, Ralf Wildenhues wrote: > > > * David Byron wrote on Mon, Jan 08, 2007 at 07:40:02PM CET: > [...] > > > > > > > > AC_CONFIG_FILES([Makefile u

Re: Preprocessing C++ only

2007-01-08 Thread David Fang
> SUFFIXES = .i > noinst_DATA = Quadratic.i > .cpp.i: > $(CPP) $(CPPFLAGS) -E -o $@ $< Hi, Sometimes it is useful to distinguish C from C++ preprocessed files, I use .ii for C++ and .i for C. If you want to retain the CFLAGS/CXXFLAGS/CPPFLAGS from configure, then it's convenient to