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
42 test_datastore_api_mysql \
43 test_datastore_api_management_mysql \
44 test_plugin_datastore_mysql \
45 perf_datastore_api_mysql \
46 perf_plugin_datastore_mysql
49 SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
51 test_datastore_api_sqlite \
52 test_datastore_api_management_sqlite \
53 test_plugin_datastore_sqlite \
54 perf_datastore_api_sqlite \
55 perf_plugin_datastore_sqlite
59 POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
61 test_datastore_api_postgres \
62 test_datastore_api_management_postgres \
63 test_plugin_datastore_postgres \
64 perf_datastore_api_postgres \
65 perf_plugin_datastore_postgres
69 plugin_LTLIBRARIES = \
73 libgnunet_plugin_datastore_template.la
76 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
77 plugin_datastore_sqlite.c
78 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
79 $(top_builddir)/src/statistics/libgnunetstatistics.la \
80 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
81 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
85 libgnunet_plugin_datastore_mysql_la_SOURCES = \
86 plugin_datastore_mysql.c
87 libgnunet_plugin_datastore_mysql_la_LIBADD = \
88 $(top_builddir)/src/statistics/libgnunetstatistics.la \
89 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lmysqlclient
90 libgnunet_plugin_datastore_mysql_la_LDFLAGS = \
91 $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
92 libgnunet_plugin_datastore_mysql_la_CPPFLAGS = \
95 libgnunet_plugin_datastore_postgres_la_SOURCES = \
96 plugin_datastore_postgres.c
97 libgnunet_plugin_datastore_postgres_la_LIBADD = \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
99 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq
100 libgnunet_plugin_datastore_postgres_la_LDFLAGS = \
101 $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
102 libgnunet_plugin_datastore_postgres_la_CPPFLAGS = \
106 libgnunet_plugin_datastore_template_la_SOURCES = \
107 plugin_datastore_template.c
108 libgnunet_plugin_datastore_template_la_LIBADD = \
109 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
110 libgnunet_plugin_datastore_template_la_LDFLAGS = \
119 TESTS = $(check_PROGRAMS)
122 test_datastore_api_sqlite_SOURCES = \
124 test_datastore_api_sqlite_LDADD = \
125 $(top_builddir)/src/datastore/libgnunetdatastore.la \
126 $(top_builddir)/src/util/libgnunetutil.la
128 test_datastore_api_management_sqlite_SOURCES = \
129 test_datastore_api_management.c
130 test_datastore_api_management_sqlite_LDADD = \
131 $(top_builddir)/src/datastore/libgnunetdatastore.la \
132 $(top_builddir)/src/util/libgnunetutil.la
134 perf_datastore_api_sqlite_SOURCES = \
136 perf_datastore_api_sqlite_LDADD = \
137 $(top_builddir)/src/datastore/libgnunetdatastore.la \
138 $(top_builddir)/src/util/libgnunetutil.la
140 perf_plugin_datastore_sqlite_SOURCES = \
141 perf_plugin_datastore.c
142 perf_plugin_datastore_sqlite_LDADD = \
143 $(top_builddir)/src/util/libgnunetutil.la
145 test_plugin_datastore_sqlite_SOURCES = \
146 test_plugin_datastore.c
147 test_plugin_datastore_sqlite_LDADD = \
148 $(top_builddir)/src/util/libgnunetutil.la
151 test_datastore_api_mysql_SOURCES = \
153 test_datastore_api_mysql_LDADD = \
154 $(top_builddir)/src/datastore/libgnunetdatastore.la \
155 $(top_builddir)/src/util/libgnunetutil.la
157 test_datastore_api_management_mysql_SOURCES = \
158 test_datastore_api_management.c
159 test_datastore_api_management_mysql_LDADD = \
160 $(top_builddir)/src/datastore/libgnunetdatastore.la \
161 $(top_builddir)/src/util/libgnunetutil.la
163 perf_datastore_api_mysql_SOURCES = \
165 perf_datastore_api_mysql_LDADD = \
166 $(top_builddir)/src/datastore/libgnunetdatastore.la \
167 $(top_builddir)/src/util/libgnunetutil.la
169 test_plugin_datastore_mysql_SOURCES = \
170 test_plugin_datastore.c
171 test_plugin_datastore_mysql_LDADD = \
172 $(top_builddir)/src/util/libgnunetutil.la
174 perf_plugin_datastore_mysql_SOURCES = \
175 perf_plugin_datastore.c
176 perf_plugin_datastore_mysql_LDADD = \
177 $(top_builddir)/src/util/libgnunetutil.la
180 test_datastore_api_postgres_SOURCES = \
182 test_datastore_api_postgres_LDADD = \
183 $(top_builddir)/src/datastore/libgnunetdatastore.la \
184 $(top_builddir)/src/util/libgnunetutil.la
186 test_datastore_api_management_postgres_SOURCES = \
187 test_datastore_api_management.c
188 test_datastore_api_management_postgres_LDADD = \
189 $(top_builddir)/src/datastore/libgnunetdatastore.la \
190 $(top_builddir)/src/util/libgnunetutil.la
192 perf_datastore_api_postgres_SOURCES = \
194 perf_datastore_api_postgres_LDADD = \
195 $(top_builddir)/src/datastore/libgnunetdatastore.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 test_plugin_datastore_postgres_SOURCES = \
199 test_plugin_datastore.c
200 test_plugin_datastore_postgres_LDADD = \
201 $(top_builddir)/src/util/libgnunetutil.la
203 perf_plugin_datastore_postgres_SOURCES = \
204 perf_plugin_datastore.c
205 perf_plugin_datastore_postgres_LDADD = \
206 $(top_builddir)/src/util/libgnunetutil.la
210 test_datastore_api_data_sqlite.conf \
211 perf_plugin_datastore_data_sqlite.conf \
212 test_datastore_api_data_mysql.conf \
213 perf_plugin_datastore_data_mysql.conf \
214 test_datastore_api_data_postgres.conf \
215 perf_plugin_datastore_data_postgres.conf