2003-01-07 12:22:12 +08:00
|
|
|
##
|
|
|
|
## 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.
|
|
|
|
##
|
2003-08-14 12:58:29 +08:00
|
|
|
## HDF5-C++ test/Makefile(.in)
|
2000-11-15 07:15:12 +08:00
|
|
|
##
|
2003-07-29 05:38:04 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
2000-11-15 07:15:12 +08:00
|
|
|
top_builddir=../..
|
|
|
|
srcdir=@srcdir@
|
|
|
|
@COMMENCE@
|
|
|
|
|
2003-07-29 05:38:04 +08:00
|
|
|
HDF_CXX="yes"
|
|
|
|
|
2000-12-05 04:25:14 +08:00
|
|
|
hdf5_srcdir=$(top_srcdir)/src
|
2000-11-15 07:15:12 +08:00
|
|
|
hdf5_builddir=$(top_builddir)/src
|
2004-01-10 09:41:13 +08:00
|
|
|
hdf5_testdir=$(top_builddir)/test
|
2000-11-15 07:15:12 +08:00
|
|
|
|
2002-01-22 11:42:27 +08:00
|
|
|
## Add include directory to the cpp preprocessor flags; note that the
|
|
|
|
## hdf5/test directory is needed for the use of h5test
|
|
|
|
CPPFLAGS=-I. -I../src -I$(srcdir)/../src -I$(top_srcdir)/test -I$(hdf5_builddir) -I$(hdf5_srcdir) @CPPFLAGS@
|
2001-03-06 07:09:59 +08:00
|
|
|
|
2002-01-22 11:42:27 +08:00
|
|
|
## Add the C++ API library and the hdf5 library to the library lists
|
2000-11-16 00:06:32 +08:00
|
|
|
LIB=../src/libhdf5_cpp.la
|
2001-03-06 07:09:59 +08:00
|
|
|
LIBHDF5=$(hdf5_builddir)/libhdf5.la
|
2004-01-10 09:41:13 +08:00
|
|
|
LIBH5TEST=$(hdf5_testdir)/libh5test.la
|
2000-11-15 07:15:12 +08:00
|
|
|
|
2000-12-05 04:25:14 +08:00
|
|
|
## These are our main targets. They should be listed in the order to be
|
|
|
|
## executed, generally most specific tests to least specific tests.
|
|
|
|
RUNTEST=$(LT_RUN)
|
|
|
|
|
2003-06-10 21:10:20 +08:00
|
|
|
TESTHDF5_SRC=testhdf5.cpp tfile.cpp th5s.cpp h5cpputil.cpp
|
|
|
|
TESTHDF5_OBJ=$(TESTHDF5_SRC:.cpp=.lo)
|
|
|
|
|
|
|
|
TEST_SRC=dsets.cpp $(TESTHDF5_SRC)
|
2000-12-07 11:43:42 +08:00
|
|
|
TEST_OBJ=$(TEST_SRC:.cpp=.lo)
|
2001-03-09 05:03:32 +08:00
|
|
|
TEST_PROGS=dsets testhdf5
|
2000-11-15 07:15:12 +08:00
|
|
|
|
2001-03-16 03:18:38 +08:00
|
|
|
|
2000-12-08 06:32:10 +08:00
|
|
|
TEST_SCRIPTS=
|
2000-12-05 04:25:14 +08:00
|
|
|
|
2001-04-28 04:37:03 +08:00
|
|
|
DISTCLEAN=$(TEST_PROGS_SRC:.cpp=.lo) $(TEST_PROGS_SRC:.cpp=.o)
|
2000-11-15 07:15:12 +08:00
|
|
|
|
2004-01-10 09:41:13 +08:00
|
|
|
$(TEST_PROGS): $(LIB) $(LIBHDF5) $(LIBH5TEST)
|
2001-03-06 07:09:59 +08:00
|
|
|
|
|
|
|
testhdf5: $(TEST_OBJ)
|
2004-01-10 09:41:13 +08:00
|
|
|
@$(LT_LINK_CXX_EXE) $(CXXFLAGS) -o $@ $(TESTHDF5_OBJ) $(LIB) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)
|
2001-03-06 07:09:59 +08:00
|
|
|
|
2003-06-10 01:42:02 +08:00
|
|
|
dsets: dsets.lo h5cpputil.lo
|
2004-01-10 09:41:13 +08:00
|
|
|
@$(LT_LINK_CXX_EXE) $(CXXFLAGS) -o $@ dsets.lo h5cpputil.lo $(hdf5_builddir)/../test/h5test.lo $(LIB) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)
|
2000-11-15 07:15:12 +08:00
|
|
|
|
|
|
|
@CONCLUDE@
|