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 AM_CFLAGS = --coverage -O0
22 libgnunetdatastore_la_SOURCES = \
23 datastore_api.c datastore.h
24 libgnunetdatastore_la_LIBADD = \
25 $(top_builddir)/src/statistics/libgnunetstatistics.la \
26 $(top_builddir)/src/util/libgnunetutil.la \
28 libgnunetdatastore_la_LDFLAGS = \
36 gnunet-service-datastore
38 gnunet_service_datastore_SOURCES = \
39 gnunet-service-datastore.c
40 gnunet_service_datastore_LDADD = \
41 $(top_builddir)/src/statistics/libgnunetstatistics.la \
42 $(top_builddir)/src/util/libgnunetutil.la \
45 gnunet_datastore_SOURCES = \
47 gnunet_datastore_LDADD = \
48 libgnunetdatastore.la \
49 $(top_builddir)/src/util/libgnunetutil.la \
54 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
58 perf_datastore_api_mysql \
59 perf_plugin_datastore_mysql
62 test_datastore_api_mysql \
63 test_datastore_api_management_mysql \
64 test_plugin_datastore_mysql \
69 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
73 perf_datastore_api_sqlite \
74 perf_plugin_datastore_sqlite
77 test_datastore_api_sqlite \
78 test_datastore_api_management_sqlite \
79 test_plugin_datastore_sqlite \
84 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)
99 plugin_LTLIBRARIES = \
103 libgnunet_plugin_datastore_heap.la
105 # Real plugins should of course go into
107 noinst_LTLIBRARIES = \
108 libgnunet_plugin_datastore_template.la
111 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
112 plugin_datastore_sqlite.c
113 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
114 $(top_builddir)/src/sq/libgnunetsq.la \
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/my/libgnunetmy.la \
135 $(top_builddir)/src/mysql/libgnunetmysql.la \
136 $(top_builddir)/src/statistics/libgnunetstatistics.la \
137 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) $(Z_LIBS) -lmysqlclient
138 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
139 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
140 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
141 $(MYSQL_CPPFLAGS) $(AM_CPPFLAGS)
143 libgnunet_plugin_datastore_postgres_la_SOURCES = \
144 plugin_datastore_postgres.c
145 libgnunet_plugin_datastore_postgres_la_LIBADD = \
146 $(top_builddir)/src/statistics/libgnunetstatistics.la \
147 $(top_builddir)/src/pq/libgnunetpq.la \
148 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
149 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
150 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
151 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
152 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
155 libgnunet_plugin_datastore_template_la_SOURCES = \
156 plugin_datastore_template.c
157 libgnunet_plugin_datastore_template_la_LIBADD = \
158 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
160 libgnunet_plugin_datastore_template_la_LDFLAGS = \
164 test_datastore_api_heap \
165 test_datastore_api_management_heap \
166 perf_datastore_api_heap \
167 perf_plugin_datastore_heap \
168 test_plugin_datastore_heap \
174 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
175 TESTS = $(check_PROGRAMS)
178 test_datastore_api_heap_SOURCES = \
180 test_datastore_api_heap_LDADD = \
181 $(top_builddir)/src/testing/libgnunettesting.la \
182 libgnunetdatastore.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 test_datastore_api_management_heap_SOURCES = \
186 test_datastore_api_management.c
187 test_datastore_api_management_heap_LDADD = \
188 $(top_builddir)/src/testing/libgnunettesting.la \
189 libgnunetdatastore.la \
190 $(top_builddir)/src/util/libgnunetutil.la
192 perf_datastore_api_heap_SOURCES = \
194 perf_datastore_api_heap_LDADD = \
195 $(top_builddir)/src/testing/libgnunettesting.la \
196 libgnunetdatastore.la \
197 $(top_builddir)/src/util/libgnunetutil.la
199 perf_plugin_datastore_heap_SOURCES = \
200 perf_plugin_datastore.c
201 perf_plugin_datastore_heap_LDADD = \
202 $(top_builddir)/src/testing/libgnunettesting.la \
203 $(top_builddir)/src/util/libgnunetutil.la
205 test_plugin_datastore_heap_SOURCES = \
206 test_plugin_datastore.c
207 test_plugin_datastore_heap_LDADD = \
208 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/util/libgnunetutil.la
212 test_datastore_api_sqlite_SOURCES = \
214 test_datastore_api_sqlite_LDADD = \
215 $(top_builddir)/src/testing/libgnunettesting.la \
216 libgnunetdatastore.la \
217 $(top_builddir)/src/util/libgnunetutil.la
219 test_datastore_api_management_sqlite_SOURCES = \
220 test_datastore_api_management.c
221 test_datastore_api_management_sqlite_LDADD = \
222 $(top_builddir)/src/testing/libgnunettesting.la \
223 libgnunetdatastore.la \
224 $(top_builddir)/src/util/libgnunetutil.la
226 perf_datastore_api_sqlite_SOURCES = \
228 perf_datastore_api_sqlite_LDADD = \
229 $(top_builddir)/src/testing/libgnunettesting.la \
230 libgnunetdatastore.la \
231 $(top_builddir)/src/util/libgnunetutil.la
233 perf_plugin_datastore_sqlite_SOURCES = \
234 perf_plugin_datastore.c
235 perf_plugin_datastore_sqlite_LDADD = \
236 $(top_builddir)/src/testing/libgnunettesting.la \
237 $(top_builddir)/src/util/libgnunetutil.la
239 test_plugin_datastore_sqlite_SOURCES = \
240 test_plugin_datastore.c
241 test_plugin_datastore_sqlite_LDADD = \
242 $(top_builddir)/src/testing/libgnunettesting.la \
243 $(top_builddir)/src/util/libgnunetutil.la
246 test_datastore_api_mysql_SOURCES = \
248 test_datastore_api_mysql_LDADD = \
249 $(top_builddir)/src/testing/libgnunettesting.la \
250 libgnunetdatastore.la \
251 $(top_builddir)/src/util/libgnunetutil.la
253 test_datastore_api_management_mysql_SOURCES = \
254 test_datastore_api_management.c
255 test_datastore_api_management_mysql_LDADD = \
256 $(top_builddir)/src/testing/libgnunettesting.la \
257 libgnunetdatastore.la \
258 $(top_builddir)/src/util/libgnunetutil.la
260 perf_datastore_api_mysql_SOURCES = \
262 perf_datastore_api_mysql_LDADD = \
263 $(top_builddir)/src/testing/libgnunettesting.la \
264 libgnunetdatastore.la \
265 $(top_builddir)/src/util/libgnunetutil.la
267 test_plugin_datastore_mysql_SOURCES = \
268 test_plugin_datastore.c
269 test_plugin_datastore_mysql_LDADD = \
270 $(top_builddir)/src/testing/libgnunettesting.la \
271 $(top_builddir)/src/util/libgnunetutil.la
273 perf_plugin_datastore_mysql_SOURCES = \
274 perf_plugin_datastore.c
275 perf_plugin_datastore_mysql_LDADD = \
276 $(top_builddir)/src/testing/libgnunettesting.la \
277 $(top_builddir)/src/util/libgnunetutil.la
280 test_datastore_api_postgres_SOURCES = \
282 test_datastore_api_postgres_LDADD = \
283 $(top_builddir)/src/testing/libgnunettesting.la \
284 libgnunetdatastore.la \
285 $(top_builddir)/src/util/libgnunetutil.la
287 test_datastore_api_management_postgres_SOURCES = \
288 test_datastore_api_management.c
289 test_datastore_api_management_postgres_LDADD = \
290 $(top_builddir)/src/testing/libgnunettesting.la \
291 libgnunetdatastore.la \
292 $(top_builddir)/src/util/libgnunetutil.la
294 perf_datastore_api_postgres_SOURCES = \
296 perf_datastore_api_postgres_LDADD = \
297 $(top_builddir)/src/testing/libgnunettesting.la \
298 libgnunetdatastore.la \
299 $(top_builddir)/src/util/libgnunetutil.la
301 test_plugin_datastore_postgres_SOURCES = \
302 test_plugin_datastore.c
303 test_plugin_datastore_postgres_LDADD = \
304 $(top_builddir)/src/testing/libgnunettesting.la \
305 $(top_builddir)/src/util/libgnunetutil.la
307 perf_plugin_datastore_postgres_SOURCES = \
308 perf_plugin_datastore.c
309 perf_plugin_datastore_postgres_LDADD = \
310 $(top_builddir)/src/testing/libgnunettesting.la \
311 $(top_builddir)/src/util/libgnunetutil.la
316 test_datastore_api_data_sqlite.conf \
317 perf_plugin_datastore_data_sqlite.conf \
318 test_plugin_datastore_data_sqlite.conf \
319 test_datastore_api_data_heap.conf \
320 perf_plugin_datastore_data_heap.conf \
321 test_plugin_datastore_data_heap.conf \
322 test_datastore_api_data_mysql.conf \
323 perf_plugin_datastore_data_mysql.conf \
324 test_plugin_datastore_data_mysql.conf \
325 test_datastore_api_data_postgres.conf \
326 perf_plugin_datastore_data_postgres.conf \
327 test_plugin_datastore_data_postgres.conf