From: Paul K. <pki...@us...> - 2004-09-09 03:45:08
|
On Sep 8, 2004, at 4:52 PM, David Bateman wrote: > > According to Per Persson <per...@ma...> (on 09/08/04): >> mkoctfile -DHAVE_OCTAVE_21 -v -c Array-f.cc > > This is wrong as I have the define > > DEFINES = -DOCTAVE_FORGE $(HAVE_DO_FORTRAN_INDEXING) \ > $(HAVE_PROPAGATE_EMPTY_MATRICES) \ > $(HAVE_OK_TO_LOSE_IMAGINARY_PART) \ > $(HAVE_ND_ARRAYS) $(TYPEID_HAS_CLASS) \ > $(CLASS_HAS_LOAD_SAVE) $(HAVE_6ARG_MX_ND_RED) \ > $(HAVE_OCTAVE_CONCAT) $(HAVE_SWAP_BYTES) > > in the Makefile and then I have the rule > > %.o:%.cc %.d > @echo "Compiling $@"; \ > $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $< > > So it seems that this rule is not taking effect on OS X, and the base > rules > from Makeconf > > %.o: %.c ; $(MKOCTFILE) -c $< > %.o: %.f ; $(MKOCTFILE) -c $< > %.o: %.cc ; $(MKOCTFILE) -c $< > %.oct: %.cc ; $(MKOCTFILE) $< > > are. Probably I have to delete the default rules before defining my on > in > the Makefile under OS X... I just changed "%.o:%.cc" to "%.o:%.cc %d". > Could you change it back and see what happens... That fixes it. Adding the following line above the rule also works, so I will commit the change: %.o: %.cc With a correction to the HAVE_SWAP_BYTES test in configure.base which I committed earlier, I can now run comm and fixed tests successfully for Octave 2.1.55 on OS X. Thanks, - Paul |