summaryrefslogtreecommitdiffstats
path: root/src/lib/database/testutils/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/database/testutils/Makefile.am')
-rw-r--r--src/lib/database/testutils/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/database/testutils/Makefile.am b/src/lib/database/testutils/Makefile.am
new file mode 100644
index 0000000..3cf82e0
--- /dev/null
+++ b/src/lib/database/testutils/Makefile.am
@@ -0,0 +1,21 @@
+SUBDIRS = .
+
+AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
+TEST_CA_DIR = $(abs_srcdir)/../../asiolink/testutils/ca
+AM_CPPFLAGS += -DTEST_CA_DIR=\"$(TEST_CA_DIR)\"
+
+AM_CXXFLAGS = $(KEA_CXXFLAGS)
+
+CLEANFILES = *.gcno *.gcda
+
+if HAVE_GTEST
+
+noinst_LTLIBRARIES = libdatabasetest.la
+
+libdatabasetest_la_SOURCES = schema.cc schema.h
+
+libdatabasetest_la_CXXFLAGS = $(AM_CXXFLAGS)
+libdatabasetest_la_CPPFLAGS = $(AM_CPPFLAGS)
+libdatabasetest_la_LDFLAGS = $(AM_LDFLAGS)
+
+endif