diff options
Diffstat (limited to 'src/plugin/peerstore/Makefile.am')
-rw-r--r-- | src/plugin/peerstore/Makefile.am | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/plugin/peerstore/Makefile.am b/src/plugin/peerstore/Makefile.am new file mode 100644 index 000000000..7202aef84 --- /dev/null +++ b/src/plugin/peerstore/Makefile.am | |||
@@ -0,0 +1,46 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | plugindir = $(libdir)/gnunet | ||
5 | |||
6 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
7 | |||
8 | libexecdir= $(pkglibdir)/libexec/ | ||
9 | |||
10 | if USE_COVERAGE | ||
11 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | ||
12 | endif | ||
13 | |||
14 | if HAVE_SQLITE | ||
15 | SQLITE_PLUGIN = libgnunet_plugin_peerstore_sqlite.la | ||
16 | SQLITE_TESTS = test_plugin_peerstore_sqlite | ||
17 | libgnunet_plugin_peerstore_sqlite_la_SOURCES = \ | ||
18 | plugin_peerstore_sqlite.c | ||
19 | libgnunet_plugin_peerstore_sqlite_la_LIBADD = \ | ||
20 | $(top_builddir)/src/lib/sq/libgnunetsq.la \ | ||
21 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
22 | $(XLIBS) -lsqlite3 \ | ||
23 | $(LTLIBINTL) | ||
24 | libgnunet_plugin_peerstore_sqlite_la_LDFLAGS = \ | ||
25 | $(GN_PLUGIN_LDFLAGS) | ||
26 | endif | ||
27 | |||
28 | plugin_LTLIBRARIES = \ | ||
29 | $(SQLITE_PLUGIN) | ||
30 | |||
31 | test_plugin_peerstore_sqlite_SOURCES = \ | ||
32 | test_plugin_peerstore.c | ||
33 | test_plugin_peerstore_sqlite_LDADD = \ | ||
34 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
35 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
36 | |||
37 | check_PROGRAMS = \ | ||
38 | $(SQLITE_TESTS) | ||
39 | |||
40 | EXTRA_DIST = \ | ||
41 | test_plugin_peerstore_sqlite.conf | ||
42 | |||
43 | if ENABLE_TEST_RUN | ||
44 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
45 | TESTS = $(check_PROGRAMS) | ||
46 | endif | ||