Description:
1) configure now sets LD_LIBRARY_PATH before checking for presence of
SZIP encoder, so user does not need to set this. The path is then
saved and sent to Makefiles, and used when "make check-install" is
invoked, so user doesn't need to set this manually.
2) Upgraded libtool to version 2.2.6a
3) Rearranged tools build order as h5dump depends on existence of h5diff
and h5import. Since h5dump is a sister directory as opposed to a parent
of either, it doesn't know about the build rules of these tools, so
setting any sort of explicit dependency confuses automake as it won't
know how to build the tools. Instead, setting CONFIG = ordered forces
an in-order traversal of each tools subdirectory. (without it will also
traverse in order by default, but this should prevent gmake's -j option
from jumping ahead as well). 'make check install' should now be able to
be invoked after 'configure' without causing a dependency failure.
4) Removed H5_HAVE_LARGE_HSIZET macro from vms/src/h5pubconf.h, as this macro
has now been out of the code for some time. (vms pubconf needs to be
updated manually, which is why it was still hanging around).
Tested: kagiso, smirom, liberty
Note: h5diff looks to be causing failures in h5copy and h5dump tools tests,
though these were present before any of my changes. My changes only
affect build order and configuration setup, and shouldn't prevent
fixes for these failures coming in after this checkin. Other than these,
tests pass fine.
100 lines
3.5 KiB
Makefile
100 lines
3.5 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 files COPYING and Copyright.html. COPYING can be found at the root
|
|
# of the source code distribution tree; Copyright.html can be found at the
|
|
# root level of an installed copy of the electronic HDF5 document set and
|
|
# is linked from the top-level documents page. It can also be found at
|
|
# http://hdfgroup.org/HDF5/doc/Copyright.html. 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 Library Examples Makefile(.in)
|
|
#
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
if BUILD_PARALLEL_CONDITIONAL
|
|
TEST_PROG_PARA = ph5example
|
|
endif
|
|
|
|
# Example programs.
|
|
# Don't tell automake about them, because if it knew they were programs,
|
|
# it would try to compile them instead of using the h5cc script.
|
|
# Use the boilerplate in config/examples.am instead.
|
|
TEST_PROG = h5_write h5_read h5_extend_write h5_chunk_read h5_compound \
|
|
h5_group h5_select h5_attribute h5_mount h5_reference h5_drivers \
|
|
h5_ref2reg h5_extlink h5_elink_unix2win h5_shared_mesg
|
|
TEST_SCRIPT=testh5cc.sh
|
|
|
|
# Install files
|
|
# List all file that should be installed in examples directory
|
|
INSTALL_FILES = h5_write.c h5_read.c h5_extend_write.c h5_chunk_read.c \
|
|
h5_compound.c h5_group.c h5_select.c h5_attribute.c h5_mount.c \
|
|
h5_reference.c h5_drivers.c h5_extlink.c h5_elink_unix2win.c \
|
|
h5_ref2reg.c h5_shared_mesg.c ph5example.c
|
|
|
|
# How to build examples, using installed version of h5cc
|
|
if BUILD_PARALLEL_CONDITIONAL
|
|
$(EXTRA_PROG): $(H5CC_PP)
|
|
$(H5CC_PP) $(H5CCFLAGS) $(CFLAGS) -o $@ $(srcdir)/$@.c;
|
|
else
|
|
$(EXTRA_PROG): $(H5CC)
|
|
$(H5CC) $(H5CCFLAGS) $(CFLAGS) -o $@ $(srcdir)/$@.c;
|
|
endif
|
|
|
|
# Two of the examples depend on files created by other examples.
|
|
h5_read.chkexe_: h5_write.chkexe_
|
|
h5_chunk_read.chkexe_: h5_extend_write.chkexe_
|
|
|
|
# The external link examples demonstrate how to use paths; they need
|
|
# directories to be created to do this.
|
|
EXTLINK_DIRS=red blue u2w
|
|
|
|
$(EXTLINK_DIRS):
|
|
echo $(mkdir_p) $@
|
|
$(mkdir_p) $@
|
|
|
|
CHECK_CLEANFILES+=$(EXTLINK_DIRS)
|
|
|
|
# Example directory
|
|
EXAMPLEDIR=$(docdir)/hdf5/examples/c
|
|
|
|
# List dependencies for each program. 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
|
|
# library above.
|
|
h5_chunk_read: $(srcdir)/h5_chunk_read.c
|
|
h5_compound: $(srcdir)/h5_compound.c
|
|
h5_extend_write: $(srcdir)/h5_extend_write.c
|
|
h5_group: $(srcdir)/h5_group.c
|
|
h5_write: $(srcdir)/h5_write.c
|
|
h5_read: $(srcdir)/h5_read.c
|
|
h5_select: $(srcdir)/h5_select.c
|
|
h5_attribute: $(srcdir)/h5_attribute.c
|
|
h5_mount: $(srcdir)/h5_mount.c
|
|
h5_reference: $(srcdir)/h5_reference.c
|
|
h5_ref2reg: $(srcdir)/h5_ref2reg.c
|
|
h5_drivers: $(srcdir)/h5_drivers.c
|
|
ph5example: $(srcdir)/ph5example.c
|
|
h5_dtransform: $(srcdir)/h5_dtransform.c
|
|
h5_extlink: $(srcdir)/h5_extlink.c $(EXTLINK_DIRS)
|
|
h5_elink_unix2win: $(srcdir)/h5_elink_unix2win.c $(EXTLINK_DIRS)
|
|
h5_shared_mesg: $(srcdir)/h5_shared_mesg.c
|
|
|
|
if BUILD_SZIP_CONDITIONAL
|
|
export LD_LIBRARY_PATH=$(LL_PATH)
|
|
endif
|
|
|
|
include $(top_srcdir)/config/examples.am
|
|
include $(top_srcdir)/config/conclude.am
|