## HDF5-HL C examples/Makefile(.in)
##
##
# 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.
##
##
##
top_srcdir=@top_srcdir@
top_builddir=../..
srcdir=@srcdir@
@COMMENCE@
## Replace building CC with the just installed h5cc
H5CC=$(bindir)/h5cc
H5PCC=$(bindir)/h5pcc
CPPFLAGS=-I. -I$(srcdir)
CFLAGS=
hdf5_srcdir=$(top_srcdir)/src
hdf5_builddir=$(top_builddir)/src
## List all source files here. The list of object files will be
## created by replacing the `.cpp' with a `.lo'. This list is necessary
## for building automatic dependencies.
TEST_SRC=ex_lite1.c ex_lite2.c ex_lite3.c ex_image1.c ex_image2.c \
ex_table_01.c ex_table_02.c ex_table_03.c ex_table_04.c \
ex_table_05.c ex_table_06.c ex_table_07.c ex_table_08.c \
ex_table_09.c ex_table_10.c ex_table_11.c ex_table_12.c
TEST_OBJ=$(TEST_SRC:.c=.lo)
EXAMPLE_PROGS=$(TEST_SRC)
## These are the programs that `make all' or `make tests' will build and which
## `make check' will run. List them in the order they should be run.
TEST_PROGS=$(TEST_SRC:.c=)
## These are the files that `make clean' (and derivatives) will remove from
## this directory.
CLEAN=*.h5
## How to build the programs... they depend only on the installed versions
## of the libraries and h5cc.
$(TEST_PROGS):
ex_lite1: $(srcdir)/ex_lite1.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_lite2: $(srcdir)/ex_lite2.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_lite3: $(srcdir)/ex_lite3.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_image1: $(srcdir)/ex_image1.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_image2: $(srcdir)/ex_image2.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_01: $(srcdir)/ex_table_01.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_02: $(srcdir)/ex_table_02.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_03: $(srcdir)/ex_table_03.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_04: $(srcdir)/ex_table_04.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_05: $(srcdir)/ex_table_05.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_06: $(srcdir)/ex_table_06.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_07: $(srcdir)/ex_table_07.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_08: $(srcdir)/ex_table_08.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_09: $(srcdir)/ex_table_09.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_10: $(srcdir)/ex_table_10.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_11: $(srcdir)/ex_table_11.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
ex_table_12: $(srcdir)/ex_table_12.c
@if test "X$(PARALLEL)" = "Xno"; then \
echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
else \
echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
@CONCLUDE@
syntax highlighted by Code2HTML, v. 0.9.1