Makefile.am 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/ext
AM_CPPFLAGS += -I$(top_builddir)/include/dns/cpp

CLEANFILES = *.gcno *.gcda

TESTS =
if HAVE_GTEST
TESTS += run_unittests
run_unittests_SOURCES = unittest_util.h unittest_util.cc
run_unittests_SOURCES += buffer_unittest.cc name_unittest.cc
run_unittests_SOURCES += messagerenderer_unittest.cc
run_unittests_SOURCES += rrclass_unittest.cc rrtype_unittest.cc
run_unittests_SOURCES += rrttl_unittest.cc
run_unittests_SOURCES += rdata_unittest.h rdata_unittest.cc
run_unittests_SOURCES += rdata_in_a_unittest.cc rdata_in_aaaa_unittest.cc
run_unittests_SOURCES += rdata_ns_unittest.cc rdata_soa_unittest.cc
run_unittests_SOURCES += rdata_txt_unittest.cc rdata_mx_unittest.cc
run_unittests_SOURCES += rdata_cname_unittest.cc
19 20 21 22
#run_unittests_SOURCES += rdata_dname_unittest.cc
#run_unittests_SOURCES += rdata_dnskey_unittest.cc
#run_unittests_SOURCES += rdata_ds_unittest.cc
#run_unittests_SOURCES += rdata_nsec_unittest.cc
23
run_unittests_SOURCES += rdata_rrsig_unittest.cc
24
run_unittests_SOURCES += rrset_unittest.cc rrsetlist_unittest.cc
25 26 27 28
run_unittests_SOURCES += question_unittest.cc
run_unittests_SOURCES += rrparamregistry_unittest.cc
run_unittests_SOURCES += message_unittest.cc
run_unittests_SOURCES += base64_unittest.cc
29
run_unittests_SOURCES += hex_unittest.cc
30
run_unittests_SOURCES += tsig_unittest.cc
31 32 33 34 35 36 37 38 39
run_unittests_SOURCES += run_unittests.cc
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
run_unittests_LDADD = $(GTEST_LDADD)
run_unittests_LDADD += $(top_builddir)/src/lib/dns/cpp/.libs/libdns.a
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/cpp/.libs/libexceptions.a
endif

noinst_PROGRAMS = $(TESTS)