mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
89fbe00dec
* commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
66 lines
2.3 KiB
Makefile
66 lines
2.3 KiB
Makefile
#
|
|
# Copyright by The HDF Group.
|
|
# 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 COPYING file, which can be found at the root of the source code
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
# If you do not have access to either file, you may request a copy from
|
|
# help@hdfgroup.org.
|
|
##
|
|
## Makefile.am
|
|
## Run automake to generate a Makefile.in from this file.
|
|
##
|
|
#
|
|
# HDF5-Fortran Examples Makefile(.in)
|
|
#
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
# Compile parallel fortran examples only if parallel is enabled
|
|
if BUILD_PARALLEL_CONDITIONAL
|
|
EXAMPLE_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.
|
|
# We don't tell automake about these programs so that it doesn't try to
|
|
# compile them with the regular fortran compiler.
|
|
EXAMPLE_PROG=exlite ex_ds1
|
|
TEST_EXAMPLES_SCRIPT=$(INSTALL_SCRIPT_FILES)
|
|
|
|
# List files to be installed here
|
|
INSTALL_FILES= exlite.f90 ex_ds1.f90
|
|
INSTALL_SCRIPT_FILES = run-hlfortran-ex.sh
|
|
|
|
# Mark this directory as part of the Fortran API (this affects output
|
|
# from tests in conclude.am)
|
|
FORTRAN_API=yes
|
|
|
|
# Tell automake how to build examples using h5fc
|
|
if BUILD_PARALLEL_CONDITIONAL
|
|
$(EXTRA_PROG): $(H5FC_PP)
|
|
$(H5FC_PP) $(H5CCFLAGS) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
|
else
|
|
$(EXTRA_PROG): $(H5FC)
|
|
$(H5FC) $(H5CCFLAGS) $(FCFLAGS) -o $@ $(srcdir)/$@.f90;
|
|
endif
|
|
|
|
# Tell automake how to install examples
|
|
# Note: no '/' after DESTDIR. Explanation in commence.am
|
|
EXAMPLEDIR=${DESTDIR}$(exec_prefix)/share/hdf5_examples/hl/fortran
|
|
EXAMPLETOPDIR=${DESTDIR}$(exec_prefix)/share/hdf5_examples/hl
|
|
|
|
# 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.
|
|
|
|
include $(top_srcdir)/config/examples.am
|
|
include $(top_srcdir)/config/conclude_fc.am
|