1 INCLUDES = -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
62 perf_datastore_api_mysql \
63 perf_plugin_datastore_mysql
66 test_datastore_api_mysql \
67 test_datastore_api_management_mysql \
68 test_plugin_datastore_mysql \
72 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
75 perf_datastore_api_sqlite \
76 perf_plugin_datastore_sqlite
79 test_datastore_api_sqlite \
80 test_datastore_api_management_sqlite \
81 test_plugin_datastore_sqlite \
85 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
87 POSTGRES_BENCHMARKS = \
88 perf_datastore_api_postgres \
89 perf_plugin_datastore_postgres
92 test_datastore_api_postgres \
93 test_datastore_api_management_postgres \
94 test_plugin_datastore_postgres \
95 $(POSTGRES_BENCHMARKS)
98 plugin_LTLIBRARIES = \
102 libgnunet_plugin_datastore_heap.la \
103 libgnunet_plugin_datastore_template.la
106 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
107 plugin_datastore_sqlite.c
108 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
109 $(top_builddir)/src/statistics/libgnunetstatistics.la \
110 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
112 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
116 libgnunet_plugin_datastore_heap_la_SOURCES = \
117 plugin_datastore_heap.c
118 libgnunet_plugin_datastore_heap_la_LIBADD = \
119 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
121 libgnunet_plugin_datastore_heap_la_LDFLAGS = \
125 libgnunet_plugin_datastore_mysql_la_SOURCES = \
126 plugin_datastore_mysql.c
127 libgnunet_plugin_datastore_mysql_la_LIBADD = \
128 $(top_builddir)/src/mysql/libgnunetmysql.la \
129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
130 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) $(Z_LIBS) -lmysqlclient
131 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
132 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
133 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
136 libgnunet_plugin_datastore_postgres_la_SOURCES = \
137 plugin_datastore_postgres.c
138 libgnunet_plugin_datastore_postgres_la_LIBADD = \
139 $(top_builddir)/src/statistics/libgnunetstatistics.la \
140 $(top_builddir)/src/postgres/libgnunetpostgres.la \
141 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
142 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
143 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
144 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
148 libgnunet_plugin_datastore_template_la_SOURCES = \
149 plugin_datastore_template.c
150 libgnunet_plugin_datastore_template_la_LIBADD = \
151 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
153 libgnunet_plugin_datastore_template_la_LDFLAGS = \
157 test_datastore_api_heap \
158 test_datastore_api_management_heap \
159 perf_datastore_api_heap \
160 perf_plugin_datastore_heap \
161 test_plugin_datastore_heap \
167 TESTS = $(check_PROGRAMS)
170 test_datastore_api_heap_SOURCES = \
172 test_datastore_api_heap_LDADD = \
173 $(top_builddir)/src/testing/libgnunettesting.la \
174 $(top_builddir)/src/datastore/libgnunetdatastore.la \
175 $(top_builddir)/src/util/libgnunetutil.la
177 test_datastore_api_management_heap_SOURCES = \
178 test_datastore_api_management.c
179 test_datastore_api_management_heap_LDADD = \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 $(top_builddir)/src/datastore/libgnunetdatastore.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 perf_datastore_api_heap_SOURCES = \
186 perf_datastore_api_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_plugin_datastore_heap_SOURCES = \
192 perf_plugin_datastore.c
193 perf_plugin_datastore_heap_LDADD = \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/util/libgnunetutil.la
197 test_plugin_datastore_heap_SOURCES = \
198 test_plugin_datastore.c
199 test_plugin_datastore_heap_LDADD = \
200 $(top_builddir)/src/testing/libgnunettesting.la \
201 $(top_builddir)/src/util/libgnunetutil.la
204 test_datastore_api_sqlite_SOURCES = \
206 test_datastore_api_sqlite_LDADD = \
207 $(top_builddir)/src/testing/libgnunettesting.la \
208 $(top_builddir)/src/datastore/libgnunetdatastore.la \
209 $(top_builddir)/src/util/libgnunetutil.la
211 test_datastore_api_management_sqlite_SOURCES = \
212 test_datastore_api_management.c
213 test_datastore_api_management_sqlite_LDADD = \
214 $(top_builddir)/src/testing/libgnunettesting.la \
215 $(top_builddir)/src/datastore/libgnunetdatastore.la \
216 $(top_builddir)/src/util/libgnunetutil.la
218 perf_datastore_api_sqlite_SOURCES = \
220 perf_datastore_api_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_plugin_datastore_sqlite_SOURCES = \
226 perf_plugin_datastore.c
227 perf_plugin_datastore_sqlite_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/util/libgnunetutil.la
231 test_plugin_datastore_sqlite_SOURCES = \
232 test_plugin_datastore.c
233 test_plugin_datastore_sqlite_LDADD = \
234 $(top_builddir)/src/testing/libgnunettesting.la \
235 $(top_builddir)/src/util/libgnunetutil.la
238 test_datastore_api_mysql_SOURCES = \
240 test_datastore_api_mysql_LDADD = \
241 $(top_builddir)/src/testing/libgnunettesting.la \
242 $(top_builddir)/src/datastore/libgnunetdatastore.la \
243 $(top_builddir)/src/util/libgnunetutil.la
245 test_datastore_api_management_mysql_SOURCES = \
246 test_datastore_api_management.c
247 test_datastore_api_management_mysql_LDADD = \
248 $(top_builddir)/src/testing/libgnunettesting.la \
249 $(top_builddir)/src/datastore/libgnunetdatastore.la \
250 $(top_builddir)/src/util/libgnunetutil.la
252 perf_datastore_api_mysql_SOURCES = \
254 perf_datastore_api_mysql_LDADD = \
255 $(top_builddir)/src/testing/libgnunettesting.la \
256 $(top_builddir)/src/datastore/libgnunetdatastore.la \
257 $(top_builddir)/src/util/libgnunetutil.la
259 test_plugin_datastore_mysql_SOURCES = \
260 test_plugin_datastore.c
261 test_plugin_datastore_mysql_LDADD = \
262 $(top_builddir)/src/testing/libgnunettesting.la \
263 $(top_builddir)/src/util/libgnunetutil.la
265 perf_plugin_datastore_mysql_SOURCES = \
266 perf_plugin_datastore.c
267 perf_plugin_datastore_mysql_LDADD = \
268 $(top_builddir)/src/testing/libgnunettesting.la \
269 $(top_builddir)/src/util/libgnunetutil.la
272 test_datastore_api_postgres_SOURCES = \
274 test_datastore_api_postgres_LDADD = \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/datastore/libgnunetdatastore.la \
277 $(top_builddir)/src/util/libgnunetutil.la
279 test_datastore_api_management_postgres_SOURCES = \
280 test_datastore_api_management.c
281 test_datastore_api_management_postgres_LDADD = \
282 $(top_builddir)/src/testing/libgnunettesting.la \
283 $(top_builddir)/src/datastore/libgnunetdatastore.la \
284 $(top_builddir)/src/util/libgnunetutil.la
286 perf_datastore_api_postgres_SOURCES = \
288 perf_datastore_api_postgres_LDADD = \
289 $(top_builddir)/src/testing/libgnunettesting.la \
290 $(top_builddir)/src/datastore/libgnunetdatastore.la \
291 $(top_builddir)/src/util/libgnunetutil.la
293 test_plugin_datastore_postgres_SOURCES = \
294 test_plugin_datastore.c
295 test_plugin_datastore_postgres_LDADD = \
296 $(top_builddir)/src/testing/libgnunettesting.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 perf_plugin_datastore_postgres_SOURCES = \
300 perf_plugin_datastore.c
301 perf_plugin_datastore_postgres_LDADD = \
302 $(top_builddir)/src/testing/libgnunettesting.la \
303 $(top_builddir)/src/util/libgnunetutil.la
308 test_datastore_api_data_sqlite.conf \
309 perf_plugin_datastore_data_sqlite.conf \
310 test_plugin_datastore_data_sqlite.conf \
311 test_datastore_api_data_heap.conf \
312 perf_plugin_datastore_data_heap.conf \
313 test_plugin_datastore_data_heap.conf \
314 test_datastore_api_data_mysql.conf \
315 perf_plugin_datastore_data_mysql.conf \
316 test_plugin_datastore_data_mysql.conf \
317 test_datastore_api_data_postgres.conf \
318 perf_plugin_datastore_data_postgres.conf \
319 test_plugin_datastore_data_postgres.conf