summaryrefslogtreecommitdiffstats
path: root/c++/test/Makefile.in
blob: edeb20c8864cc680277c8c48fbfdc473165fbf7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## HDF5-C++ test/Makefile(.in)
##
##
## 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.
##
##
##
top_srcdir=@top_srcdir@/..
top_builddir=../..
srcdir=@srcdir@
@COMMENCE@

hdf5_srcdir=$(top_srcdir)/src
hdf5_builddir=$(top_builddir)/src

## 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

LT_LINK_LIB=$(LT) --mode=link $(CXX) -rpath $(libdir)

## 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)

TEST_SRC=dsets.cpp testhdf5.cpp tfile.cpp th5s.cpp
TEST_OBJ=$(TEST_SRC:.cpp=.lo)
TEST_PROGS=dsets testhdf5

TESTHDF5_OBJ=testhdf5.lo tfile.lo th5s.lo

TEST_SCRIPTS=

DISTCLEAN=$(TEST_PROGS_SRC:.cpp=.lo) $(TEST_PROGS_SRC:.cpp=.o)

$(TEST_PROGS): $(LIB) $(LIBHDF5)

testhdf5: $(TEST_OBJ)
	@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TESTHDF5_OBJ) $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)

dsets: dsets.lo
	@$(LT_LINK_EXE) $(CFLAGS) -o $@ dsets.lo $(hdf5_builddir)/../test/h5test.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS) $(DEFAULT_LIBS)

@CONCLUDE@