mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
987f5d5e4d
Code cleanup & reorganization Description: Move further in the testing framework cleanup, eliminating all the global variables (moving them into testframe.c as static variables) from the testing framework code and moving it into the libh5test.a. Platforms tested: FreeBSD 4.9 (sleipnir) w & w/o thread-safety, c++ & parallel h5committested
61 lines
2.1 KiB
Makefile
61 lines
2.1 KiB
Makefile
##
|
|
## 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.
|
|
##
|
|
## HDF5-C++ test/Makefile(.in)
|
|
##
|
|
top_srcdir=@top_srcdir@
|
|
top_builddir=../..
|
|
srcdir=@srcdir@
|
|
@COMMENCE@
|
|
|
|
HDF_CXX="yes"
|
|
|
|
hdf5_srcdir=$(top_srcdir)/src
|
|
hdf5_builddir=$(top_builddir)/src
|
|
hdf5_testdir=$(top_builddir)/test
|
|
|
|
## 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@
|
|
|
|
## Add the C++ API library and the hdf5 library to the library lists
|
|
LIB=../src/libhdf5_cpp.la
|
|
LIBHDF5=$(hdf5_builddir)/libhdf5.la
|
|
LIBH5TEST=$(hdf5_testdir)/libh5test.la
|
|
|
|
## 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)
|
|
|
|
TESTHDF5_SRC=testhdf5.cpp tfile.cpp th5s.cpp h5cpputil.cpp
|
|
TESTHDF5_OBJ=$(TESTHDF5_SRC:.cpp=.lo)
|
|
|
|
TEST_SRC=dsets.cpp $(TESTHDF5_SRC)
|
|
TEST_OBJ=$(TEST_SRC:.cpp=.lo)
|
|
TEST_PROGS=dsets testhdf5
|
|
|
|
|
|
TEST_SCRIPTS=
|
|
|
|
DISTCLEAN=$(TEST_PROGS_SRC:.cpp=.lo) $(TEST_PROGS_SRC:.cpp=.o)
|
|
|
|
$(TEST_PROGS): $(LIB) $(LIBHDF5) $(LIBH5TEST)
|
|
|
|
testhdf5: $(TEST_OBJ)
|
|
@$(LT_LINK_CXX_EXE) $(CXXFLAGS) -o $@ $(TESTHDF5_OBJ) $(LIB) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)
|
|
|
|
dsets: dsets.lo h5cpputil.lo
|
|
@$(LT_LINK_CXX_EXE) $(CXXFLAGS) -o $@ dsets.lo h5cpputil.lo $(hdf5_builddir)/../test/h5test.lo $(LIB) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)
|
|
|
|
@CONCLUDE@
|