1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
7 libexecdir= $(pkglibdir)/libexec/
14 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
18 AM_CFLAGS = --coverage -O0
23 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
25 SQLITE_TESTS = test_plugin_namestore_sqlite
30 # postgres doesn't even build yet; thus: experimental!
32 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
34 POSTGRES_TESTS = test_plugin_namestore_postgres
39 # testcases do not even build yet; thus: experimental!
45 test_namestore_api_put \
46 test_namestore_api_lookup \
47 test_namestore_api_lookup_specific_type \
48 test_namestore_api_create \
49 test_namestore_api_create_update \
50 test_namestore_api_remove \
51 test_namestore_api_remove_not_existing_record \
52 test_namestore_api_zone_to_name \
53 test_namestore_api_monitoring \
54 test_namestore_api_zone_iteration \
55 test_namestore_api_zone_iteration_specific_zone \
56 test_namestore_api_zone_iteration_stop
64 test_namestore_record_serialization \
65 test_namestore_api_sign_verify
68 # end of 'HAVE_EXPERIMENTAL' for testcases
72 TESTS = $(check_PROGRAMS)
78 libgnunetnamestore_la_SOURCES = \
80 namestore_api_monitor.c \
81 namestore_api_common.c \
83 libgnunetnamestore_la_LIBADD = \
84 $(top_builddir)/src/statistics/libgnunetstatistics.la \
85 $(top_builddir)/src/util/libgnunetutil.la \
87 libgnunetnamestore_la_LDFLAGS = \
88 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
92 gnunet-service-namestore
99 gnunet-namestore-fcfsd
102 gnunet_namestore_SOURCES = \
104 gnunet_namestore_LDADD = \
105 $(top_builddir)/src/util/libgnunetutil.la \
106 libgnunetnamestore.la \
108 gnunet_namestore_DEPENDENCIES = \
109 $(top_builddir)/src/util/libgnunetutil.la \
110 libgnunetnamestore.la
113 gnunet_namestore_fcfsd_SOURCES = \
114 gnunet-namestore-fcfsd.c
115 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/namestore/libgnunetnamestore.la \
119 gnunet_namestore_fcfsd_DEPENDENCIES = \
120 $(top_builddir)/src/util/libgnunetutil.la \
121 libgnunetnamestore.la
125 gnunet_service_namestore_SOURCES = \
126 gnunet-service-namestore.c
128 gnunet_service_namestore_LDADD = \
129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
131 libgnunetnamestore.la \
133 gnunet_service_namestore_DEPENDENCIES = \
134 $(top_builddir)/src/statistics/libgnunetstatistics.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 libgnunetnamestore.la
139 plugin_LTLIBRARIES = \
143 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
144 plugin_namestore_sqlite.c
145 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
146 $(top_builddir)/src/namestore/libgnunetnamestore.la \
147 $(top_builddir)/src/statistics/libgnunetstatistics.la \
148 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
150 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
152 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
153 $(top_builddir)/src/statistics/libgnunetstatistics.la \
154 $(top_builddir)/src/util/libgnunetutil.la \
155 libgnunetnamestore.la
158 libgnunet_plugin_namestore_postgres_la_SOURCES = \
159 plugin_namestore_postgres.c
160 libgnunet_plugin_namestore_postgres_la_LIBADD = \
161 $(top_builddir)/src/namestore/libgnunetnamestore.la \
162 $(top_builddir)/src/postgres/libgnunetpostgres.la \
163 $(top_builddir)/src/statistics/libgnunetstatistics.la \
164 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
166 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
168 libgnunet_plugin_namestore_postgres_la_DEPENDENCIES = \
169 $(top_builddir)/src/postgres/libgnunetpostgres.la \
170 $(top_builddir)/src/statistics/libgnunetstatistics.la \
171 $(top_builddir)/src/util/libgnunetutil.la \
172 libgnunetnamestore.la
174 test_namestore_api_sign_verify_SOURCES = \
175 test_namestore_api_sign_verify.c
176 test_namestore_api_sign_verify_LDADD = \
177 $(top_builddir)/src/util/libgnunetutil.la \
178 $(top_builddir)/src/testing/libgnunettesting.la \
179 $(top_builddir)/src/namestore/libgnunetnamestore.la
181 test_namestore_api_SOURCES = \
183 test_namestore_api_LDADD = \
184 $(top_builddir)/src/testing/libgnunettesting.la \
185 $(top_builddir)/src/util/libgnunetutil.la \
186 $(top_builddir)/src/namestore/libgnunetnamestore.la
188 test_namestore_api_put_SOURCES = \
189 test_namestore_api_put.c
190 test_namestore_api_put_LDADD = \
191 $(top_builddir)/src/testing/libgnunettesting.la \
192 $(top_builddir)/src/util/libgnunetutil.la \
193 $(top_builddir)/src/namestore/libgnunetnamestore.la
195 test_namestore_api_lookup_SOURCES = \
196 test_namestore_api_lookup.c
197 test_namestore_api_lookup_LDADD = \
198 $(top_builddir)/src/testing/libgnunettesting.la \
199 $(top_builddir)/src/util/libgnunetutil.la \
200 $(top_builddir)/src/namestore/libgnunetnamestore.la
202 test_namestore_api_lookup_specific_type_SOURCES = \
203 test_namestore_api_lookup_specific_type.c
204 test_namestore_api_lookup_specific_type_LDADD = \
205 $(top_builddir)/src/testing/libgnunettesting.la \
206 $(top_builddir)/src/util/libgnunetutil.la \
207 $(top_builddir)/src/namestore/libgnunetnamestore.la
210 test_namestore_api_create_SOURCES = \
211 test_namestore_api_create.c
212 test_namestore_api_create_LDADD = \
213 $(top_builddir)/src/testing/libgnunettesting.la \
214 $(top_builddir)/src/util/libgnunetutil.la \
215 $(top_builddir)/src/namestore/libgnunetnamestore.la
217 test_namestore_api_create_update_SOURCES = \
218 test_namestore_api_create_update.c
219 test_namestore_api_create_update_LDADD = \
220 $(top_builddir)/src/testing/libgnunettesting.la \
221 $(top_builddir)/src/util/libgnunetutil.la \
222 $(top_builddir)/src/namestore/libgnunetnamestore.la
225 test_namestore_api_remove_SOURCES = \
226 test_namestore_api_remove.c
227 test_namestore_api_remove_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/util/libgnunetutil.la \
230 $(top_builddir)/src/namestore/libgnunetnamestore.la
232 test_namestore_api_remove_not_existing_record_SOURCES = \
233 test_namestore_api_remove_not_existing_record.c
234 test_namestore_api_remove_not_existing_record_LDADD = \
235 $(top_builddir)/src/testing/libgnunettesting.la \
236 $(top_builddir)/src/util/libgnunetutil.la \
237 $(top_builddir)/src/namestore/libgnunetnamestore.la
239 test_namestore_api_zone_to_name_SOURCES = \
240 test_namestore_api_zone_to_name.c
241 test_namestore_api_zone_to_name_LDADD = \
242 $(top_builddir)/src/testing/libgnunettesting.la \
243 $(top_builddir)/src/util/libgnunetutil.la \
244 $(top_builddir)/src/namestore/libgnunetnamestore.la
246 test_namestore_api_monitoring_SOURCES = \
247 test_namestore_api_monitoring.c
248 test_namestore_api_monitoring_LDADD = \
249 $(top_builddir)/src/testing/libgnunettesting.la \
250 $(top_builddir)/src/namestore/libgnunetnamestore.la \
251 $(top_builddir)/src/util/libgnunetutil.la
253 test_namestore_api_zone_iteration_SOURCES = \
254 test_namestore_api_zone_iteration.c
255 test_namestore_api_zone_iteration_LDADD = \
256 $(top_builddir)/src/testing/libgnunettesting.la \
257 $(top_builddir)/src/util/libgnunetutil.la \
258 $(top_builddir)/src/namestore/libgnunetnamestore.la
260 test_namestore_api_zone_iteration_specific_zone_SOURCES = \
261 test_namestore_api_zone_iteration_specific_zone.c
262 test_namestore_api_zone_iteration_specific_zone_LDADD = \
263 $(top_builddir)/src/testing/libgnunettesting.la \
264 $(top_builddir)/src/util/libgnunetutil.la \
265 $(top_builddir)/src/namestore/libgnunetnamestore.la
267 test_namestore_api_zone_iteration_stop_SOURCES = \
268 test_namestore_api_zone_iteration_stop.c
269 test_namestore_api_zone_iteration_stop_LDADD = \
270 $(top_builddir)/src/testing/libgnunettesting.la \
271 $(top_builddir)/src/util/libgnunetutil.la \
272 $(top_builddir)/src/namestore/libgnunetnamestore.la
274 test_namestore_record_serialization_SOURCES = \
275 test_namestore_record_serialization.c
276 test_namestore_record_serialization_LDADD = \
277 $(top_builddir)/src/testing/libgnunettesting.la \
278 $(top_builddir)/src/util/libgnunetutil.la \
279 $(top_builddir)/src/namestore/libgnunetnamestore.la
282 test_namestore_api.conf \
283 test_plugin_namestore_sqlite.conf\
284 test_plugin_namestore_postgres.conf\
286 zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
287 zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
288 zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
289 zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey
293 test_plugin_namestore_sqlite_SOURCES = \
294 test_plugin_namestore.c
295 test_plugin_namestore_sqlite_LDADD = \
296 $(top_builddir)/src/testing/libgnunettesting.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 test_plugin_namestore_postgres_SOURCES = \
300 test_plugin_namestore.c
301 test_plugin_namestore_postgres_LDADD = \
302 $(top_builddir)/src/testing/libgnunettesting.la \
303 $(top_builddir)/src/util/libgnunetutil.la