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
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2024-10-19 12:13:04 +08:00
|
|
|
# the LICENSE file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
# 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
|
|
|
|
|
2019-06-06 12:20:01 +08:00
|
|
|
if BUILD_TESTS_PARALLEL_CONDITIONAL
|
2005-02-01 11:17:02 +08:00
|
|
|
TESTPARALLEL_DIR=testpar
|
2019-06-06 12:20:01 +08:00
|
|
|
else
|
|
|
|
TESTPARALLEL_DIR=
|
|
|
|
endif
|
|
|
|
if BUILD_TESTS_CONDITIONAL
|
|
|
|
TESTSERIAL_DIR=test
|
|
|
|
else
|
|
|
|
TESTSERIAL_DIR=
|
2005-02-01 11:17:02 +08:00
|
|
|
endif
|
|
|
|
|
2024-06-08 19:46:09 +08:00
|
|
|
# Subdirectories in build order
|
[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
|
2019-06-06 12:20:01 +08:00
|
|
|
SUBDIRS=src $(TESTSERIAL_DIR) $(TESTPARALLEL_DIR)
|
2019-03-10 11:41:38 +08:00
|
|
|
|
[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
|
2024-06-08 19:46:09 +08:00
|
|
|
DIST_SUBDIRS=src test testpar
|
2006-03-23 22:22:34 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|