1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
5 pkgcfgdir= $(pkgdatadir)/config.d/
12 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
16 AM_CFLAGS = --coverage -O0
21 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
22 SQLITE_TESTS = test_plugin_namestore_sqlite
25 POSTGRES_TESTS = test_plugin_namestore_postgres
26 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
33 test_namestore_record_serialization \
34 test_namestore_api_sign_verify \
36 test_namestore_api_put \
37 test_namestore_api_lookup \
38 test_namestore_api_lookup_specific_type \
39 test_namestore_api_create \
40 test_namestore_api_create_update \
41 test_namestore_api_remove \
42 test_namestore_api_remove_not_existing_record \
43 test_namestore_api_zone_to_name \
44 test_namestore_api_zone_iteration \
45 test_namestore_api_zone_iteration_specific_zone \
46 test_namestore_api_zone_iteration_stop
49 TESTS = $(check_PROGRAMS)
55 libgnunetnamestore_la_SOURCES = \
56 namestore_api.c namestore_common.c namestore.h
57 libgnunetnamestore_la_LIBADD = \
58 $(top_builddir)/src/statistics/libgnunetstatistics.la \
59 $(top_builddir)/src/util/libgnunetutil.la \
61 libgnunetnamestore_la_LDFLAGS = \
62 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
66 gnunet-service-namestore \
70 gnunet_namestore_SOURCES = \
72 gnunet_namestore_LDADD = \
73 $(top_builddir)/src/util/libgnunetutil.la \
74 libgnunetnamestore.la \
76 gnunet_namestore_DEPENDENCIES = \
77 $(top_builddir)/src/util/libgnunetutil.la \
82 gnunet_service_namestore_SOURCES = \
83 gnunet-service-namestore.c
85 gnunet_service_namestore_LDADD = \
86 $(top_builddir)/src/statistics/libgnunetstatistics.la \
87 $(top_builddir)/src/util/libgnunetutil.la \
88 libgnunetnamestore.la \
90 gnunet_service_namestore_DEPENDENCIES = \
91 $(top_builddir)/src/statistics/libgnunetstatistics.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
96 plugin_LTLIBRARIES = \
100 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
101 plugin_namestore_sqlite.c namestore_common.c
102 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
103 $(top_builddir)/src/namestore/libgnunetnamestore.la \
104 $(top_builddir)/src/statistics/libgnunetstatistics.la \
105 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
107 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
109 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
110 $(top_builddir)/src/namestore/libgnunetnamestore.la \
111 $(top_builddir)/src/statistics/libgnunetstatistics.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
113 libgnunetnamestore.la
116 libgnunet_plugin_namestore_postgres_la_SOURCES = \
117 plugin_namestore_postgres.c namestore_common.c
118 libgnunet_plugin_namestore_postgres_la_LIBADD = \
119 $(top_builddir)/src/namestore/libgnunetnamestore.la \
120 $(top_builddir)/src/postgres/libgnunetpostgres.la \
121 $(top_builddir)/src/statistics/libgnunetstatistics.la \
122 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
124 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
126 libgnunet_plugin_namestore_postgres_la_DEPENDENCIES = \
127 $(top_builddir)/src/namestore/libgnunetnamestore.la \
128 $(top_builddir)/src/postgres/libgnunetpostgres.la \
129 $(top_builddir)/src/statistics/libgnunetstatistics.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
131 libgnunetnamestore.la
133 test_namestore_api_sign_verify_SOURCES = \
134 test_namestore_api_sign_verify.c
135 test_namestore_api_sign_verify_LDADD = \
136 $(top_builddir)/src/util/libgnunetutil.la \
137 $(top_builddir)/src/testing/libgnunettesting.la \
138 $(top_builddir)/src/namestore/libgnunetnamestore.la
140 test_namestore_api_SOURCES = \
142 test_namestore_api_LDADD = \
143 $(top_builddir)/src/testing/libgnunettesting.la \
144 $(top_builddir)/src/util/libgnunetutil.la \
145 $(top_builddir)/src/namestore/libgnunetnamestore.la
147 test_namestore_api_put_SOURCES = \
148 test_namestore_api_put.c
149 test_namestore_api_put_LDADD = \
150 $(top_builddir)/src/testing/libgnunettesting.la \
151 $(top_builddir)/src/util/libgnunetutil.la \
152 $(top_builddir)/src/namestore/libgnunetnamestore.la
154 test_namestore_api_lookup_SOURCES = \
155 test_namestore_api_lookup.c
156 test_namestore_api_lookup_LDADD = \
157 $(top_builddir)/src/testing/libgnunettesting.la \
158 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/namestore/libgnunetnamestore.la
161 test_namestore_api_lookup_specific_type_SOURCES = \
162 test_namestore_api_lookup_specific_type.c
163 test_namestore_api_lookup_specific_type_LDADD = \
164 $(top_builddir)/src/testing/libgnunettesting.la \
165 $(top_builddir)/src/util/libgnunetutil.la \
166 $(top_builddir)/src/namestore/libgnunetnamestore.la
169 test_namestore_api_create_SOURCES = \
170 test_namestore_api_create.c
171 test_namestore_api_create_LDADD = \
172 $(top_builddir)/src/testing/libgnunettesting.la \
173 $(top_builddir)/src/util/libgnunetutil.la \
174 $(top_builddir)/src/namestore/libgnunetnamestore.la
176 test_namestore_api_create_update_SOURCES = \
177 test_namestore_api_create_update.c
178 test_namestore_api_create_update_LDADD = \
179 $(top_builddir)/src/testing/libgnunettesting.la \
180 $(top_builddir)/src/util/libgnunetutil.la \
181 $(top_builddir)/src/namestore/libgnunetnamestore.la
184 test_namestore_api_remove_SOURCES = \
185 test_namestore_api_remove.c
186 test_namestore_api_remove_LDADD = \
187 $(top_builddir)/src/testing/libgnunettesting.la \
188 $(top_builddir)/src/util/libgnunetutil.la \
189 $(top_builddir)/src/namestore/libgnunetnamestore.la
191 test_namestore_api_remove_not_existing_record_SOURCES = \
192 test_namestore_api_remove_not_existing_record.c
193 test_namestore_api_remove_not_existing_record_LDADD = \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/util/libgnunetutil.la \
196 $(top_builddir)/src/namestore/libgnunetnamestore.la
198 test_namestore_api_zone_to_name_SOURCES = \
199 test_namestore_api_zone_to_name.c
200 test_namestore_api_zone_to_name_LDADD = \
201 $(top_builddir)/src/testing/libgnunettesting.la \
202 $(top_builddir)/src/util/libgnunetutil.la \
203 $(top_builddir)/src/namestore/libgnunetnamestore.la
205 test_namestore_api_zone_iteration_SOURCES = \
206 test_namestore_api_zone_iteration.c
207 test_namestore_api_zone_iteration_LDADD = \
208 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/namestore/libgnunetnamestore.la
212 test_namestore_api_zone_iteration_specific_zone_SOURCES = \
213 test_namestore_api_zone_iteration_specific_zone.c
214 test_namestore_api_zone_iteration_specific_zone_LDADD = \
215 $(top_builddir)/src/testing/libgnunettesting.la \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/namestore/libgnunetnamestore.la
219 test_namestore_api_zone_iteration_stop_SOURCES = \
220 test_namestore_api_zone_iteration_stop.c
221 test_namestore_api_zone_iteration_stop_LDADD = \
222 $(top_builddir)/src/testing/libgnunettesting.la \
223 $(top_builddir)/src/util/libgnunetutil.la \
224 $(top_builddir)/src/namestore/libgnunetnamestore.la
226 test_namestore_record_serialization_SOURCES = \
227 test_namestore_record_serialization.c
228 test_namestore_record_serialization_LDADD = \
229 $(top_builddir)/src/testing/libgnunettesting.la \
230 $(top_builddir)/src/util/libgnunetutil.la \
231 $(top_builddir)/src/namestore/libgnunetnamestore.la
234 test_namestore_api.conf \
235 test_plugin_namestore_sqlite.conf\
236 test_plugin_namestore_postgres.conf\
238 zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
239 zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey
242 test_plugin_namestore_sqlite_SOURCES = \
243 test_plugin_namestore.c
244 test_plugin_namestore_sqlite_LDADD = \
245 $(top_builddir)/src/testing/libgnunettesting.la \
246 $(top_builddir)/src/util/libgnunetutil.la
248 test_plugin_namestore_postgres_SOURCES = \
249 test_plugin_namestore.c
250 test_plugin_namestore_postgres_LDADD = \
251 $(top_builddir)/src/testing/libgnunettesting.la \
252 $(top_builddir)/src/util/libgnunetutil.la