From octave-maintainers-request at bevo dot che dot wisc dot edu Wed Jan 31 11:31:59 2001 Subject: Re: ISO C++ and Octave From: Mumit Khan To: octave-maintainers at bevo dot che dot wisc dot edu cc: khan at NanoTech dot Wisc dot EDU Date: Wed, 31 Jan 2001 11:31:57 -0600 (CST) On Wed, 31 Jan 2001, John W. Eaton wrote: > | I had missed the -MT option, thanks for pointing it out. Yet another > | little thing that configure has to do. > > But why the change? This seems like something that is going to cause > trouble for a lot of packages. > [ I'm not on the Octave maintainers list, so please Cc me if appropriate ] How about the following? Should work for existing gcc as well. Caveat, untested. 2001-01-31 Mumit Khan * Makeconf.in (%.d : %.cc): Strip the directory portion of the target. (%.d : %.c): Likewise. Index: Makeconf.in =================================================================== RCS file: /homes/khan/src/math/CVSROOT/octave-test/Makeconf.in,v retrieving revision 1.1.1.1 diff -u -3 -p -r1.1.1.1 Makeconf.in --- Makeconf.in 2000/12/27 17:39:58 1.1.1.1 +++ Makeconf.in 2001/01/31 17:28:39 at @ -301,7 +301,8 @@ pic/%.o : %.cc at echo making $@ from $< at rm -f $@ at $(CXX)| -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ - sed -e 's,$*\.o,pic/& & $ at ,g' > $@.tmp + sed -e 's,^[^:]*/\(.*\.o\):,\1:,' \ + -e 's,$*\.o,pic/& & $ at ,g' > $@.tmp at mv $@.tmp $@ # And one for .c files.too: at @ -310,7 +311,8 @@ pic/%.o : %.cc at echo making $@ from $< at rm -f $@ at $(CC)| -M $(CPPFLAGS) $(ALL_CFLAGS) $< -M $(CPPFLAGS) $(ALL_CFLAGS) $< | \ - sed -e 's,$*\.o,pic/& & $ at ,g' > $@.tmp + sed -e 's,^[^:]*/\(.*\.o\):,\1:,' \ + -e 's,$*\.o,pic/& & $ at ,g' > $@.tmp at mv $@.tmp $@ define do-subdir-for-command