summaryrefslogtreecommitdiffstats
path: root/fortran/testpar/Makefile.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-07-09 21:22:08 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-07-09 21:22:08 (GMT)
commitbb1d4e704fbb692c2487f0c2e77a16b94de59eb6 (patch)
tree7bf073a7328d97dab4cff1d1a3b4fc307e99155f /fortran/testpar/Makefile.in
parentfc13ddb7b3ec6c968f8319897b93f4b3a7818383 (diff)
downloadhdf5-bb1d4e704fbb692c2487f0c2e77a16b94de59eb6.zip
hdf5-bb1d4e704fbb692c2487f0c2e77a16b94de59eb6.tar.gz
hdf5-bb1d4e704fbb692c2487f0c2e77a16b94de59eb6.tar.bz2
[svn-r4165]
Purpose: Bug Fixes Description: If the system doesn't support modules, then the F9XMODFLAG would be empty. This would cause things like '.' and '../src' to be stranded on the compile line by themselves and the compiler would barf. Also, there needs to be a dependence between the thyperslab_wr program and the THDF5 module. Solution: Put the code to generate the -{M,I,p}<directory> flags in the acsite.m4 file since it's not possible to check if a macro is empty and do substitution on it in the Makefiles. Put a dependency in the Makefile.in so that THDF5 will be made before the thyperslab_wr program. Platforms tested: Linux
Diffstat (limited to 'fortran/testpar/Makefile.in')
-rw-r--r--fortran/testpar/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/fortran/testpar/Makefile.in b/fortran/testpar/Makefile.in
index 0848c94..caefea7 100644
--- a/fortran/testpar/Makefile.in
+++ b/fortran/testpar/Makefile.in
@@ -14,8 +14,6 @@ hdf5_builddir=$(top_builddir)/src
## Add the include directory to the C preprocessor flags the the hdf5 library
## to the library list.
LT_LINK_LIB=$(LT) --mode=link $(F9X) -static -rpath $(libdir)
-MFLAG=@F9XMODFLAG@
-FFLAGS=$(MFLAG). $(MFLAG)../src @FFLAGS@
LIBFORTRAN=../src/libhdf5_fortran.la
LIBHDF5=$(hdf5_builddir)/libhdf5.la
@@ -41,6 +39,10 @@ $(TEST_PROGS): $(LIBHDF5) $(LIBH5TEST)
$(TEST_OBJ): $(TEST_HDR)
+## Put in dependencies to the THDF5 module so that things will be built
+## in the correct order.
+thyperslab_wr.lo: thdf5.lo
+
ptesthdf5_fortran: thdf5.lo thyperslab_wr.lo tcheck.lo ptesthdf5_fortran.lo
@$(LT_LINK_FEXE) $(FFLAGS) -o $@ ptesthdf5_fortran.lo thdf5.lo thyperslab_wr.lo tcheck.lo $(LIBFORTRAN) $(LIBHDF5) $(LIBS)