mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
3f0a35a4ea
Bug fix Description: pmake (on modi4, for instance) complains about undefined variables if it is run without the -V flag, which turns those errors to warnings. Solution: Added test to configure.in to see if $MAKE will allow Makefiles with undefined variables. If not, sets -V flag in AM_MAKEFLAGS. Ensured that all custom make targets use AM_MAKEFLAGS. Also defined all variables that caused errors in top-level Makefile.am. This means that pmake can be used to build hdf5 *from the top level only*. To run make from a subdirectory, still need to use -V flag (or use make or gmake). Platforms tested: modi4, heping, copper, sleipnir
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
## config/commence.am
|
|
## Textually included in the beginning of every HDF5 Makefile.am
|
|
## Contains definitions, etc. used across multiple Makefiles.
|
|
|
|
# Shell commands used in Makefiles
|
|
RM=rm -f
|
|
CP=cp
|
|
|
|
# Libraries to link to while building
|
|
LIBHDF5=$(top_builddir)/src/libhdf5.la
|
|
LIBH5TEST=$(top_builddir)/test/libh5test.la
|
|
LIBH5F=$(top_builddir)/fortran/src/libhdf5_fortran.la
|
|
LIBH5FTEST=$(top_builddir)/fortran/test/libh5test_fortran.la
|
|
LIBH5CPP=$(top_builddir)/c++/src/libhdf5_cpp.la
|
|
LIBH5TOOLS=$(top_builddir)/tools/lib/libh5tools.la
|
|
LIBH5_HL=$(top_builddir)/hl/src/libhdf5_hl.la
|
|
LIBH5F_HL=$(top_builddir)/hl/fortran/src/libhdf5hl_fortran.la
|
|
|
|
# Install directories that automake doesn't know about
|
|
includedir = $(exec_prefix)/include
|
|
docdir = $(exec_prefix)/doc
|
|
|
|
# Scripts used to build examples
|
|
H5CC=$(bindir)/h5cc
|
|
H5CC_PP=$(bindir)/h5pcc
|
|
H5FC=$(bindir)/h5fc
|
|
H5FC_PP=$(bindir)/h5pfc
|
|
|
|
# Make sure that these variables are exported to the Makefiles
|
|
F9XMODEXT=@F9XMODEXT@
|
|
F9XMODFLAG=@F9XMODFLAG@
|
|
|
|
# Set the paths for autotools to be correct on heping.
|
|
# Ideally, these tools should never be needed during the build.
|
|
ACLOCAL=/usr/bin/aclocal
|
|
AUTOCONF=/usr/local/autoconf-2.59/bin/autoconf
|
|
AUTOMAKE=/usr/bin/automake
|
|
AUTOHEADER=/usr/local/autoconf-2.59/bin/autoheader
|