2005-02-01 11:17:02 +08:00
|
|
|
#
|
2007-02-08 06:28:58 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-02-01 11:17:02 +08:00
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the files COPYING and Copyright.html. COPYING can be found at the root
|
|
|
|
# of the source code distribution tree; Copyright.html can be found at the
|
|
|
|
# root level of an installed copy of the electronic HDF5 document set and
|
|
|
|
# is linked from the top-level documents page. It can also be found at
|
2007-02-08 06:28:58 +08:00
|
|
|
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
# access to either file, you may request a copy from help@hdfgroup.org.
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# HDF5-Fortran Examples Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
2005-04-02 03:41:57 +08:00
|
|
|
# Compile parallel fortran examples only if parallel is enabled
|
|
|
|
if BUILD_PARALLEL_CONDITIONAL
|
2012-08-24 00:07:43 +08:00
|
|
|
EXAMPLE_PROG_PARA=ph5example
|
2005-04-02 03:41:57 +08:00
|
|
|
endif
|
|
|
|
|
2014-04-09 12:55:49 +08:00
|
|
|
INSTALL_SCRIPT_FILES = run-fortran-ex.sh
|
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# 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.
|
|
|
|
# We don't tell automake about these programs so that it doesn't try to
|
|
|
|
# compile them with the regular fortran compiler.
|
2011-08-18 22:32:47 +08:00
|
|
|
|
2012-12-11 06:30:38 +08:00
|
|
|
EXAMPLE_PROG=h5_crtdat h5_rdwt h5_crtatt h5_crtgrp \
|
2012-12-16 06:59:00 +08:00
|
|
|
h5_crtgrpar h5_crtgrpd h5_extend h5_subset h5_cmprss hyperslab selectele \
|
2012-12-11 06:30:38 +08:00
|
|
|
refobjexample refregexample mountexample compound
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# List files to be installed here
|
2012-12-11 06:30:38 +08:00
|
|
|
INSTALL_FILES=h5_crtdat.f90 h5_rdwt.f90 \
|
|
|
|
h5_crtatt.f90 h5_crtgrp.f90 h5_crtgrpar.f90 h5_crtgrpd.f90 \
|
2012-12-16 06:59:00 +08:00
|
|
|
h5_extend.f90 h5_subset.f90 h5_cmprss.f90 hyperslab.f90 selectele.f90 refobjexample.f90 \
|
|
|
|
refregexample.f90 mountexample.f90 compound.f90 ph5example.f90
|
2011-08-18 22:32:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Add attention tests for Fortran 2003 features
|
2015-04-22 02:33:25 +08:00
|
|
|
EXAMPLE_PROG += rwdset_fortran2003 nested_derived_type \
|
|
|
|
compound_fortran2003 compound_complex_fortran2003
|
|
|
|
INSTALL_FILES += rwdset_fortran2003.f90 nested_derived_type.f90 \
|
|
|
|
compound_fortran2003.f90 compound_complex_fortran2003.f90
|
2011-08-18 22:32:47 +08:00
|
|
|
TEST_SCRIPT=testh5fc.sh
|
2014-04-09 12:55:49 +08:00
|
|
|
TEST_EXAMPLES_SCRIPT=$(INSTALL_SCRIPT_FILES)
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2005-04-26 01:43:58 +08:00
|
|
|
# Mark this directory as part of the Fortran API
|
2008-05-19 13:06:51 +08:00
|
|
|
FORTRAN_API=yes
|
2005-04-26 01:43:58 +08:00
|
|
|
|
2005-07-05 05:25:07 +08:00
|
|
|
# Some examples depend on files created by other examples.
|
2012-12-11 06:30:38 +08:00
|
|
|
h5_crtgrpd.chkexe_: h5_crtgrpar.chkexe_
|
2005-07-06 01:42:19 +08:00
|
|
|
refregexample.chkexe_: refobjexample.chkexe_
|
2012-12-11 06:30:38 +08:00
|
|
|
# h5_rdwt and h5_crtatt both modify the same file created by
|
|
|
|
# h5_crtdat. Serialize them.
|
|
|
|
h5_rdwt.chkexe_: h5_crtdat.chkexe_
|
|
|
|
h5_crtatt.chkexe_: h5_rdwt.chkexe_
|
2005-07-05 05:25:07 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# Tell automake how to build examples using h5fc
|
|
|
|
# Additional dependencies for the examples are listed below
|
|
|
|
if BUILD_PARALLEL_CONDITIONAL
|
2007-01-26 23:00:09 +08:00
|
|
|
$(EXTRA_PROG): $(H5FC_PP)
|
2007-02-21 07:39:44 +08:00
|
|
|
$(H5FC_PP) $(H5CCFLAGS) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
2005-02-01 11:17:02 +08:00
|
|
|
else
|
2007-01-26 23:00:09 +08:00
|
|
|
$(EXTRA_PROG): $(H5FC)
|
2007-02-21 07:39:44 +08:00
|
|
|
$(H5FC) $(H5CCFLAGS) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
2005-02-01 11:17:02 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Tell automake how to install examples
|
2010-10-05 01:15:30 +08:00
|
|
|
# Note: no '/' after DESTDIR. Explanation in commence.am
|
|
|
|
EXAMPLEDIR=${DESTDIR}$(exec_prefix)/share/hdf5_examples/fortran
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# List dependencies for each example. Normally, automake would take
|
|
|
|
# care of this for us, but if we tell automake about the programs it
|
|
|
|
# will try to build them with the normal C compiler, not h5cc. This is
|
|
|
|
# an inelegant way of solving the problem.
|
|
|
|
# All programs share the same build rule and a dependency on the main hdf5
|
|
|
|
# and fortran libraries above.
|
2012-12-11 06:30:38 +08:00
|
|
|
h5_crtdat: h5_crtdat.f90
|
|
|
|
h5_extend: h5_extend.f90
|
|
|
|
h5_subset: h5_subset.f90
|
|
|
|
h5_rdwt: h5_rdwt.f90
|
|
|
|
h5_crtatt: h5_crtatt.f90
|
|
|
|
h5_crtgrp: h5_crtgrp.f90
|
|
|
|
h5_crtgrpar: h5_crtgrpar.f90
|
|
|
|
h5_crtgrpd: h5_crtgrpd.f90
|
2012-12-16 06:59:00 +08:00
|
|
|
h5_cmprss: h5_cmprss.f90
|
2005-02-01 11:17:02 +08:00
|
|
|
hyperslab: hyperslab.f90
|
|
|
|
selectele: selectele.f90
|
|
|
|
refobjexample: refobjexample.f90
|
|
|
|
refregexample: refregexample.f90
|
|
|
|
mountexample: mountexample.f90
|
|
|
|
compound: compound.f90
|
2005-04-06 07:39:38 +08:00
|
|
|
ph5example: ph5example.f90
|
2011-08-18 22:32:47 +08:00
|
|
|
rwdset_fortran2003: rwdset_fortran2003.f90
|
|
|
|
nested_derived_type: nested_derived_type.f90
|
|
|
|
compound_fortran2003: compound_fortran2003.f90
|
|
|
|
compound_complex_fortran2003: compound_complex_fortran2003.f90
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2005-12-10 04:59:11 +08:00
|
|
|
include $(top_srcdir)/config/examples.am
|
2005-02-01 11:17:02 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|