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/
12 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 AM_CFLAGS = --coverage -O0
21 SQLITE_PLUGIN = libgnunet_plugin_datacache_sqlite.la
24 POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
30 libgnunetdatacache_la_SOURCES = \
32 libgnunetdatacache_la_LIBADD = \
33 $(top_builddir)/src/statistics/libgnunetstatistics.la \
34 $(top_builddir)/src/util/libgnunetutil.la \
36 libgnunetdatacache_la_LDFLAGS = \
37 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
41 plugin_LTLIBRARIES = \
44 libgnunet_plugin_datacache_heap.la
46 # Real plugins should of course go into
48 noinst_LTLIBRARIES = \
49 libgnunet_plugin_datacache_template.la
52 libgnunet_plugin_datacache_sqlite_la_SOURCES = \
53 plugin_datacache_sqlite.c
54 libgnunet_plugin_datacache_sqlite_la_LIBADD = \
55 $(top_builddir)/src/statistics/libgnunetstatistics.la \
56 $(top_builddir)/src/sq/libgnunetsq.la \
57 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
59 libgnunet_plugin_datacache_sqlite_la_LDFLAGS = \
62 libgnunet_plugin_datacache_heap_la_SOURCES = \
63 plugin_datacache_heap.c
64 libgnunet_plugin_datacache_heap_la_LIBADD = \
65 $(top_builddir)/src/statistics/libgnunetstatistics.la \
66 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
68 libgnunet_plugin_datacache_heap_la_LDFLAGS = \
71 libgnunet_plugin_datacache_postgres_la_SOURCES = \
72 plugin_datacache_postgres.c
73 libgnunet_plugin_datacache_postgres_la_LIBADD = \
74 $(top_builddir)/src/postgres/libgnunetpostgres.la \
75 $(top_builddir)/src/pq/libgnunetpq.la \
76 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
78 $(GN_PLUGIN_LDFLAGS) -lpq
79 libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
80 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
81 libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
82 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
84 libgnunet_plugin_datacache_template_la_SOURCES = \
85 plugin_datacache_template.c
86 libgnunet_plugin_datacache_template_la_LIBADD = \
87 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
89 libgnunet_plugin_datacache_template_la_LDFLAGS = \
100 test_datacache_sqlite \
101 test_datacache_quota_sqlite \
110 test_datacache_heap \
111 test_datacache_quota_heap \
116 POSTGRES_BENCHMARKS = \
117 perf_datacache_postgres
120 test_datacache_postgres \
121 test_datacache_quota_postgres \
122 $(POSTGRES_BENCHMARKS)
132 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
133 TESTS = $(check_PROGRAMS)
136 test_datacache_sqlite_SOURCES = \
138 test_datacache_sqlite_LDADD = \
139 $(top_builddir)/src/testing/libgnunettesting.la \
140 libgnunetdatacache.la \
141 $(top_builddir)/src/util/libgnunetutil.la
143 test_datacache_quota_sqlite_SOURCES = \
144 test_datacache_quota.c
145 test_datacache_quota_sqlite_LDADD = \
146 $(top_builddir)/src/testing/libgnunettesting.la \
147 libgnunetdatacache.la \
148 $(top_builddir)/src/util/libgnunetutil.la
150 perf_datacache_sqlite_SOURCES = \
152 perf_datacache_sqlite_LDADD = \
153 $(top_builddir)/src/testing/libgnunettesting.la \
154 libgnunetdatacache.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 test_datacache_heap_SOURCES = \
159 test_datacache_heap_LDADD = \
160 $(top_builddir)/src/testing/libgnunettesting.la \
161 libgnunetdatacache.la \
162 $(top_builddir)/src/util/libgnunetutil.la
164 test_datacache_quota_heap_SOURCES = \
165 test_datacache_quota.c
166 test_datacache_quota_heap_LDADD = \
167 $(top_builddir)/src/testing/libgnunettesting.la \
168 libgnunetdatacache.la \
169 $(top_builddir)/src/util/libgnunetutil.la
171 perf_datacache_heap_SOURCES = \
173 perf_datacache_heap_LDADD = \
174 $(top_builddir)/src/testing/libgnunettesting.la \
175 libgnunetdatacache.la \
176 $(top_builddir)/src/util/libgnunetutil.la
178 test_datacache_postgres_SOURCES = \
180 test_datacache_postgres_LDADD = \
181 $(top_builddir)/src/testing/libgnunettesting.la \
182 libgnunetdatacache.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 test_datacache_quota_postgres_SOURCES = \
186 test_datacache_quota.c
187 test_datacache_quota_postgres_LDADD = \
188 $(top_builddir)/src/testing/libgnunettesting.la \
189 libgnunetdatacache.la \
190 $(top_builddir)/src/util/libgnunetutil.la
192 perf_datacache_postgres_SOURCES = \
194 perf_datacache_postgres_LDADD = \
195 $(top_builddir)/src/testing/libgnunettesting.la \
196 libgnunetdatacache.la \
197 $(top_builddir)/src/util/libgnunetutil.la
200 test_datacache_data_sqlite.conf \
201 perf_datacache_data_sqlite.conf \
202 test_datacache_data_heap.conf \
203 perf_datacache_data_heap.conf \
204 test_datacache_data_postgres.conf \
205 perf_datacache_data_postgres.conf