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) \
37 gnunet-service-datastore
39 gnunet_service_datastore_SOURCES = \
40 gnunet-service-datastore.c
41 gnunet_service_datastore_LDADD = \
42 $(top_builddir)/src/statistics/libgnunetstatistics.la \
43 $(top_builddir)/src/util/libgnunetutil.la \
47 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
50 perf_datastore_api_mysql \
51 perf_plugin_datastore_mysql
54 test_datastore_api_mysql \
55 test_datastore_api_management_mysql \
56 test_plugin_datastore_mysql \
60 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
63 perf_datastore_api_sqlite \
64 perf_plugin_datastore_sqlite
67 test_datastore_api_sqlite \
68 test_datastore_api_management_sqlite \
69 test_plugin_datastore_sqlite \
73 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
75 POSTGRES_BENCHMARKS = \
76 perf_datastore_api_postgres \
77 perf_plugin_datastore_postgres
80 test_datastore_api_postgres \
81 test_datastore_api_management_postgres \
82 test_plugin_datastore_postgres \
83 $(POSTGRES_BENCHMARKS)
86 plugin_LTLIBRARIES = \
90 libgnunet_plugin_datastore_heap.la \
91 libgnunet_plugin_datastore_template.la
94 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
95 plugin_datastore_sqlite.c
96 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
97 $(top_builddir)/src/statistics/libgnunetstatistics.la \
98 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
100 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
104 libgnunet_plugin_datastore_heap_la_SOURCES = \
105 plugin_datastore_heap.c
106 libgnunet_plugin_datastore_heap_la_LIBADD = \
107 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
109 libgnunet_plugin_datastore_heap_la_LDFLAGS = \
113 libgnunet_plugin_datastore_mysql_la_SOURCES = \
114 plugin_datastore_mysql.c
115 libgnunet_plugin_datastore_mysql_la_LIBADD = \
116 $(top_builddir)/src/mysql/libgnunetmysql.la \
117 $(top_builddir)/src/statistics/libgnunetstatistics.la \
118 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
119 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
120 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
121 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
124 libgnunet_plugin_datastore_postgres_la_SOURCES = \
125 plugin_datastore_postgres.c
126 libgnunet_plugin_datastore_postgres_la_LIBADD = \
127 $(top_builddir)/src/statistics/libgnunetstatistics.la \
128 $(top_builddir)/src/postgres/libgnunetpostgres.la \
129 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
130 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
131 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
132 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
136 libgnunet_plugin_datastore_template_la_SOURCES = \
137 plugin_datastore_template.c
138 libgnunet_plugin_datastore_template_la_LIBADD = \
139 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
141 libgnunet_plugin_datastore_template_la_LDFLAGS = \
145 test_datastore_api_heap \
146 test_datastore_api_management_heap \
147 perf_datastore_api_heap \
148 perf_plugin_datastore_heap \
149 test_plugin_datastore_heap \
155 TESTS = $(check_PROGRAMS)
158 test_datastore_api_heap_SOURCES = \
160 test_datastore_api_heap_LDADD = \
161 $(top_builddir)/src/testing/libgnunettesting.la \
162 $(top_builddir)/src/datastore/libgnunetdatastore.la \
163 $(top_builddir)/src/util/libgnunetutil.la
165 test_datastore_api_management_heap_SOURCES = \
166 test_datastore_api_management.c
167 test_datastore_api_management_heap_LDADD = \
168 $(top_builddir)/src/testing/libgnunettesting.la \
169 $(top_builddir)/src/datastore/libgnunetdatastore.la \
170 $(top_builddir)/src/util/libgnunetutil.la
172 perf_datastore_api_heap_SOURCES = \
174 perf_datastore_api_heap_LDADD = \
175 $(top_builddir)/src/testing/libgnunettesting.la \
176 $(top_builddir)/src/datastore/libgnunetdatastore.la \
177 $(top_builddir)/src/util/libgnunetutil.la
179 perf_plugin_datastore_heap_SOURCES = \
180 perf_plugin_datastore.c
181 perf_plugin_datastore_heap_LDADD = \
182 $(top_builddir)/src/testing/libgnunettesting.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 test_plugin_datastore_heap_SOURCES = \
186 test_plugin_datastore.c
187 test_plugin_datastore_heap_LDADD = \
188 $(top_builddir)/src/testing/libgnunettesting.la \
189 $(top_builddir)/src/util/libgnunetutil.la
192 test_datastore_api_sqlite_SOURCES = \
194 test_datastore_api_sqlite_LDADD = \
195 $(top_builddir)/src/testing/libgnunettesting.la \
196 $(top_builddir)/src/datastore/libgnunetdatastore.la \
197 $(top_builddir)/src/util/libgnunetutil.la
199 test_datastore_api_management_sqlite_SOURCES = \
200 test_datastore_api_management.c
201 test_datastore_api_management_sqlite_LDADD = \
202 $(top_builddir)/src/testing/libgnunettesting.la \
203 $(top_builddir)/src/datastore/libgnunetdatastore.la \
204 $(top_builddir)/src/util/libgnunetutil.la
206 perf_datastore_api_sqlite_SOURCES = \
208 perf_datastore_api_sqlite_LDADD = \
209 $(top_builddir)/src/testing/libgnunettesting.la \
210 $(top_builddir)/src/datastore/libgnunetdatastore.la \
211 $(top_builddir)/src/util/libgnunetutil.la
213 perf_plugin_datastore_sqlite_SOURCES = \
214 perf_plugin_datastore.c
215 perf_plugin_datastore_sqlite_LDADD = \
216 $(top_builddir)/src/testing/libgnunettesting.la \
217 $(top_builddir)/src/util/libgnunetutil.la
219 test_plugin_datastore_sqlite_SOURCES = \
220 test_plugin_datastore.c
221 test_plugin_datastore_sqlite_LDADD = \
222 $(top_builddir)/src/testing/libgnunettesting.la \
223 $(top_builddir)/src/util/libgnunetutil.la
226 test_datastore_api_mysql_SOURCES = \
228 test_datastore_api_mysql_LDADD = \
229 $(top_builddir)/src/testing/libgnunettesting.la \
230 $(top_builddir)/src/datastore/libgnunetdatastore.la \
231 $(top_builddir)/src/util/libgnunetutil.la
233 test_datastore_api_management_mysql_SOURCES = \
234 test_datastore_api_management.c
235 test_datastore_api_management_mysql_LDADD = \
236 $(top_builddir)/src/testing/libgnunettesting.la \
237 $(top_builddir)/src/datastore/libgnunetdatastore.la \
238 $(top_builddir)/src/util/libgnunetutil.la
240 perf_datastore_api_mysql_SOURCES = \
242 perf_datastore_api_mysql_LDADD = \
243 $(top_builddir)/src/testing/libgnunettesting.la \
244 $(top_builddir)/src/datastore/libgnunetdatastore.la \
245 $(top_builddir)/src/util/libgnunetutil.la
247 test_plugin_datastore_mysql_SOURCES = \
248 test_plugin_datastore.c
249 test_plugin_datastore_mysql_LDADD = \
250 $(top_builddir)/src/testing/libgnunettesting.la \
251 $(top_builddir)/src/util/libgnunetutil.la
253 perf_plugin_datastore_mysql_SOURCES = \
254 perf_plugin_datastore.c
255 perf_plugin_datastore_mysql_LDADD = \
256 $(top_builddir)/src/testing/libgnunettesting.la \
257 $(top_builddir)/src/util/libgnunetutil.la
260 test_datastore_api_postgres_SOURCES = \
262 test_datastore_api_postgres_LDADD = \
263 $(top_builddir)/src/testing/libgnunettesting.la \
264 $(top_builddir)/src/datastore/libgnunetdatastore.la \
265 $(top_builddir)/src/util/libgnunetutil.la
267 test_datastore_api_management_postgres_SOURCES = \
268 test_datastore_api_management.c
269 test_datastore_api_management_postgres_LDADD = \
270 $(top_builddir)/src/testing/libgnunettesting.la \
271 $(top_builddir)/src/datastore/libgnunetdatastore.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 perf_datastore_api_postgres_SOURCES = \
276 perf_datastore_api_postgres_LDADD = \
277 $(top_builddir)/src/testing/libgnunettesting.la \
278 $(top_builddir)/src/datastore/libgnunetdatastore.la \
279 $(top_builddir)/src/util/libgnunetutil.la
281 test_plugin_datastore_postgres_SOURCES = \
282 test_plugin_datastore.c
283 test_plugin_datastore_postgres_LDADD = \
284 $(top_builddir)/src/testing/libgnunettesting.la \
285 $(top_builddir)/src/util/libgnunetutil.la
287 perf_plugin_datastore_postgres_SOURCES = \
288 perf_plugin_datastore.c
289 perf_plugin_datastore_postgres_LDADD = \
290 $(top_builddir)/src/testing/libgnunettesting.la \
291 $(top_builddir)/src/util/libgnunetutil.la
296 test_datastore_api_data_sqlite.conf \
297 perf_plugin_datastore_data_sqlite.conf \
298 test_datastore_api_data_mysql.conf \
299 perf_plugin_datastore_data_mysql.conf \
300 test_datastore_api_data_postgres.conf \
301 perf_plugin_datastore_data_postgres.conf \
302 test_plugin_datastore_data_mysql.conf \
303 test_plugin_datastore_data_postgres.conf \
304 test_plugin_datastore_data_sqlite.conf