1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
11 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
15 AM_CFLAGS = --coverage -O0
23 libgnunetdatastore_la_SOURCES = \
24 datastore_api.c datastore.h
25 libgnunetdatastore_la_LIBADD = \
26 $(top_builddir)/src/statistics/libgnunetstatistics.la \
27 $(top_builddir)/src/util/libgnunetutil.la \
29 libgnunetdatastore_la_LDFLAGS = \
30 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
35 gnunet-service-datastore
37 gnunet_service_datastore_SOURCES = \
38 gnunet-service-datastore.c
39 gnunet_service_datastore_LDADD = \
40 $(top_builddir)/src/statistics/libgnunetstatistics.la \
41 $(top_builddir)/src/util/libgnunetutil.la \
45 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
48 perf_datastore_api_mysql \
49 perf_plugin_datastore_mysql
52 test_datastore_api_mysql \
53 test_datastore_api_management_mysql \
54 test_plugin_datastore_mysql \
58 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
61 perf_datastore_api_sqlite \
62 perf_plugin_datastore_sqlite
65 test_datastore_api_sqlite \
66 test_datastore_api_management_sqlite \
67 test_plugin_datastore_sqlite \
71 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
73 POSTGRES_BENCHMARKS = \
74 perf_datastore_api_postgres \
75 perf_plugin_datastore_postgres
78 test_datastore_api_postgres \
79 test_datastore_api_management_postgres \
80 test_plugin_datastore_postgres \
81 $(POSTGRES_BENCHMARKS)
84 plugin_LTLIBRARIES = \
88 libgnunet_plugin_datastore_template.la
91 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
92 plugin_datastore_sqlite.c
93 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
94 $(top_builddir)/src/statistics/libgnunetstatistics.la \
95 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
96 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
100 libgnunet_plugin_datastore_mysql_la_SOURCES = \
101 plugin_datastore_mysql.c
102 libgnunet_plugin_datastore_mysql_la_LIBADD = \
103 $(top_builddir)/src/mysql/libgnunetmysql.la \
104 $(top_builddir)/src/statistics/libgnunetstatistics.la \
105 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
106 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
107 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
108 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
111 libgnunet_plugin_datastore_postgres_la_SOURCES = \
112 plugin_datastore_postgres.c
113 libgnunet_plugin_datastore_postgres_la_LIBADD = \
114 $(top_builddir)/src/statistics/libgnunetstatistics.la \
115 $(top_builddir)/src/postgres/libgnunetpostgres.la \
116 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
117 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
118 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
119 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
123 libgnunet_plugin_datastore_template_la_SOURCES = \
124 plugin_datastore_template.c
125 libgnunet_plugin_datastore_template_la_LIBADD = \
126 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
127 libgnunet_plugin_datastore_template_la_LDFLAGS = \
136 TESTS = $(check_PROGRAMS)
139 test_datastore_api_sqlite_SOURCES = \
141 test_datastore_api_sqlite_LDADD = \
142 $(top_builddir)/src/datastore/libgnunetdatastore.la \
143 $(top_builddir)/src/util/libgnunetutil.la
145 test_datastore_api_management_sqlite_SOURCES = \
146 test_datastore_api_management.c
147 test_datastore_api_management_sqlite_LDADD = \
148 $(top_builddir)/src/datastore/libgnunetdatastore.la \
149 $(top_builddir)/src/util/libgnunetutil.la
151 perf_datastore_api_sqlite_SOURCES = \
153 perf_datastore_api_sqlite_LDADD = \
154 $(top_builddir)/src/datastore/libgnunetdatastore.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 perf_plugin_datastore_sqlite_SOURCES = \
158 perf_plugin_datastore.c
159 perf_plugin_datastore_sqlite_LDADD = \
160 $(top_builddir)/src/util/libgnunetutil.la
162 test_plugin_datastore_sqlite_SOURCES = \
163 test_plugin_datastore.c
164 test_plugin_datastore_sqlite_LDADD = \
165 $(top_builddir)/src/util/libgnunetutil.la
168 test_datastore_api_mysql_SOURCES = \
170 test_datastore_api_mysql_LDADD = \
171 $(top_builddir)/src/datastore/libgnunetdatastore.la \
172 $(top_builddir)/src/util/libgnunetutil.la
174 test_datastore_api_management_mysql_SOURCES = \
175 test_datastore_api_management.c
176 test_datastore_api_management_mysql_LDADD = \
177 $(top_builddir)/src/datastore/libgnunetdatastore.la \
178 $(top_builddir)/src/util/libgnunetutil.la
180 perf_datastore_api_mysql_SOURCES = \
182 perf_datastore_api_mysql_LDADD = \
183 $(top_builddir)/src/datastore/libgnunetdatastore.la \
184 $(top_builddir)/src/util/libgnunetutil.la
186 test_plugin_datastore_mysql_SOURCES = \
187 test_plugin_datastore.c
188 test_plugin_datastore_mysql_LDADD = \
189 $(top_builddir)/src/util/libgnunetutil.la
191 perf_plugin_datastore_mysql_SOURCES = \
192 perf_plugin_datastore.c
193 perf_plugin_datastore_mysql_LDADD = \
194 $(top_builddir)/src/util/libgnunetutil.la
197 test_datastore_api_postgres_SOURCES = \
199 test_datastore_api_postgres_LDADD = \
200 $(top_builddir)/src/datastore/libgnunetdatastore.la \
201 $(top_builddir)/src/util/libgnunetutil.la
203 test_datastore_api_management_postgres_SOURCES = \
204 test_datastore_api_management.c
205 test_datastore_api_management_postgres_LDADD = \
206 $(top_builddir)/src/datastore/libgnunetdatastore.la \
207 $(top_builddir)/src/util/libgnunetutil.la
209 perf_datastore_api_postgres_SOURCES = \
211 perf_datastore_api_postgres_LDADD = \
212 $(top_builddir)/src/datastore/libgnunetdatastore.la \
213 $(top_builddir)/src/util/libgnunetutil.la
215 test_plugin_datastore_postgres_SOURCES = \
216 test_plugin_datastore.c
217 test_plugin_datastore_postgres_LDADD = \
218 $(top_builddir)/src/util/libgnunetutil.la
220 perf_plugin_datastore_postgres_SOURCES = \
221 perf_plugin_datastore.c
222 perf_plugin_datastore_postgres_LDADD = \
223 $(top_builddir)/src/util/libgnunetutil.la
228 test_datastore_api_data_sqlite.conf \
229 perf_plugin_datastore_data_sqlite.conf \
230 test_datastore_api_data_mysql.conf \
231 perf_plugin_datastore_data_mysql.conf \
232 test_datastore_api_data_postgres.conf \
233 perf_plugin_datastore_data_postgres.conf \
234 test_plugin_datastore_data_mysql.conf \
235 test_plugin_datastore_data_postgres.conf \
236 test_plugin_datastore_data_sqlite.conf