summaryrefslogtreecommitdiffstats
path: root/fortran/examples/Makefile.am
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-04-01 19:41:57 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-04-01 19:41:57 (GMT)
commit7f5e1dfe31696bddb3967865af52801a2b38bb7e (patch)
treeb0cb697060dd1d93761380309869013506a3e66b /fortran/examples/Makefile.am
parent3cf7dbbf1d8648536fd923353c2b9599513f64f2 (diff)
downloadhdf5-7f5e1dfe31696bddb3967865af52801a2b38bb7e.zip
hdf5-7f5e1dfe31696bddb3967865af52801a2b38bb7e.tar.gz
hdf5-7f5e1dfe31696bddb3967865af52801a2b38bb7e.tar.bz2
[svn-r10533] Purpose:
Feature Description: Added support for conditional compilation of parallel Fortran examples. No such examples exist currently, but it should be possible to add them to the Makefile.am with no fuss and have them compile only when parallel is enabled. Platforms tested: eirene, copper, modi4 Misc. update:
Diffstat (limited to 'fortran/examples/Makefile.am')
-rw-r--r--fortran/examples/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/fortran/examples/Makefile.am b/fortran/examples/Makefile.am
index 1239c13..0f9dbd2 100644
--- a/fortran/examples/Makefile.am
+++ b/fortran/examples/Makefile.am
@@ -20,6 +20,11 @@
include $(top_srcdir)/config/commence.am
+# Compile parallel fortran examples only if parallel is enabled
+if BUILD_PARALLEL_CONDITIONAL
+ TEST_PROG_PARA=
+endif
+
# These are the programs that 'make all' or 'make tests' will build and
# that 'make check' will run. List them in the order in which they should
# be run.
@@ -30,7 +35,7 @@ TEST_PROG=dsetexample fileexample rwdsetexample attrexample groupexample \
refregexample mountexample compound
# Tell configure.in when to build examples
-EXTRA_PROG=$(TEST_PROG)
+EXTRA_PROG=$(TEST_PROG) $(TEST_PROG_PARA)
EXAMPLE_PROG=$(EXTRA_PROG)
# List files to be installed here