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 \
41 MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
43 test_datastore_api_mysql \
44 test_datastore_api_management_mysql \
45 test_plugin_datastore_mysql \
46 perf_datastore_api_mysql \
47 perf_plugin_datastore_mysql
51 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
53 test_datastore_api_sqlite \
54 test_datastore_api_management_sqlite \
55 test_plugin_datastore_sqlite \
56 perf_datastore_api_sqlite \
57 perf_plugin_datastore_sqlite
61 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
63 test_datastore_api_postgres \
64 test_datastore_api_management_postgres \
65 test_plugin_datastore_postgres \
66 perf_datastore_api_postgres \
67 perf_plugin_datastore_postgres
71 plugin_LTLIBRARIES = \
75 libgnunet_plugin_datastore_template.la
78 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
79 plugin_datastore_sqlite.c
80 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
81 $(top_builddir)/src/statistics/libgnunetstatistics.la \
82 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
83 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
87 libgnunet_plugin_datastore_mysql_la_SOURCES = \
88 plugin_datastore_mysql.c
89 libgnunet_plugin_datastore_mysql_la_LIBADD = \
90 $(top_builddir)/src/statistics/libgnunetstatistics.la \
91 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
92 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
93 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
94 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
97 libgnunet_plugin_datastore_postgres_la_SOURCES = \
98 plugin_datastore_postgres.c
99 libgnunet_plugin_datastore_postgres_la_LIBADD = \
100 $(top_builddir)/src/statistics/libgnunetstatistics.la \
101 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
102 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
103 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
104 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
108 libgnunet_plugin_datastore_template_la_SOURCES = \
109 plugin_datastore_template.c
110 libgnunet_plugin_datastore_template_la_LIBADD = \
111 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
112 libgnunet_plugin_datastore_template_la_LDFLAGS = \
121 TESTS = $(check_PROGRAMS)
124 test_datastore_api_sqlite_SOURCES = \
126 test_datastore_api_sqlite_LDADD = \
127 $(top_builddir)/src/datastore/libgnunetdatastore.la \
128 $(top_builddir)/src/util/libgnunetutil.la
130 test_datastore_api_management_sqlite_SOURCES = \
131 test_datastore_api_management.c
132 test_datastore_api_management_sqlite_LDADD = \
133 $(top_builddir)/src/datastore/libgnunetdatastore.la \
134 $(top_builddir)/src/util/libgnunetutil.la
136 perf_datastore_api_sqlite_SOURCES = \
138 perf_datastore_api_sqlite_LDADD = \
139 $(top_builddir)/src/datastore/libgnunetdatastore.la \
140 $(top_builddir)/src/util/libgnunetutil.la
142 perf_plugin_datastore_sqlite_SOURCES = \
143 perf_plugin_datastore.c
144 perf_plugin_datastore_sqlite_LDADD = \
145 $(top_builddir)/src/util/libgnunetutil.la
147 test_plugin_datastore_sqlite_SOURCES = \
148 test_plugin_datastore.c
149 test_plugin_datastore_sqlite_LDADD = \
150 $(top_builddir)/src/util/libgnunetutil.la
153 test_datastore_api_mysql_SOURCES = \
155 test_datastore_api_mysql_LDADD = \
156 $(top_builddir)/src/datastore/libgnunetdatastore.la \
157 $(top_builddir)/src/util/libgnunetutil.la
159 test_datastore_api_management_mysql_SOURCES = \
160 test_datastore_api_management.c
161 test_datastore_api_management_mysql_LDADD = \
162 $(top_builddir)/src/datastore/libgnunetdatastore.la \
163 $(top_builddir)/src/util/libgnunetutil.la
165 perf_datastore_api_mysql_SOURCES = \
167 perf_datastore_api_mysql_LDADD = \
168 $(top_builddir)/src/datastore/libgnunetdatastore.la \
169 $(top_builddir)/src/util/libgnunetutil.la
171 test_plugin_datastore_mysql_SOURCES = \
172 test_plugin_datastore.c
173 test_plugin_datastore_mysql_LDADD = \
174 $(top_builddir)/src/util/libgnunetutil.la
176 perf_plugin_datastore_mysql_SOURCES = \
177 perf_plugin_datastore.c
178 perf_plugin_datastore_mysql_LDADD = \
179 $(top_builddir)/src/util/libgnunetutil.la
182 test_datastore_api_postgres_SOURCES = \
184 test_datastore_api_postgres_LDADD = \
185 $(top_builddir)/src/datastore/libgnunetdatastore.la \
186 $(top_builddir)/src/util/libgnunetutil.la
188 test_datastore_api_management_postgres_SOURCES = \
189 test_datastore_api_management.c
190 test_datastore_api_management_postgres_LDADD = \
191 $(top_builddir)/src/datastore/libgnunetdatastore.la \
192 $(top_builddir)/src/util/libgnunetutil.la
194 perf_datastore_api_postgres_SOURCES = \
196 perf_datastore_api_postgres_LDADD = \
197 $(top_builddir)/src/datastore/libgnunetdatastore.la \
198 $(top_builddir)/src/util/libgnunetutil.la
200 test_plugin_datastore_postgres_SOURCES = \
201 test_plugin_datastore.c
202 test_plugin_datastore_postgres_LDADD = \
203 $(top_builddir)/src/util/libgnunetutil.la
205 perf_plugin_datastore_postgres_SOURCES = \
206 perf_plugin_datastore.c
207 perf_plugin_datastore_postgres_LDADD = \
208 $(top_builddir)/src/util/libgnunetutil.la
212 test_datastore_api_data_sqlite.conf \
213 perf_plugin_datastore_data_sqlite.conf \
214 test_datastore_api_data_mysql.conf \
215 perf_plugin_datastore_data_mysql.conf \
216 test_datastore_api_data_postgres.conf \
217 perf_plugin_datastore_data_postgres.conf