diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-12-09 20:59:11 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-12-09 20:59:11 (GMT) |
commit | b1fd3f565750a18246239cdac50e433d6d668524 (patch) | |
tree | f09179e1fb2a04e01983c85f9a3873c159fefda7 /hl/examples/Makefile.am | |
parent | 9124030f911f002bd49ec8bccd4c051df410cc72 (diff) | |
download | hdf5-b1fd3f565750a18246239cdac50e433d6d668524.zip hdf5-b1fd3f565750a18246239cdac50e433d6d668524.tar.gz hdf5-b1fd3f565750a18246239cdac50e433d6d668524.tar.bz2 |
[svn-r11780] Purpose:
Added high-level example directories
Description:
Refactored common code out of examples Makefiles.am, added high-level
example directories, added packet table examples.
Solution:
Examples now draw from a common config/examples.am file, which
contains rules for installing, uninstalling, and cleaning examples.
High-level example directories are mostly empty, except for the
C and C++ packet table tests.
Platforms tested:
mir, sleipnir, copper, shanti
Diffstat (limited to 'hl/examples/Makefile.am')
-rw-r--r-- | hl/examples/Makefile.am | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/hl/examples/Makefile.am b/hl/examples/Makefile.am new file mode 100644 index 0000000..6a436af --- /dev/null +++ b/hl/examples/Makefile.am @@ -0,0 +1,58 @@ +# +# 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://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have +# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. +## +## 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 = +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 = ptExampleFL ptExampleVL + +# Install files +# List all file that should be installed in examples directory +INSTALL_FILES = ptExampleFL.c ptExampleVL.c + +# Additional dependencies for each program are listed below. +$(EXTRA_PROG): $(LIBHDF5) $(LIBH5_HL) +if BUILD_PARALLEL_CONDITIONAL + $(H5CC_PP) $(CFLAGS) -o $@ $(srcdir)/$@.c; +else + $(H5CC) $(CFLAGS) -o $@ $(srcdir)/$@.c; +endif + +# Example directory +EXAMPLEDIR=$(docdir)/hdf5/examples/hl/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. +ptExampleFL: $(srcdir)/ptExampleFL.c +ptExampleVL: $(srcdir)/ptExampleVL.c + +include $(top_srcdir)/config/examples.am +include $(top_srcdir)/config/conclude.am |