1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 AM_CFLAGS = --coverage -O0
18 libgnunetdatastore_la_SOURCES = \
19 datastore_api.c datastore.h
20 libgnunetdatastore_la_LIBADD = \
21 $(top_builddir)/src/statistics/libgnunetstatistics.la \
22 $(top_builddir)/src/util/libgnunetutil.la \
24 libgnunetdatastore_la_LDFLAGS = \
25 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
30 gnunet-service-datastore
32 gnunet_service_datastore_SOURCES = \
33 gnunet-service-datastore.c
34 gnunet_service_datastore_LDADD = \
35 $(top_builddir)/src/statistics/libgnunetstatistics.la \
36 $(top_builddir)/src/util/libgnunetutil.la \
40 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
43 perf_datastore_api_mysql \
44 perf_plugin_datastore_mysql
47 test_datastore_api_mysql \
48 test_datastore_api_management_mysql \
49 test_plugin_datastore_mysql \
53 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
56 perf_datastore_api_sqlite \
57 perf_plugin_datastore_sqlite
60 test_datastore_api_sqlite \
61 test_datastore_api_management_sqlite \
62 test_plugin_datastore_sqlite \
66 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
68 POSTGRES_BENCHMARKS = \
69 perf_datastore_api_postgres \
70 perf_plugin_datastore_postgres
73 test_datastore_api_postgres \
74 test_datastore_api_management_postgres \
75 test_plugin_datastore_postgres \
76 $(POSTGRES_BENCHMARKS)
79 plugin_LTLIBRARIES = \
83 libgnunet_plugin_datastore_template.la
86 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
87 plugin_datastore_sqlite.c
88 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
89 $(top_builddir)/src/statistics/libgnunetstatistics.la \
90 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
91 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
95 libgnunet_plugin_datastore_mysql_la_SOURCES = \
96 plugin_datastore_mysql.c
97 libgnunet_plugin_datastore_mysql_la_LIBADD = \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
99 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
100 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
101 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
102 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
105 libgnunet_plugin_datastore_postgres_la_SOURCES = \
106 plugin_datastore_postgres.c
107 libgnunet_plugin_datastore_postgres_la_LIBADD = \
108 $(top_builddir)/src/statistics/libgnunetstatistics.la \
109 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
110 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
111 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
112 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
116 libgnunet_plugin_datastore_template_la_SOURCES = \
117 plugin_datastore_template.c
118 libgnunet_plugin_datastore_template_la_LIBADD = \
119 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
120 libgnunet_plugin_datastore_template_la_LDFLAGS = \
129 TESTS = $(check_PROGRAMS)
132 test_datastore_api_sqlite_SOURCES = \
134 test_datastore_api_sqlite_LDADD = \
135 $(top_builddir)/src/datastore/libgnunetdatastore.la \
136 $(top_builddir)/src/util/libgnunetutil.la
138 test_datastore_api_management_sqlite_SOURCES = \
139 test_datastore_api_management.c
140 test_datastore_api_management_sqlite_LDADD = \
141 $(top_builddir)/src/datastore/libgnunetdatastore.la \
142 $(top_builddir)/src/util/libgnunetutil.la
144 perf_datastore_api_sqlite_SOURCES = \
146 perf_datastore_api_sqlite_LDADD = \
147 $(top_builddir)/src/datastore/libgnunetdatastore.la \
148 $(top_builddir)/src/util/libgnunetutil.la
150 perf_plugin_datastore_sqlite_SOURCES = \
151 perf_plugin_datastore.c
152 perf_plugin_datastore_sqlite_LDADD = \
153 $(top_builddir)/src/util/libgnunetutil.la
155 test_plugin_datastore_sqlite_SOURCES = \
156 test_plugin_datastore.c
157 test_plugin_datastore_sqlite_LDADD = \
158 $(top_builddir)/src/util/libgnunetutil.la
161 test_datastore_api_mysql_SOURCES = \
163 test_datastore_api_mysql_LDADD = \
164 $(top_builddir)/src/datastore/libgnunetdatastore.la \
165 $(top_builddir)/src/util/libgnunetutil.la
167 test_datastore_api_management_mysql_SOURCES = \
168 test_datastore_api_management.c
169 test_datastore_api_management_mysql_LDADD = \
170 $(top_builddir)/src/datastore/libgnunetdatastore.la \
171 $(top_builddir)/src/util/libgnunetutil.la
173 perf_datastore_api_mysql_SOURCES = \
175 perf_datastore_api_mysql_LDADD = \
176 $(top_builddir)/src/datastore/libgnunetdatastore.la \
177 $(top_builddir)/src/util/libgnunetutil.la
179 test_plugin_datastore_mysql_SOURCES = \
180 test_plugin_datastore.c
181 test_plugin_datastore_mysql_LDADD = \
182 $(top_builddir)/src/util/libgnunetutil.la
184 perf_plugin_datastore_mysql_SOURCES = \
185 perf_plugin_datastore.c
186 perf_plugin_datastore_mysql_LDADD = \
187 $(top_builddir)/src/util/libgnunetutil.la
190 test_datastore_api_postgres_SOURCES = \
192 test_datastore_api_postgres_LDADD = \
193 $(top_builddir)/src/datastore/libgnunetdatastore.la \
194 $(top_builddir)/src/util/libgnunetutil.la
196 test_datastore_api_management_postgres_SOURCES = \
197 test_datastore_api_management.c
198 test_datastore_api_management_postgres_LDADD = \
199 $(top_builddir)/src/datastore/libgnunetdatastore.la \
200 $(top_builddir)/src/util/libgnunetutil.la
202 perf_datastore_api_postgres_SOURCES = \
204 perf_datastore_api_postgres_LDADD = \
205 $(top_builddir)/src/datastore/libgnunetdatastore.la \
206 $(top_builddir)/src/util/libgnunetutil.la
208 test_plugin_datastore_postgres_SOURCES = \
209 test_plugin_datastore.c
210 test_plugin_datastore_postgres_LDADD = \
211 $(top_builddir)/src/util/libgnunetutil.la
213 perf_plugin_datastore_postgres_SOURCES = \
214 perf_plugin_datastore.c
215 perf_plugin_datastore_postgres_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la
220 test_datastore_api_data_sqlite.conf \
221 perf_plugin_datastore_data_sqlite.conf \
222 test_datastore_api_data_mysql.conf \
223 perf_plugin_datastore_data_mysql.conf \
224 test_datastore_api_data_postgres.conf \
225 perf_plugin_datastore_data_postgres.conf \
226 test_plugin_datastore_data_mysql.conf \
227 test_plugin_datastore_data_postgres.conf \
228 test_plugin_datastore_data_sqlite.conf