mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
[svn-r6996] Purpose:
bug fix and cleanup Description: Previous change messed things up that fortranlib_test was linked with multiple MAIN because $(TEST_OBJ) was used as if it was for fortranlib_test only. Solution: Created a separated $(FORTLIBTEST_OBJ) for the fortranlib_test test. Adjusted other related symbol names. Also, removed DISTCLEAN=* which held files that should have been removed in MOSTLYCLEAN. Platforms tested: "h5committested" (modi4, sol, verbena). In the process of running fortran tests in arabica and kelgia. Misc. update:
This commit is contained in:
parent
1be010d74f
commit
47f9421dd5
@ -36,20 +36,22 @@ LIB_OBJ=$(LIB_FSRC:.f90=.lo) $(LIB_CSRC:.c=.lo)
|
||||
TEST_PROGS_SRC=fortranlib_test.f90 fflush1.f90 fflush2.f90
|
||||
TEST_PROGS=$(TEST_PROGS_SRC:.f90=)
|
||||
|
||||
TEST_FSRC= tH5F.f90 tH5D.f90 tH5R.f90 tH5S.f90 tH5T.f90 tH5VL.f90 tH5Z.f90\
|
||||
tH5Sselect.f90 tH5P.f90 tH5A.f90 tH5I.f90 tH5G.f90 tH5E.f90 tf.f90
|
||||
TEST_CSRC = t.c
|
||||
TEST_OBJ=$(TEST_FSRC:.f90=.lo) $(TEST_CSRC:.c=.lo) $(TEST_PROGS_SRC:.f90=.lo)
|
||||
# fortranlib_test settting
|
||||
FORTLIBTEST_FSRC=fortranlib_test.f90 \
|
||||
tH5F.f90 tH5D.f90 tH5R.f90 tH5S.f90 tH5T.f90 tH5VL.f90 tH5Z.f90\
|
||||
tH5Sselect.f90 tH5P.f90 tH5A.f90 tH5I.f90 tH5G.f90 tH5E.f90 tf.f90
|
||||
FORTLIBTEST_CSRC = t.c
|
||||
FORTLIBTEST_OBJ=$(FORTLIBTEST_FSRC:.f90=.lo) $(FORTLIBTEST_CSRC:.c=.lo)
|
||||
|
||||
TEST_OBJ=$(FORTLIBTEST_OBJ) $(TEST_PROGS_SRC:.f90=.lo)
|
||||
|
||||
## Temporary files
|
||||
MOSTLYCLEAN=*.h5 *.tmp
|
||||
|
||||
DISTCLEAN=$(TEST_PROGS_SRC:.f90=.lo) $(TEST_PROGS_SRC:.f90=.o)
|
||||
|
||||
$(TEST_PROGS): $(LIB) $(FLIB)
|
||||
|
||||
fortranlib_test: fortranlib_test.lo $(TEST_OBJ)
|
||||
@$(LT_LINK_FEXE) $(FFLAGS) -o $@ fortranlib_test.lo $(TEST_OBJ) $(LIB) $(TCLIB) $(FLIB) $(LIBS) $(HDF5LIB)
|
||||
fortranlib_test: $(FORTLIBTEST_OBJ)
|
||||
@$(LT_LINK_FEXE) $(FFLAGS) -o $@ $(FORTLIBTEST_OBJ) $(LIB) $(TCLIB) $(FLIB) $(LIBS) $(HDF5LIB)
|
||||
|
||||
fflush1: fflush1.lo
|
||||
@$(LT_LINK_FEXE) $(FFLAGS) -o $@ fflush1.lo $(LIB) $(TCLIB) $(FLIB) $(LIBS) $(HDF5LIB)
|
||||
|
Loading…
Reference in New Issue
Block a user