2005-02-01 11:19:33 +08:00
|
|
|
#
|
2007-02-08 06:28:58 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-10-12 00:54:56 +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:19:33 +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.
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# HDF5 High-Level Makefile(.in)
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
|
|
|
## Automake will automatically recurse into fortran directory for distclean
|
|
|
|
## if we define it conditionally.
|
|
|
|
if BUILD_FORTRAN_CONDITIONAL
|
|
|
|
FORTRAN_DIR = fortran
|
|
|
|
endif
|
2005-03-29 00:32:20 +08:00
|
|
|
if BUILD_CXX_CONDITIONAL
|
|
|
|
CXX_DIR = c++
|
|
|
|
endif
|
2005-02-01 11:19:33 +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
|
|
|
## Don't recurse into any subdirectories if HDF5 is not configured to
|
|
|
|
## use the HL library
|
|
|
|
if BUILD_HDF5_HL_CONDITIONAL
|
2006-03-04 05:49:10 +08:00
|
|
|
SUBDIRS=src test tools $(CXX_DIR) $(FORTRAN_DIR)
|
[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
|
2006-03-11 21:21:13 +08:00
|
|
|
DIST_SUBDIRS=src test tools c++ fortran examples
|
2005-12-10 04:59:11 +08:00
|
|
|
|
|
|
|
# Install examples
|
|
|
|
install-examples uninstall-examples:
|
2015-03-24 00:05:44 +08:00
|
|
|
for d in examples $(HDF5_INTERFACES); do \
|
2010-07-09 10:52:14 +08:00
|
|
|
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
|
|
|
|
done
|
2005-12-10 04:59:11 +08:00
|
|
|
|
|
|
|
installcheck-local:
|
|
|
|
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
|
2005-02-01 11:19:33 +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
|
|
|
|
|
|
|
|
build-check-clean:
|
|
|
|
|
2005-02-01 11:19:33 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|