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_template.la
93 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
94 plugin_datastore_sqlite.c
95 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
96 $(top_builddir)/src/statistics/libgnunetstatistics.la \
97 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
99 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
103 libgnunet_plugin_datastore_mysql_la_SOURCES = \
104 plugin_datastore_mysql.c
105 libgnunet_plugin_datastore_mysql_la_LIBADD = \
106 $(top_builddir)/src/mysql/libgnunetmysql.la \
107 $(top_builddir)/src/statistics/libgnunetstatistics.la \
108 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
109 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
110 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
111 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
114 libgnunet_plugin_datastore_postgres_la_SOURCES = \
115 plugin_datastore_postgres.c
116 libgnunet_plugin_datastore_postgres_la_LIBADD = \
117 $(top_builddir)/src/statistics/libgnunetstatistics.la \
118 $(top_builddir)/src/postgres/libgnunetpostgres.la \
119 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
120 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
121 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
122 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
126 libgnunet_plugin_datastore_template_la_SOURCES = \
127 plugin_datastore_template.c
128 libgnunet_plugin_datastore_template_la_LIBADD = \
129 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
131 libgnunet_plugin_datastore_template_la_LDFLAGS = \
140 TESTS = $(check_PROGRAMS)
143 test_datastore_api_sqlite_SOURCES = \
145 test_datastore_api_sqlite_LDADD = \
146 $(top_builddir)/src/testing/libgnunettesting.la \
147 $(top_builddir)/src/datastore/libgnunetdatastore.la \
148 $(top_builddir)/src/util/libgnunetutil.la
150 test_datastore_api_management_sqlite_SOURCES = \
151 test_datastore_api_management.c
152 test_datastore_api_management_sqlite_LDADD = \
153 $(top_builddir)/src/testing/libgnunettesting.la \
154 $(top_builddir)/src/datastore/libgnunetdatastore.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 perf_datastore_api_sqlite_SOURCES = \
159 perf_datastore_api_sqlite_LDADD = \
160 $(top_builddir)/src/testing/libgnunettesting.la \
161 $(top_builddir)/src/datastore/libgnunetdatastore.la \
162 $(top_builddir)/src/util/libgnunetutil.la
164 perf_plugin_datastore_sqlite_SOURCES = \
165 perf_plugin_datastore.c
166 perf_plugin_datastore_sqlite_LDADD = \
167 $(top_builddir)/src/testing/libgnunettesting.la \
168 $(top_builddir)/src/util/libgnunetutil.la
170 test_plugin_datastore_sqlite_SOURCES = \
171 test_plugin_datastore.c
172 test_plugin_datastore_sqlite_LDADD = \
173 $(top_builddir)/src/testing/libgnunettesting.la \
174 $(top_builddir)/src/util/libgnunetutil.la
177 test_datastore_api_mysql_SOURCES = \
179 test_datastore_api_mysql_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_mysql_SOURCES = \
185 test_datastore_api_management.c
186 test_datastore_api_management_mysql_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_mysql_SOURCES = \
193 perf_datastore_api_mysql_LDADD = \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/datastore/libgnunetdatastore.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 test_plugin_datastore_mysql_SOURCES = \
199 test_plugin_datastore.c
200 test_plugin_datastore_mysql_LDADD = \
201 $(top_builddir)/src/testing/libgnunettesting.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 perf_plugin_datastore_mysql_SOURCES = \
205 perf_plugin_datastore.c
206 perf_plugin_datastore_mysql_LDADD = \
207 $(top_builddir)/src/testing/libgnunettesting.la \
208 $(top_builddir)/src/util/libgnunetutil.la
211 test_datastore_api_postgres_SOURCES = \
213 test_datastore_api_postgres_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_postgres_SOURCES = \
219 test_datastore_api_management.c
220 test_datastore_api_management_postgres_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_postgres_SOURCES = \
227 perf_datastore_api_postgres_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/datastore/libgnunetdatastore.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 test_plugin_datastore_postgres_SOURCES = \
233 test_plugin_datastore.c
234 test_plugin_datastore_postgres_LDADD = \
235 $(top_builddir)/src/testing/libgnunettesting.la \
236 $(top_builddir)/src/util/libgnunetutil.la
238 perf_plugin_datastore_postgres_SOURCES = \
239 perf_plugin_datastore.c
240 perf_plugin_datastore_postgres_LDADD = \
241 $(top_builddir)/src/testing/libgnunettesting.la \
242 $(top_builddir)/src/util/libgnunetutil.la
247 test_datastore_api_data_sqlite.conf \
248 perf_plugin_datastore_data_sqlite.conf \
249 test_datastore_api_data_mysql.conf \
250 perf_plugin_datastore_data_mysql.conf \
251 test_datastore_api_data_postgres.conf \
252 perf_plugin_datastore_data_postgres.conf \
253 test_plugin_datastore_data_mysql.conf \
254 test_plugin_datastore_data_postgres.conf \
255 test_plugin_datastore_data_sqlite.conf