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 = --coverage -O0
26 libgnunetdatastore_la_SOURCES = \
27 datastore_api.c datastore.h
28 libgnunetdatastore_la_LIBADD = \
29 $(top_builddir)/src/statistics/libgnunetstatistics.la \
30 $(top_builddir)/src/util/libgnunetutil.la \
32 libgnunetdatastore_la_LDFLAGS = \
33 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
40 gnunet-service-datastore
42 gnunet_service_datastore_SOURCES = \
43 gnunet-service-datastore.c
44 gnunet_service_datastore_LDADD = \
45 $(top_builddir)/src/statistics/libgnunetstatistics.la \
46 $(top_builddir)/src/util/libgnunetutil.la \
49 gnunet_datastore_SOURCES = \
51 gnunet_datastore_LDADD = \
52 libgnunetdatastore.la \
53 $(top_builddir)/src/util/libgnunetutil.la \
58 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 \
73 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
77 perf_datastore_api_sqlite \
78 perf_plugin_datastore_sqlite
81 test_datastore_api_sqlite \
82 test_datastore_api_management_sqlite \
83 test_plugin_datastore_sqlite \
88 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
91 POSTGRES_BENCHMARKS = \
92 perf_datastore_api_postgres \
93 perf_plugin_datastore_postgres
96 test_datastore_api_postgres \
97 test_datastore_api_management_postgres \
98 test_plugin_datastore_postgres \
99 $(POSTGRES_BENCHMARKS)
103 plugin_LTLIBRARIES = \
107 libgnunet_plugin_datastore_heap.la
109 # Real plugins should of course go into
111 noinst_LTLIBRARIES = \
112 libgnunet_plugin_datastore_template.la
115 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
116 plugin_datastore_sqlite.c
117 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
118 $(top_builddir)/src/statistics/libgnunetstatistics.la \
119 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
121 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
125 libgnunet_plugin_datastore_heap_la_SOURCES = \
126 plugin_datastore_heap.c
127 libgnunet_plugin_datastore_heap_la_LIBADD = \
128 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
130 libgnunet_plugin_datastore_heap_la_LDFLAGS = \
134 libgnunet_plugin_datastore_mysql_la_SOURCES = \
135 plugin_datastore_mysql.c
136 libgnunet_plugin_datastore_mysql_la_LIBADD = \
137 $(top_builddir)/src/mysql/libgnunetmysql.la \
138 $(top_builddir)/src/statistics/libgnunetstatistics.la \
139 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) $(Z_LIBS) -lmysqlclient
140 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
141 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
142 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
143 $(MYSQL_CPPFLAGS) $(AM_CPPFLAGS)
145 libgnunet_plugin_datastore_postgres_la_SOURCES = \
146 plugin_datastore_postgres.c
147 libgnunet_plugin_datastore_postgres_la_LIBADD = \
148 $(top_builddir)/src/statistics/libgnunetstatistics.la \
149 $(top_builddir)/src/postgres/libgnunetpostgres.la \
150 $(top_builddir)/src/pq/libgnunetpq.la \
151 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
152 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
153 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
154 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
155 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
158 libgnunet_plugin_datastore_template_la_SOURCES = \
159 plugin_datastore_template.c
160 libgnunet_plugin_datastore_template_la_LIBADD = \
161 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
163 libgnunet_plugin_datastore_template_la_LDFLAGS = \
167 test_datastore_api_heap \
168 test_datastore_api_management_heap \
169 perf_datastore_api_heap \
170 perf_plugin_datastore_heap \
171 test_plugin_datastore_heap \
177 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
178 TESTS = $(check_PROGRAMS)
181 test_datastore_api_heap_SOURCES = \
183 test_datastore_api_heap_LDADD = \
184 $(top_builddir)/src/testing/libgnunettesting.la \
185 libgnunetdatastore.la \
186 $(top_builddir)/src/util/libgnunetutil.la
188 test_datastore_api_management_heap_SOURCES = \
189 test_datastore_api_management.c
190 test_datastore_api_management_heap_LDADD = \
191 $(top_builddir)/src/testing/libgnunettesting.la \
192 libgnunetdatastore.la \
193 $(top_builddir)/src/util/libgnunetutil.la
195 perf_datastore_api_heap_SOURCES = \
197 perf_datastore_api_heap_LDADD = \
198 $(top_builddir)/src/testing/libgnunettesting.la \
199 libgnunetdatastore.la \
200 $(top_builddir)/src/util/libgnunetutil.la
202 perf_plugin_datastore_heap_SOURCES = \
203 perf_plugin_datastore.c
204 perf_plugin_datastore_heap_LDADD = \
205 $(top_builddir)/src/testing/libgnunettesting.la \
206 $(top_builddir)/src/util/libgnunetutil.la
208 test_plugin_datastore_heap_SOURCES = \
209 test_plugin_datastore.c
210 test_plugin_datastore_heap_LDADD = \
211 $(top_builddir)/src/testing/libgnunettesting.la \
212 $(top_builddir)/src/util/libgnunetutil.la
215 test_datastore_api_sqlite_SOURCES = \
217 test_datastore_api_sqlite_LDADD = \
218 $(top_builddir)/src/testing/libgnunettesting.la \
219 libgnunetdatastore.la \
220 $(top_builddir)/src/util/libgnunetutil.la
222 test_datastore_api_management_sqlite_SOURCES = \
223 test_datastore_api_management.c
224 test_datastore_api_management_sqlite_LDADD = \
225 $(top_builddir)/src/testing/libgnunettesting.la \
226 libgnunetdatastore.la \
227 $(top_builddir)/src/util/libgnunetutil.la
229 perf_datastore_api_sqlite_SOURCES = \
231 perf_datastore_api_sqlite_LDADD = \
232 $(top_builddir)/src/testing/libgnunettesting.la \
233 libgnunetdatastore.la \
234 $(top_builddir)/src/util/libgnunetutil.la
236 perf_plugin_datastore_sqlite_SOURCES = \
237 perf_plugin_datastore.c
238 perf_plugin_datastore_sqlite_LDADD = \
239 $(top_builddir)/src/testing/libgnunettesting.la \
240 $(top_builddir)/src/util/libgnunetutil.la
242 test_plugin_datastore_sqlite_SOURCES = \
243 test_plugin_datastore.c
244 test_plugin_datastore_sqlite_LDADD = \
245 $(top_builddir)/src/testing/libgnunettesting.la \
246 $(top_builddir)/src/util/libgnunetutil.la
249 test_datastore_api_mysql_SOURCES = \
251 test_datastore_api_mysql_LDADD = \
252 $(top_builddir)/src/testing/libgnunettesting.la \
253 libgnunetdatastore.la \
254 $(top_builddir)/src/util/libgnunetutil.la
256 test_datastore_api_management_mysql_SOURCES = \
257 test_datastore_api_management.c
258 test_datastore_api_management_mysql_LDADD = \
259 $(top_builddir)/src/testing/libgnunettesting.la \
260 libgnunetdatastore.la \
261 $(top_builddir)/src/util/libgnunetutil.la
263 perf_datastore_api_mysql_SOURCES = \
265 perf_datastore_api_mysql_LDADD = \
266 $(top_builddir)/src/testing/libgnunettesting.la \
267 libgnunetdatastore.la \
268 $(top_builddir)/src/util/libgnunetutil.la
270 test_plugin_datastore_mysql_SOURCES = \
271 test_plugin_datastore.c
272 test_plugin_datastore_mysql_LDADD = \
273 $(top_builddir)/src/testing/libgnunettesting.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 perf_plugin_datastore_mysql_SOURCES = \
277 perf_plugin_datastore.c
278 perf_plugin_datastore_mysql_LDADD = \
279 $(top_builddir)/src/testing/libgnunettesting.la \
280 $(top_builddir)/src/util/libgnunetutil.la
283 test_datastore_api_postgres_SOURCES = \
285 test_datastore_api_postgres_LDADD = \
286 $(top_builddir)/src/testing/libgnunettesting.la \
287 libgnunetdatastore.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_datastore_api_management_postgres_SOURCES = \
291 test_datastore_api_management.c
292 test_datastore_api_management_postgres_LDADD = \
293 $(top_builddir)/src/testing/libgnunettesting.la \
294 libgnunetdatastore.la \
295 $(top_builddir)/src/util/libgnunetutil.la
297 perf_datastore_api_postgres_SOURCES = \
299 perf_datastore_api_postgres_LDADD = \
300 $(top_builddir)/src/testing/libgnunettesting.la \
301 libgnunetdatastore.la \
302 $(top_builddir)/src/util/libgnunetutil.la
304 test_plugin_datastore_postgres_SOURCES = \
305 test_plugin_datastore.c
306 test_plugin_datastore_postgres_LDADD = \
307 $(top_builddir)/src/testing/libgnunettesting.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 perf_plugin_datastore_postgres_SOURCES = \
311 perf_plugin_datastore.c
312 perf_plugin_datastore_postgres_LDADD = \
313 $(top_builddir)/src/testing/libgnunettesting.la \
314 $(top_builddir)/src/util/libgnunetutil.la
319 test_datastore_api_data_sqlite.conf \
320 perf_plugin_datastore_data_sqlite.conf \
321 test_plugin_datastore_data_sqlite.conf \
322 test_datastore_api_data_heap.conf \
323 perf_plugin_datastore_data_heap.conf \
324 test_plugin_datastore_data_heap.conf \
325 test_datastore_api_data_mysql.conf \
326 perf_plugin_datastore_data_mysql.conf \
327 test_plugin_datastore_data_mysql.conf \
328 test_datastore_api_data_postgres.conf \
329 perf_plugin_datastore_data_postgres.conf \
330 test_plugin_datastore_data_postgres.conf