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 = \
55 plugin_LTLIBRARIES = \
56 libgnunet_plugin_peerstore_sqlite.la
58 libgnunet_plugin_peerstore_sqlite_la_SOURCES = \
59 plugin_peerstore_sqlite.c
60 libgnunet_plugin_peerstore_sqlite_la_LIBADD = \
61 libgnunetpeerstore.la \
62 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
64 libgnunet_plugin_peerstore_sqlite_la_LDFLAGS = \
69 test_peerstore_api_store \
70 test_peerstore_api_iterate \
71 test_peerstore_api_watch \
72 test_peerstore_api_sync \
76 test_peerstore_api_data.conf
79 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
80 TESTS = $(check_PROGRAMS)
83 test_peerstore_api_store_SOURCES = \
84 test_peerstore_api_store.c
85 test_peerstore_api_store_LDADD = \
86 libgnunetpeerstore.la \
87 $(top_builddir)/src/testing/libgnunettesting.la \
88 $(top_builddir)/src/util/libgnunetutil.la
90 test_peerstore_api_iterate_SOURCES = \
91 test_peerstore_api_iterate.c
92 test_peerstore_api_iterate_LDADD = \
93 libgnunetpeerstore.la \
94 $(top_builddir)/src/testing/libgnunettesting.la \
95 $(top_builddir)/src/util/libgnunetutil.la
97 test_peerstore_api_watch_SOURCES = \
98 test_peerstore_api_watch.c
99 test_peerstore_api_watch_LDADD = \
100 libgnunetpeerstore.la \
101 $(top_builddir)/src/testing/libgnunettesting.la \
102 $(top_builddir)/src/util/libgnunetutil.la
104 test_peerstore_api_sync_SOURCES = \
105 test_peerstore_api_sync.c
106 test_peerstore_api_sync_LDADD = \
107 libgnunetpeerstore.la \
108 $(top_builddir)/src/testing/libgnunettesting.la \
109 $(top_builddir)/src/util/libgnunetutil.la
111 perf_peerstore_store_SOURCES = \
112 perf_peerstore_store.c
113 perf_peerstore_store_LDADD = \
114 libgnunetpeerstore.la \
115 $(top_builddir)/src/testing/libgnunettesting.la \
116 $(top_builddir)/src/util/libgnunetutil.la