1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 pkgcfgdir= $(pkgdatadir)/config.d/
8 libexecdir= $(pkglibdir)/libexec/
14 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
18 AM_CFLAGS = -fprofile-arcs -ftest-coverage
25 gnunet-service-peerstore
30 gnunet_peerstore_SOURCES = \
32 gnunet_peerstore_LDADD = \
33 $(top_builddir)/src/util/libgnunetutil.la \
34 libgnunetpeerstore.la \
37 gnunet_service_peerstore_SOURCES = \
38 gnunet-service-peerstore.c \
39 peerstore_common.c peerstore_common.h \
41 gnunet_service_peerstore_CFLAGS = $(AM_CFLAGS)
42 gnunet_service_peerstore_LDADD = \
43 $(top_builddir)/src/util/libgnunetutil.la \
46 libgnunetpeerstore_la_SOURCES = \
49 libgnunetpeerstore_la_LIBADD = \
50 $(top_builddir)/src/util/libgnunetutil.la
51 libgnunetpeerstore_la_LDFLAGS = \
54 plugin_LTLIBRARIES = \
55 libgnunet_plugin_peerstore_sqlite.la
57 libgnunet_plugin_peerstore_sqlite_la_SOURCES = \
58 plugin_peerstore_sqlite.c
59 libgnunet_plugin_peerstore_sqlite_la_LIBADD = \
60 libgnunetpeerstore.la \
61 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
63 libgnunet_plugin_peerstore_sqlite_la_LDFLAGS = \
67 test_peerstore_api_store \
68 test_peerstore_api_iterate \
69 test_peerstore_api_watch \
70 test_peerstore_api_sync \
74 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
75 TESTS = $(check_PROGRAMS)
78 test_peerstore_api_store_SOURCES = \
79 test_peerstore_api_store.c
80 test_peerstore_api_store_LDADD = \
81 libgnunetpeerstore.la \
82 $(top_builddir)/src/testing/libgnunettesting.la \
83 $(top_builddir)/src/util/libgnunetutil.la
85 test_peerstore_api_iterate_SOURCES = \
86 test_peerstore_api_iterate.c
87 test_peerstore_api_iterate_LDADD = \
88 libgnunetpeerstore.la \
89 $(top_builddir)/src/testing/libgnunettesting.la \
90 $(top_builddir)/src/util/libgnunetutil.la
92 test_peerstore_api_watch_SOURCES = \
93 test_peerstore_api_watch.c
94 test_peerstore_api_watch_LDADD = \
95 libgnunetpeerstore.la \
96 $(top_builddir)/src/testing/libgnunettesting.la \
97 $(top_builddir)/src/util/libgnunetutil.la
99 test_peerstore_api_sync_SOURCES = \
100 test_peerstore_api_sync.c
101 test_peerstore_api_sync_LDADD = \
102 libgnunetpeerstore.la \
103 $(top_builddir)/src/testing/libgnunettesting.la \
104 $(top_builddir)/src/util/libgnunetutil.la
106 perf_peerstore_store_SOURCES = \
107 perf_peerstore_store.c
108 perf_peerstore_store_LDADD = \
109 libgnunetpeerstore.la \
110 $(top_builddir)/src/testing/libgnunettesting.la \
111 $(top_builddir)/src/util/libgnunetutil.la