[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ISO C++ and Octave
From: |
Mumit Khan |
Subject: |
Re: ISO C++ and Octave |
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 <address@hidden>
* 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
@@ -301,7 +301,8 @@ pic/%.o : %.cc
@echo making $@ from $<
@rm -f $@
@$(CXX) -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
- sed -e 's,$*\.o,pic/& & $@,g' > address@hidden
+ sed -e 's,^[^:]*/\(.*\.o\):,\1:,' \
+ -e 's,$*\.o,pic/& & $@,g' > address@hidden
@mv address@hidden $@
# And one for .c files.too:
@@ -310,7 +311,8 @@ pic/%.o : %.cc
@echo making $@ from $<
@rm -f $@
@$(CC) -M $(CPPFLAGS) $(ALL_CFLAGS) $< | \
- sed -e 's,$*\.o,pic/& & $@,g' > address@hidden
+ sed -e 's,^[^:]*/\(.*\.o\):,\1:,' \
+ -e 's,$*\.o,pic/& & $@,g' > address@hidden
@mv address@hidden $@
define do-subdir-for-command
- ISO C++ and Octave, (continued)
- ISO C++ and Octave, John W. Eaton, 2001/01/30
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/30
- Re: ISO C++ and Octave, John W. Eaton, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, John W. Eaton, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, John W. Eaton, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, John W. Eaton, 2001/01/31
- Re: ISO C++ and Octave,
Mumit Khan <=
- Re: ISO C++ and Octave, John W. Eaton, 2001/01/31
- Patch [Re: ISO C++ and Octave], Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
- Re: ISO C++ and Octave, Mumit Khan, 2001/01/31
Re: ISO C++ and Octave, Mumit Khan, 2001/01/30