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
50 TESTS = $(check_PROGRAMS)
56 libgnunetnamestore_la_SOURCES = \
57 namestore_api.c namestore_common.c namestore.h
58 libgnunetnamestore_la_LIBADD = \
59 $(top_builddir)/src/statistics/libgnunetstatistics.la \
60 $(top_builddir)/src/util/libgnunetutil.la \
62 libgnunetnamestore_la_LDFLAGS = \
63 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
67 gnunet-service-namestore \
71 gnunet_namestore_SOURCES = \
73 gnunet_namestore_LDADD = \
74 $(top_builddir)/src/util/libgnunetutil.la \
75 libgnunetnamestore.la \
77 gnunet_namestore_DEPENDENCIES = \
78 $(top_builddir)/src/util/libgnunetutil.la \
83 gnunet_service_namestore_SOURCES = \
84 gnunet-service-namestore.c
86 gnunet_service_namestore_LDADD = \
87 $(top_builddir)/src/statistics/libgnunetstatistics.la \
88 $(top_builddir)/src/util/libgnunetutil.la \
89 libgnunetnamestore.la \
91 gnunet_service_namestore_DEPENDENCIES = \
92 $(top_builddir)/src/statistics/libgnunetstatistics.la \
93 $(top_builddir)/src/util/libgnunetutil.la \
97 plugin_LTLIBRARIES = \
101 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
102 plugin_namestore_sqlite.c namestore_common.c
103 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
104 $(top_builddir)/src/namestore/libgnunetnamestore.la \
105 $(top_builddir)/src/statistics/libgnunetstatistics.la \
106 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
108 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
110 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
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/postgres/libgnunetpostgres.la \
128 $(top_builddir)/src/statistics/libgnunetstatistics.la \
129 $(top_builddir)/src/util/libgnunetutil.la \
130 libgnunetnamestore.la
132 test_namestore_api_sign_verify_SOURCES = \
133 test_namestore_api_sign_verify.c
134 test_namestore_api_sign_verify_LDADD = \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 $(top_builddir)/src/testing/libgnunettesting.la \
137 $(top_builddir)/src/namestore/libgnunetnamestore.la
139 test_namestore_api_SOURCES = \
141 test_namestore_api_LDADD = \
142 $(top_builddir)/src/testing/libgnunettesting.la \
143 $(top_builddir)/src/util/libgnunetutil.la \
144 $(top_builddir)/src/namestore/libgnunetnamestore.la
146 test_namestore_api_put_SOURCES = \
147 test_namestore_api_put.c
148 test_namestore_api_put_LDADD = \
149 $(top_builddir)/src/testing/libgnunettesting.la \
150 $(top_builddir)/src/util/libgnunetutil.la \
151 $(top_builddir)/src/namestore/libgnunetnamestore.la
153 test_namestore_api_lookup_SOURCES = \
154 test_namestore_api_lookup.c
155 test_namestore_api_lookup_LDADD = \
156 $(top_builddir)/src/testing/libgnunettesting.la \
157 $(top_builddir)/src/util/libgnunetutil.la \
158 $(top_builddir)/src/namestore/libgnunetnamestore.la
160 test_namestore_api_lookup_specific_type_SOURCES = \
161 test_namestore_api_lookup_specific_type.c
162 test_namestore_api_lookup_specific_type_LDADD = \
163 $(top_builddir)/src/testing/libgnunettesting.la \
164 $(top_builddir)/src/util/libgnunetutil.la \
165 $(top_builddir)/src/namestore/libgnunetnamestore.la
168 test_namestore_api_create_SOURCES = \
169 test_namestore_api_create.c
170 test_namestore_api_create_LDADD = \
171 $(top_builddir)/src/testing/libgnunettesting.la \
172 $(top_builddir)/src/util/libgnunetutil.la \
173 $(top_builddir)/src/namestore/libgnunetnamestore.la
175 test_namestore_api_create_update_SOURCES = \
176 test_namestore_api_create_update.c
177 test_namestore_api_create_update_LDADD = \
178 $(top_builddir)/src/testing/libgnunettesting.la \
179 $(top_builddir)/src/util/libgnunetutil.la \
180 $(top_builddir)/src/namestore/libgnunetnamestore.la
183 test_namestore_api_remove_SOURCES = \
184 test_namestore_api_remove.c
185 test_namestore_api_remove_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_remove_not_existing_record_SOURCES = \
191 test_namestore_api_remove_not_existing_record.c
192 test_namestore_api_remove_not_existing_record_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_zone_to_name_SOURCES = \
198 test_namestore_api_zone_to_name.c
199 test_namestore_api_zone_to_name_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_zone_iteration_SOURCES = \
205 test_namestore_api_zone_iteration.c
206 test_namestore_api_zone_iteration_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_iteration_specific_zone_SOURCES = \
212 test_namestore_api_zone_iteration_specific_zone.c
213 test_namestore_api_zone_iteration_specific_zone_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_zone_iteration_stop_SOURCES = \
219 test_namestore_api_zone_iteration_stop.c
220 test_namestore_api_zone_iteration_stop_LDADD = \
221 $(top_builddir)/src/testing/libgnunettesting.la \
222 $(top_builddir)/src/util/libgnunetutil.la \
223 $(top_builddir)/src/namestore/libgnunetnamestore.la
225 test_namestore_record_serialization_SOURCES = \
226 test_namestore_record_serialization.c
227 test_namestore_record_serialization_LDADD = \
228 $(top_builddir)/src/testing/libgnunettesting.la \
229 $(top_builddir)/src/util/libgnunetutil.la \
230 $(top_builddir)/src/namestore/libgnunetnamestore.la
233 test_namestore_api.conf \
234 test_plugin_namestore_sqlite.conf\
235 test_plugin_namestore_postgres.conf\
237 zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
238 zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey
241 test_plugin_namestore_sqlite_SOURCES = \
242 test_plugin_namestore.c
243 test_plugin_namestore_sqlite_LDADD = \
244 $(top_builddir)/src/testing/libgnunettesting.la \
245 $(top_builddir)/src/util/libgnunetutil.la
247 test_plugin_namestore_postgres_SOURCES = \
248 test_plugin_namestore.c
249 test_plugin_namestore_postgres_LDADD = \
250 $(top_builddir)/src/testing/libgnunettesting.la \
251 $(top_builddir)/src/util/libgnunetutil.la