1 AM_CPPFLAGS = -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!
42 test_namestore_api_store \
43 test_namestore_api_store_update \
44 test_namestore_api_remove \
45 test_namestore_api_remove_not_existing_record \
46 test_namestore_api_zone_iteration \
47 test_namestore_api_zone_iteration_specific_zone \
48 test_namestore_api_zone_iteration_stop \
49 test_namestore_api_monitoring \
50 test_namestore_api_monitoring_existing
51 #test_namestore_api_zone_to_name
56 test_namestore_record_serialization \
57 test_namestore_api_blocks \
64 TESTS = $(check_PROGRAMS)
70 libgnunetnamestore_la_SOURCES = \
72 namestore_api_monitor.c \
73 namestore_api_common.c \
75 libgnunetnamestore_la_LIBADD = \
76 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
79 libgnunetnamestore_la_LDFLAGS = \
80 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
84 gnunet-service-namestore
91 gnunet-namestore-fcfsd
94 gnunet_namestore_SOURCES = \
96 gnunet_namestore_LDADD = \
97 $(top_builddir)/src/util/libgnunetutil.la \
98 $(top_builddir)/src/identity/libgnunetidentity.la \
99 libgnunetnamestore.la \
101 gnunet_namestore_DEPENDENCIES = \
102 $(top_builddir)/src/identity/libgnunetidentity.la \
103 $(top_builddir)/src/util/libgnunetutil.la \
104 libgnunetnamestore.la
107 gnunet_namestore_fcfsd_SOURCES = \
108 gnunet-namestore-fcfsd.c
109 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
110 $(top_builddir)/src/util/libgnunetutil.la \
111 $(top_builddir)/src/identity/libgnunetidentity.la \
112 $(top_builddir)/src/namestore/libgnunetnamestore.la \
114 gnunet_namestore_fcfsd_DEPENDENCIES = \
115 $(top_builddir)/src/util/libgnunetutil.la \
116 libgnunetnamestore.la
120 gnunet_service_namestore_SOURCES = \
121 gnunet-service-namestore.c
123 gnunet_service_namestore_LDADD = \
124 $(top_builddir)/src/statistics/libgnunetstatistics.la \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 libgnunetnamestore.la \
128 gnunet_service_namestore_DEPENDENCIES = \
129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
131 libgnunetnamestore.la
134 plugin_LTLIBRARIES = \
138 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
139 plugin_namestore_sqlite.c
140 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
141 $(top_builddir)/src/namestore/libgnunetnamestore.la \
142 $(top_builddir)/src/statistics/libgnunetstatistics.la \
143 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
145 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
147 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
148 $(top_builddir)/src/statistics/libgnunetstatistics.la \
149 $(top_builddir)/src/util/libgnunetutil.la \
150 libgnunetnamestore.la
153 libgnunet_plugin_namestore_postgres_la_SOURCES = \
154 plugin_namestore_postgres.c
155 libgnunet_plugin_namestore_postgres_la_LIBADD = \
156 $(top_builddir)/src/namestore/libgnunetnamestore.la \
157 $(top_builddir)/src/postgres/libgnunetpostgres.la \
158 $(top_builddir)/src/statistics/libgnunetstatistics.la \
159 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
161 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
163 libgnunet_plugin_namestore_postgres_la_DEPENDENCIES = \
164 $(top_builddir)/src/postgres/libgnunetpostgres.la \
165 $(top_builddir)/src/statistics/libgnunetstatistics.la \
166 $(top_builddir)/src/util/libgnunetutil.la \
167 libgnunetnamestore.la
169 test_namestore_api_blocks_SOURCES = \
170 test_namestore_api_blocks.c
171 test_namestore_api_blocks_LDADD = \
172 $(top_builddir)/src/util/libgnunetutil.la \
173 $(top_builddir)/src/testing/libgnunettesting.la \
174 $(top_builddir)/src/namestore/libgnunetnamestore.la
176 test_namestore_api_store_SOURCES = \
177 test_namestore_api_store.c
178 test_namestore_api_store_LDADD = \
179 $(top_builddir)/src/testing/libgnunettesting.la \
180 $(top_builddir)/src/util/libgnunetutil.la \
181 $(top_builddir)/src/namestore/libgnunetnamestore.la
183 test_namestore_api_store_update_SOURCES = \
184 test_namestore_api_store_update.c
185 test_namestore_api_store_update_LDADD = \
186 $(top_builddir)/src/testing/libgnunettesting.la \
187 $(top_builddir)/src/util/libgnunetutil.la \
188 $(top_builddir)/src/namestore/libgnunetnamestore.la
190 test_namestore_api_put_SOURCES = \
191 test_namestore_api_put.c
192 test_namestore_api_put_LDADD = \
193 $(top_builddir)/src/testing/libgnunettesting.la \
194 $(top_builddir)/src/util/libgnunetutil.la \
195 $(top_builddir)/src/namestore/libgnunetnamestore.la
197 test_namestore_api_remove_SOURCES = \
198 test_namestore_api_remove.c
199 test_namestore_api_remove_LDADD = \
200 $(top_builddir)/src/testing/libgnunettesting.la \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/namestore/libgnunetnamestore.la
204 test_namestore_api_remove_not_existing_record_SOURCES = \
205 test_namestore_api_remove_not_existing_record.c
206 test_namestore_api_remove_not_existing_record_LDADD = \
207 $(top_builddir)/src/testing/libgnunettesting.la \
208 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/namestore/libgnunetnamestore.la
211 test_namestore_api_zone_to_name_SOURCES = \
212 test_namestore_api_zone_to_name.c
213 test_namestore_api_zone_to_name_LDADD = \
214 $(top_builddir)/src/testing/libgnunettesting.la \
215 $(top_builddir)/src/util/libgnunetutil.la \
216 $(top_builddir)/src/namestore/libgnunetnamestore.la
218 test_namestore_api_monitoring_SOURCES = \
219 test_namestore_api_monitoring.c
220 test_namestore_api_monitoring_LDADD = \
221 $(top_builddir)/src/testing/libgnunettesting.la \
222 $(top_builddir)/src/namestore/libgnunetnamestore.la \
223 $(top_builddir)/src/util/libgnunetutil.la
225 test_namestore_api_monitoring_existing_SOURCES = \
226 test_namestore_api_monitoring_existing.c
227 test_namestore_api_monitoring_existing_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/namestore/libgnunetnamestore.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 test_namestore_api_zone_iteration_SOURCES = \
233 test_namestore_api_zone_iteration.c
234 test_namestore_api_zone_iteration_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_iteration_specific_zone_SOURCES = \
240 test_namestore_api_zone_iteration_specific_zone.c
241 test_namestore_api_zone_iteration_specific_zone_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_zone_iteration_stop_SOURCES = \
247 test_namestore_api_zone_iteration_stop.c
248 test_namestore_api_zone_iteration_stop_LDADD = \
249 $(top_builddir)/src/testing/libgnunettesting.la \
250 $(top_builddir)/src/util/libgnunetutil.la \
251 $(top_builddir)/src/namestore/libgnunetnamestore.la
253 test_namestore_record_serialization_SOURCES = \
254 test_namestore_record_serialization.c
255 test_namestore_record_serialization_LDADD = \
256 $(top_builddir)/src/testing/libgnunettesting.la \
257 $(top_builddir)/src/util/libgnunetutil.la \
258 $(top_builddir)/src/namestore/libgnunetnamestore.la
261 test_namestore_api.conf \
262 test_plugin_namestore_sqlite.conf \
263 test_plugin_namestore_postgres.conf \
265 zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
266 zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
267 zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
268 zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey
272 test_plugin_namestore_sqlite_SOURCES = \
273 test_plugin_namestore.c
274 test_plugin_namestore_sqlite_LDADD = \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/util/libgnunetutil.la
278 test_plugin_namestore_postgres_SOURCES = \
279 test_plugin_namestore.c
280 test_plugin_namestore_postgres_LDADD = \
281 $(top_builddir)/src/testing/libgnunettesting.la \
282 $(top_builddir)/src/util/libgnunetutil.la