1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
7 libexecdir= $(pkglibdir)/libexec/
13 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
17 AM_CFLAGS = --coverage -O0
25 libgnunetdatastore_la_SOURCES = \
26 datastore_api.c datastore.h
27 libgnunetdatastore_la_LIBADD = \
28 $(top_builddir)/src/statistics/libgnunetstatistics.la \
29 $(top_builddir)/src/util/libgnunetutil.la \
31 libgnunetdatastore_la_LDFLAGS = \
32 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
39 gnunet-service-datastore
41 gnunet_service_datastore_SOURCES = \
42 gnunet-service-datastore.c
43 gnunet_service_datastore_LDADD = \
44 $(top_builddir)/src/statistics/libgnunetstatistics.la \
45 $(top_builddir)/src/util/libgnunetutil.la \
48 gnunet_datastore_SOURCES = \
50 gnunet_datastore_LDADD = \
51 $(top_builddir)/src/datastore/libgnunetdatastore.la \
52 $(top_builddir)/src/util/libgnunetutil.la \
54 gnunet_datastore_DEPENDENCIES = \
59 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
63 perf_datastore_api_mysql \
64 perf_plugin_datastore_mysql
67 test_datastore_api_mysql \
68 test_datastore_api_management_mysql \
69 test_plugin_datastore_mysql \
74 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
78 perf_datastore_api_sqlite \
79 perf_plugin_datastore_sqlite
82 test_datastore_api_sqlite \
83 test_datastore_api_management_sqlite \
84 test_plugin_datastore_sqlite \
89 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
92 POSTGRES_BENCHMARKS = \
93 perf_datastore_api_postgres \
94 perf_plugin_datastore_postgres
97 test_datastore_api_postgres \
98 test_datastore_api_management_postgres \
99 test_plugin_datastore_postgres \
100 $(POSTGRES_BENCHMARKS)
104 plugin_LTLIBRARIES = \
108 libgnunet_plugin_datastore_heap.la \
109 libgnunet_plugin_datastore_template.la
112 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
113 plugin_datastore_sqlite.c
114 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
115 $(top_builddir)/src/statistics/libgnunetstatistics.la \
116 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
118 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
122 libgnunet_plugin_datastore_heap_la_SOURCES = \
123 plugin_datastore_heap.c
124 libgnunet_plugin_datastore_heap_la_LIBADD = \
125 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
127 libgnunet_plugin_datastore_heap_la_LDFLAGS = \
131 libgnunet_plugin_datastore_mysql_la_SOURCES = \
132 plugin_datastore_mysql.c
133 libgnunet_plugin_datastore_mysql_la_LIBADD = \
134 $(top_builddir)/src/mysql/libgnunetmysql.la \
135 $(top_builddir)/src/statistics/libgnunetstatistics.la \
136 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) $(Z_LIBS) -lmysqlclient
137 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
138 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
139 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
140 $(MYSQL_CPPFLAGS) $(AM_CPPFLAGS)
142 libgnunet_plugin_datastore_postgres_la_SOURCES = \
143 plugin_datastore_postgres.c
144 libgnunet_plugin_datastore_postgres_la_LIBADD = \
145 $(top_builddir)/src/statistics/libgnunetstatistics.la \
146 $(top_builddir)/src/postgres/libgnunetpostgres.la \
147 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
148 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
149 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
150 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
151 $(POSTGRES_CPPFLAGS) $(AM_CPPFLAGS)
154 libgnunet_plugin_datastore_template_la_SOURCES = \
155 plugin_datastore_template.c
156 libgnunet_plugin_datastore_template_la_LIBADD = \
157 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
159 libgnunet_plugin_datastore_template_la_LDFLAGS = \
163 test_datastore_api_heap \
164 test_datastore_api_management_heap \
165 perf_datastore_api_heap \
166 perf_plugin_datastore_heap \
167 test_plugin_datastore_heap \
173 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@libdir@;export PATH=@prefix@/bin:$$PATH;
174 TESTS = $(check_PROGRAMS)
177 test_datastore_api_heap_SOURCES = \
179 test_datastore_api_heap_LDADD = \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 $(top_builddir)/src/datastore/libgnunetdatastore.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 test_datastore_api_management_heap_SOURCES = \
185 test_datastore_api_management.c
186 test_datastore_api_management_heap_LDADD = \
187 $(top_builddir)/src/testing/libgnunettesting.la \
188 $(top_builddir)/src/datastore/libgnunetdatastore.la \
189 $(top_builddir)/src/util/libgnunetutil.la
191 perf_datastore_api_heap_SOURCES = \
193 perf_datastore_api_heap_LDADD = \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/datastore/libgnunetdatastore.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 perf_plugin_datastore_heap_SOURCES = \
199 perf_plugin_datastore.c
200 perf_plugin_datastore_heap_LDADD = \
201 $(top_builddir)/src/testing/libgnunettesting.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 test_plugin_datastore_heap_SOURCES = \
205 test_plugin_datastore.c
206 test_plugin_datastore_heap_LDADD = \
207 $(top_builddir)/src/testing/libgnunettesting.la \
208 $(top_builddir)/src/util/libgnunetutil.la
211 test_datastore_api_sqlite_SOURCES = \
213 test_datastore_api_sqlite_LDADD = \
214 $(top_builddir)/src/testing/libgnunettesting.la \
215 $(top_builddir)/src/datastore/libgnunetdatastore.la \
216 $(top_builddir)/src/util/libgnunetutil.la
218 test_datastore_api_management_sqlite_SOURCES = \
219 test_datastore_api_management.c
220 test_datastore_api_management_sqlite_LDADD = \
221 $(top_builddir)/src/testing/libgnunettesting.la \
222 $(top_builddir)/src/datastore/libgnunetdatastore.la \
223 $(top_builddir)/src/util/libgnunetutil.la
225 perf_datastore_api_sqlite_SOURCES = \
227 perf_datastore_api_sqlite_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/datastore/libgnunetdatastore.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 perf_plugin_datastore_sqlite_SOURCES = \
233 perf_plugin_datastore.c
234 perf_plugin_datastore_sqlite_LDADD = \
235 $(top_builddir)/src/testing/libgnunettesting.la \
236 $(top_builddir)/src/util/libgnunetutil.la
238 test_plugin_datastore_sqlite_SOURCES = \
239 test_plugin_datastore.c
240 test_plugin_datastore_sqlite_LDADD = \
241 $(top_builddir)/src/testing/libgnunettesting.la \
242 $(top_builddir)/src/util/libgnunetutil.la
245 test_datastore_api_mysql_SOURCES = \
247 test_datastore_api_mysql_LDADD = \
248 $(top_builddir)/src/testing/libgnunettesting.la \
249 $(top_builddir)/src/datastore/libgnunetdatastore.la \
250 $(top_builddir)/src/util/libgnunetutil.la
252 test_datastore_api_management_mysql_SOURCES = \
253 test_datastore_api_management.c
254 test_datastore_api_management_mysql_LDADD = \
255 $(top_builddir)/src/testing/libgnunettesting.la \
256 $(top_builddir)/src/datastore/libgnunetdatastore.la \
257 $(top_builddir)/src/util/libgnunetutil.la
259 perf_datastore_api_mysql_SOURCES = \
261 perf_datastore_api_mysql_LDADD = \
262 $(top_builddir)/src/testing/libgnunettesting.la \
263 $(top_builddir)/src/datastore/libgnunetdatastore.la \
264 $(top_builddir)/src/util/libgnunetutil.la
266 test_plugin_datastore_mysql_SOURCES = \
267 test_plugin_datastore.c
268 test_plugin_datastore_mysql_LDADD = \
269 $(top_builddir)/src/testing/libgnunettesting.la \
270 $(top_builddir)/src/util/libgnunetutil.la
272 perf_plugin_datastore_mysql_SOURCES = \
273 perf_plugin_datastore.c
274 perf_plugin_datastore_mysql_LDADD = \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/util/libgnunetutil.la
279 test_datastore_api_postgres_SOURCES = \
281 test_datastore_api_postgres_LDADD = \
282 $(top_builddir)/src/testing/libgnunettesting.la \
283 $(top_builddir)/src/datastore/libgnunetdatastore.la \
284 $(top_builddir)/src/util/libgnunetutil.la
286 test_datastore_api_management_postgres_SOURCES = \
287 test_datastore_api_management.c
288 test_datastore_api_management_postgres_LDADD = \
289 $(top_builddir)/src/testing/libgnunettesting.la \
290 $(top_builddir)/src/datastore/libgnunetdatastore.la \
291 $(top_builddir)/src/util/libgnunetutil.la
293 perf_datastore_api_postgres_SOURCES = \
295 perf_datastore_api_postgres_LDADD = \
296 $(top_builddir)/src/testing/libgnunettesting.la \
297 $(top_builddir)/src/datastore/libgnunetdatastore.la \
298 $(top_builddir)/src/util/libgnunetutil.la
300 test_plugin_datastore_postgres_SOURCES = \
301 test_plugin_datastore.c
302 test_plugin_datastore_postgres_LDADD = \
303 $(top_builddir)/src/testing/libgnunettesting.la \
304 $(top_builddir)/src/util/libgnunetutil.la
306 perf_plugin_datastore_postgres_SOURCES = \
307 perf_plugin_datastore.c
308 perf_plugin_datastore_postgres_LDADD = \
309 $(top_builddir)/src/testing/libgnunettesting.la \
310 $(top_builddir)/src/util/libgnunetutil.la
315 test_datastore_api_data_sqlite.conf \
316 perf_plugin_datastore_data_sqlite.conf \
317 test_plugin_datastore_data_sqlite.conf \
318 test_datastore_api_data_heap.conf \
319 perf_plugin_datastore_data_heap.conf \
320 test_plugin_datastore_data_heap.conf \
321 test_datastore_api_data_mysql.conf \
322 perf_plugin_datastore_data_mysql.conf \
323 test_plugin_datastore_data_mysql.conf \
324 test_datastore_api_data_postgres.conf \
325 perf_plugin_datastore_data_postgres.conf \
326 test_plugin_datastore_data_postgres.conf