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 \
97 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
101 libgnunet_plugin_datastore_mysql_la_SOURCES = \
102 plugin_datastore_mysql.c
103 libgnunet_plugin_datastore_mysql_la_LIBADD = \
104 $(top_builddir)/src/mysql/libgnunetmysql.la \
105 $(top_builddir)/src/statistics/libgnunetstatistics.la \
106 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
107 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
108 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
109 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
112 libgnunet_plugin_datastore_postgres_la_SOURCES = \
113 plugin_datastore_postgres.c
114 libgnunet_plugin_datastore_postgres_la_LIBADD = \
115 $(top_builddir)/src/statistics/libgnunetstatistics.la \
116 $(top_builddir)/src/postgres/libgnunetpostgres.la \
117 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
118 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
119 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
120 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
124 libgnunet_plugin_datastore_template_la_SOURCES = \
125 plugin_datastore_template.c
126 libgnunet_plugin_datastore_template_la_LIBADD = \
127 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
129 libgnunet_plugin_datastore_template_la_LDFLAGS = \
138 TESTS = $(check_PROGRAMS)
141 test_datastore_api_sqlite_SOURCES = \
143 test_datastore_api_sqlite_LDADD = \
144 $(top_builddir)/src/datastore/libgnunetdatastore.la \
145 $(top_builddir)/src/util/libgnunetutil.la
147 test_datastore_api_management_sqlite_SOURCES = \
148 test_datastore_api_management.c
149 test_datastore_api_management_sqlite_LDADD = \
150 $(top_builddir)/src/datastore/libgnunetdatastore.la \
151 $(top_builddir)/src/util/libgnunetutil.la
153 perf_datastore_api_sqlite_SOURCES = \
155 perf_datastore_api_sqlite_LDADD = \
156 $(top_builddir)/src/datastore/libgnunetdatastore.la \
157 $(top_builddir)/src/util/libgnunetutil.la
159 perf_plugin_datastore_sqlite_SOURCES = \
160 perf_plugin_datastore.c
161 perf_plugin_datastore_sqlite_LDADD = \
162 $(top_builddir)/src/util/libgnunetutil.la
164 test_plugin_datastore_sqlite_SOURCES = \
165 test_plugin_datastore.c
166 test_plugin_datastore_sqlite_LDADD = \
167 $(top_builddir)/src/util/libgnunetutil.la
170 test_datastore_api_mysql_SOURCES = \
172 test_datastore_api_mysql_LDADD = \
173 $(top_builddir)/src/datastore/libgnunetdatastore.la \
174 $(top_builddir)/src/util/libgnunetutil.la
176 test_datastore_api_management_mysql_SOURCES = \
177 test_datastore_api_management.c
178 test_datastore_api_management_mysql_LDADD = \
179 $(top_builddir)/src/datastore/libgnunetdatastore.la \
180 $(top_builddir)/src/util/libgnunetutil.la
182 perf_datastore_api_mysql_SOURCES = \
184 perf_datastore_api_mysql_LDADD = \
185 $(top_builddir)/src/datastore/libgnunetdatastore.la \
186 $(top_builddir)/src/util/libgnunetutil.la
188 test_plugin_datastore_mysql_SOURCES = \
189 test_plugin_datastore.c
190 test_plugin_datastore_mysql_LDADD = \
191 $(top_builddir)/src/util/libgnunetutil.la
193 perf_plugin_datastore_mysql_SOURCES = \
194 perf_plugin_datastore.c
195 perf_plugin_datastore_mysql_LDADD = \
196 $(top_builddir)/src/util/libgnunetutil.la
199 test_datastore_api_postgres_SOURCES = \
201 test_datastore_api_postgres_LDADD = \
202 $(top_builddir)/src/datastore/libgnunetdatastore.la \
203 $(top_builddir)/src/util/libgnunetutil.la
205 test_datastore_api_management_postgres_SOURCES = \
206 test_datastore_api_management.c
207 test_datastore_api_management_postgres_LDADD = \
208 $(top_builddir)/src/datastore/libgnunetdatastore.la \
209 $(top_builddir)/src/util/libgnunetutil.la
211 perf_datastore_api_postgres_SOURCES = \
213 perf_datastore_api_postgres_LDADD = \
214 $(top_builddir)/src/datastore/libgnunetdatastore.la \
215 $(top_builddir)/src/util/libgnunetutil.la
217 test_plugin_datastore_postgres_SOURCES = \
218 test_plugin_datastore.c
219 test_plugin_datastore_postgres_LDADD = \
220 $(top_builddir)/src/util/libgnunetutil.la
222 perf_plugin_datastore_postgres_SOURCES = \
223 perf_plugin_datastore.c
224 perf_plugin_datastore_postgres_LDADD = \
225 $(top_builddir)/src/util/libgnunetutil.la
230 test_datastore_api_data_sqlite.conf \
231 perf_plugin_datastore_data_sqlite.conf \
232 test_datastore_api_data_mysql.conf \
233 perf_plugin_datastore_data_mysql.conf \
234 test_datastore_api_data_postgres.conf \
235 perf_plugin_datastore_data_postgres.conf \
236 test_plugin_datastore_data_mysql.conf \
237 test_plugin_datastore_data_postgres.conf \
238 test_plugin_datastore_data_sqlite.conf