summaryrefslogtreecommitdiffstats
path: root/hl/examples/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'hl/examples/Makefile.in')
-rw-r--r--hl/examples/Makefile.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/hl/examples/Makefile.in b/hl/examples/Makefile.in
index a97b677..3ed927f 100644
--- a/hl/examples/Makefile.in
+++ b/hl/examples/Makefile.in
@@ -309,19 +309,19 @@ TRACE = perl $(top_srcdir)/bin/trace
CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5
@BUILD_PARALLEL_CONDITIONAL_TRUE@TEST_PROG_PARA =
+# Example directory
+EXAMPLEDIR = $(docdir)/hdf5/examples/hl/c
+
# 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
+TEST_PROG = ex_lite1 ex_lite2 ex_lite3 ptExampleFL ptExampleVL
# Install files
# List all file that should be installed in examples directory
INSTALL_FILES = ptExampleFL.c ptExampleVL.c
-# Example directory
-EXAMPLEDIR = $(docdir)/hdf5/examples/hl/c
-
# Assume that all tests in this directory are examples, and tell
# conclude.am when to build them.
EXAMPLE_PROG = $(TEST_PROG_PARA) $(TEST_PROG)
@@ -534,12 +534,18 @@ $(EXTRA_PROG): $(LIBHDF5) $(LIBH5_HL)
@BUILD_PARALLEL_CONDITIONAL_TRUE@ $(H5CC_PP) $(CFLAGS) -o $@ $(srcdir)/$@.c;
@BUILD_PARALLEL_CONDITIONAL_FALSE@ $(H5CC) $(CFLAGS) -o $@ $(srcdir)/$@.c;
+# ex_lite2 uses a file created by ex_lite1
+ex_lite2.chkexe_: ex_lite1.chkexe_
+
# 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.
+ex_lite1: $(srcdir)/ex_lite1.c
+ex_lite2: $(srcdir)/ex_lite2.c
+ex_lite3: $(srcdir)/ex_lite3.c
ptExampleFL: $(srcdir)/ptExampleFL.c
ptExampleVL: $(srcdir)/ptExampleVL.c