From 717e5f47648d9dc7572d5189f6de3196ad1205e2 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 11 Oct 2000 17:15:06 -0500 Subject: [svn-r2670] Purpose: Bug fix Description: The setting does not work for the --src-dir option as source file names are hard set in the action lines. Solution: Changed the dependence targets to the form of *.lo and the action lines would use the *.lo files. This way, *.lo files are created when -src-dir option is used or not. Platforms tested: IRIX64 -64 (I knows it works for other platforms because "'I know the hammer will drop when i let go'--Mr. Spock") --- fortran/test/Makefile.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fortran/test/Makefile.in b/fortran/test/Makefile.in index d6def35..fb8a12e 100644 --- a/fortran/test/Makefile.in +++ b/fortran/test/Makefile.in @@ -28,13 +28,13 @@ TEST_OBJ=$(TEST_SRC:.f90=.lo) $(TEST_PROGS): $(FLIB) -fortranlib_test: $(TEST_OBJ) - @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fortranlib_test.f90 $(TEST_OBJ) $(FLIB) $(LIBS) $(HDF5LIB) +fortranlib_test: fortranlib_test.lo $(TEST_OBJ) + @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fortranlib_test.lo $(TEST_OBJ) $(FLIB) $(LIBS) $(HDF5LIB) -fflush1: fflush1.f90 hdf5test.f90 - @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fflush1.f90 hdf5test.o $(FLIB) $(LIBS) $(HDF5LIB) +fflush1: fflush1.lo hdf5test.lo + @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fflush1.lo hdf5test.lo $(FLIB) $(LIBS) $(HDF5LIB) -fflush2: fflush2.f90 hdf5test.f90 - @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fflush2.f90 hdf5test.o $(FLIB) $(LIBS) $(HDF5LIB) +fflush2: fflush2.lo hdf5test.lo + @$(LT_LINK_FEXE) $(FFLAGS) -o $@ fflush2.lo hdf5test.lo $(FLIB) $(LIBS) $(HDF5LIB) @CONCLUDE@ -- cgit v0.12