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
|
2017-04-18 03:32:16 +08:00
|
|
|
# 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.
|
2005-02-01 11:17:02 +08:00
|
|
|
#
|
|
|
|
# This makefile mostly just reinvokes make in the various subdirectories
|
|
|
|
# but does so in the correct order. You can alternatively invoke make from
|
|
|
|
# each subdirectory manually.
|
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
#
|
|
|
|
# Top-level HDF5-Fortran Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
|
|
|
if BUILD_PARALLEL_CONDITIONAL
|
|
|
|
TESTPARALLEL_DIR=testpar
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Subdirectories in build order, not including examples directory
|
[svn-r10587] Purpose:
Minor feature
Description:
If a user configures without C++ or Fortran, 'make' will not recurse into
c++ or fortran directories. However, if the user cd's into these
directories and 'makes,' the Makefiles will attempt to build interfaces
that have not been configured, usually failing.
In an unrelated but minor change, src/H5detect should be compiled with
the -g flag to disable compiler optimizations since it is only
executed once.
Solution:
Make it harder for users to try to compile interfaces that have not been
configured by making c++, fortran, and hl directories not recurse into
their subdirectories unless they have been configured.
Thus, 'make' in /fortran/src will break if Fortran has not been configured,
but 'make' in /fortran will not break.
Platforms tested:
mir, modi4, copper
Misc. update:
2005-04-12 05:47:05 +08:00
|
|
|
## Only recurse into subdirectories if HDF5 is configured to use Fortran.
|
|
|
|
if BUILD_FORTRAN_CONDITIONAL
|
|
|
|
SUBDIRS=src test $(TESTPARALLEL_DIR)
|
2019-03-10 11:41:38 +08:00
|
|
|
|
|
|
|
# Test with just the native connector, with a single pass-through connector
|
|
|
|
# and with a doubly-stacked pass-through.
|
|
|
|
VOL_LIST = native "pass_through under_vol=0;under_info={}" \
|
|
|
|
"pass_through under_vol=505;under_info={under_vol=0;under_info={}}"
|
|
|
|
|
[svn-r10587] Purpose:
Minor feature
Description:
If a user configures without C++ or Fortran, 'make' will not recurse into
c++ or fortran directories. However, if the user cd's into these
directories and 'makes,' the Makefiles will attempt to build interfaces
that have not been configured, usually failing.
In an unrelated but minor change, src/H5detect should be compiled with
the -g flag to disable compiler optimizations since it is only
executed once.
Solution:
Make it harder for users to try to compile interfaces that have not been
configured by making c++, fortran, and hl directories not recurse into
their subdirectories unless they have been configured.
Thus, 'make' in /fortran/src will break if Fortran has not been configured,
but 'make' in /fortran will not break.
Platforms tested:
mir, modi4, copper
Misc. update:
2005-04-12 05:47:05 +08:00
|
|
|
endif
|
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# All directories that have Makefiles
|
|
|
|
DIST_SUBDIRS=src test testpar examples
|
|
|
|
|
|
|
|
# Install examples
|
|
|
|
install-examples uninstall-examples:
|
2005-08-02 06:22:55 +08:00
|
|
|
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
installcheck-local:
|
2005-08-02 06:22:55 +08:00
|
|
|
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2006-03-23 22:22:34 +08:00
|
|
|
# Clean examples when check-clean is invoked
|
|
|
|
check-clean ::
|
|
|
|
@$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1;
|
|
|
|
@for d in X $(SUBDIRS) examples; do \
|
|
|
|
if test $$d != X && test $$d != .; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|