Makefile.am 1015 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_builddir)/src/lib/dns -I$(top_srcdir)/src/lib/dns
AM_CPPFLAGS += $(BOOST_INCLUDES)

AM_CXXFLAGS = $(B10_CXXFLAGS)

if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

CLEANFILES = *.gcno *.gcda

TESTS_ENVIRONMENT = \
	$(LIBTOOL) --mode=execute $(VALGRIND_COMMAND)

TESTS =
if HAVE_GTEST
TESTS += run_unittests

run_unittests_SOURCES = run_unittests.cc
21
run_unittests_SOURCES += rdata_serialization_unittest.cc
22
run_unittests_SOURCES += domaintree_unittest.cc
23
24
25
26
27

run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS  = $(AM_LDFLAGS)  $(GTEST_LDFLAGS)

run_unittests_LDADD = $(builddir)/../libdatasrc_memory.la
28
run_unittests_LDADD += $(top_builddir)/src/lib/dns/libb10-dns++.la
29
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
30
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
31
32
33
34
run_unittests_LDADD += $(GTEST_LDADD)
endif

noinst_PROGRAMS = $(TESTS)