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
|
|
|
|
# http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
|
|
|
|
##
|
|
|
|
## 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
|
2005-04-06 05:34:08 +08:00
|
|
|
TEST_PROG_PARA=ph5example
|
2005-04-02 03:41:57 +08:00
|
|
|
endif
|
|
|
|
|
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.
|
|
|
|
TEST_PROG=dsetexample fileexample rwdsetexample attrexample groupexample \
|
|
|
|
grpsexample grpdsetexample hyperslab selectele grpit refobjexample \
|
|
|
|
refregexample mountexample compound
|
|
|
|
|
|
|
|
# List files to be installed here
|
|
|
|
INSTALL_FILES=dsetexample.f90 fileexample.f90 rwdsetexample.f90 \
|
|
|
|
attrexample.f90 groupexample.f90 grpsexample.f90 grpdsetexample.f90 \
|
|
|
|
hyperslab.f90 selectele.f90 grpit.f90 refobjexample.f90 \
|
2005-04-06 05:34:08 +08:00
|
|
|
refregexample.f90 mountexample.f90 compound.f90 ph5example.f90
|
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
|
|
|
|
HDF_FORTRAN=yes
|
|
|
|
|
2005-07-05 05:25:07 +08:00
|
|
|
# Some examples depend on files created by other examples.
|
|
|
|
grpdsetexample.chkexe_: grpsexample.chkexe_
|
2005-07-06 01:42:19 +08:00
|
|
|
refregexample.chkexe_: refobjexample.chkexe_
|
2005-07-11 13:07:29 +08:00
|
|
|
# rwdsetexample and attrexample both modify the same file created by
|
|
|
|
# dsetexample. Serialize them.
|
|
|
|
rwdsetexample.chkexe_: dsetexample.chkexe_
|
|
|
|
attrexample.chkexe_: rwdsetexample.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
|
|
|
|
$(EXTRA_PROG): $(LIBHDF5) $(LIBH5F)
|
|
|
|
if BUILD_PARALLEL_CONDITIONAL
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
$(H5FC_PP) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
2005-02-01 11:17:02 +08:00
|
|
|
else
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
$(H5FC) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
2005-02-01 11:17:02 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Tell automake how to install examples
|
|
|
|
EXAMPLEDIR=$(docdir)/hdf5/examples/fortran
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
dsetexample: dsetexample.f90
|
|
|
|
fileexample: fileexample.f90
|
|
|
|
rwdsetexample: rwdsetexample.f90
|
|
|
|
attrexample: attrexample.f90
|
|
|
|
groupexample: groupexample.f90
|
|
|
|
grpsexample: grpsexample.f90
|
|
|
|
grpdsetexample: grpdsetexample.f90
|
|
|
|
hyperslab: hyperslab.f90
|
|
|
|
selectele: selectele.f90
|
|
|
|
grpit: grpit.f90
|
|
|
|
refobjexample: refobjexample.f90
|
|
|
|
refregexample: refregexample.f90
|
|
|
|
mountexample: mountexample.f90
|
|
|
|
compound: compound.f90
|
2005-04-06 07:39:38 +08:00
|
|
|
ph5example: ph5example.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
|