-improving gnunet-identity command line options and man pages
[oweals/gnunet.git] / src / namestore / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgdatadir)/config.d/
6
7 libexecdir= $(pkglibdir)/libexec/
8
9 pkgcfg_DATA = \
10    namestore.conf
11
12
13 if MINGW
14   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
15 endif
16
17 if USE_COVERAGE
18   AM_CFLAGS = --coverage -O0
19   XLIBS = -lgcov
20 endif
21
22 if HAVE_SQLITE
23 SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
24 if HAVE_TESTING
25 SQLITE_TESTS = test_plugin_namestore_sqlite 
26 endif
27 endif
28
29 if HAVE_POSTGRES
30 # postgres doesn't even build yet; thus: experimental!
31 if HAVE_EXPERIMENTAL
32 POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
33 if HAVE_TESTING
34 POSTGRES_TESTS = test_plugin_namestore_postgres
35 endif
36 endif
37 endif
38
39 # testcases do not even build yet; thus: experimental!
40 if HAVE_EXPERIMENTAL
41
42 if HAVE_TESTING
43 TESTING_TESTS = \
44  test_namestore_api \
45  test_namestore_api_remove
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_not_existing_record 
51 #test_namestore_api_zone_to_name 
52 #test_namestore_api_monitoring 
53 #test_namestore_api_zone_iteration 
54 #test_namestore_api_zone_iteration_specific_zone 
55 #test_namestore_api_zone_iteration_stop
56 endif
57
58 if HAVE_SQLITE
59 check_PROGRAMS = \
60  test_namestore_record_serialization \
61  test_namestore_api_blocks \
62  $(SQLITE_TESTS) \
63  $(POSTGRES_TESTS) \
64  $(TESTING_TESTS)
65 endif
66
67 # end of 'HAVE_EXPERIMENTAL' for testcases 
68 endif
69
70 if ENABLE_TEST_RUN
71 TESTS = $(check_PROGRAMS)
72 endif
73
74 lib_LTLIBRARIES = \
75   libgnunetnamestore.la
76
77 libgnunetnamestore_la_SOURCES = \
78   namestore_api.c \
79   namestore_api_monitor.c \
80   namestore_api_common.c \
81   namestore.h
82 libgnunetnamestore_la_LIBADD = \
83   $(top_builddir)/src/statistics/libgnunetstatistics.la \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   $(GN_LIBINTL) 
86 libgnunetnamestore_la_LDFLAGS = \
87   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
88   -version-info 0:1:0
89
90 libexec_PROGRAMS = \
91  gnunet-service-namestore 
92
93 bin_PROGRAMS = \
94  gnunet-namestore 
95
96 if HAVE_MHD
97 bin_PROGRAMS += \
98  gnunet-namestore-fcfsd
99 endif
100
101 gnunet_namestore_SOURCES = \
102  gnunet-namestore.c 
103 gnunet_namestore_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(top_builddir)/src/identity/libgnunetidentity.la \
106   libgnunetnamestore.la \
107   $(GN_LIBINTL)
108 gnunet_namestore_DEPENDENCIES = \
109   $(top_builddir)/src/identity/libgnunetidentity.la \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   libgnunetnamestore.la
112
113
114 gnunet_namestore_fcfsd_SOURCES = \
115  gnunet-namestore-fcfsd.c 
116 gnunet_namestore_fcfsd_LDADD = -lmicrohttpd \
117   $(top_builddir)/src/util/libgnunetutil.la \
118   $(top_builddir)/src/identity/libgnunetidentity.la \
119   $(top_builddir)/src/namestore/libgnunetnamestore.la \
120   $(GN_LIBINTL)
121 gnunet_namestore_fcfsd_DEPENDENCIES = \
122   $(top_builddir)/src/util/libgnunetutil.la \
123   libgnunetnamestore.la
124
125
126
127 gnunet_service_namestore_SOURCES = \
128  gnunet-service-namestore.c
129
130 gnunet_service_namestore_LDADD = \
131   $(top_builddir)/src/statistics/libgnunetstatistics.la \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   libgnunetnamestore.la \
134   $(GN_LIBINTL)
135 gnunet_service_namestore_DEPENDENCIES = \
136   $(top_builddir)/src/statistics/libgnunetstatistics.la \
137   $(top_builddir)/src/util/libgnunetutil.la \
138   libgnunetnamestore.la
139
140
141 plugin_LTLIBRARIES = \
142   $(SQLITE_PLUGIN) \
143   $(POSTGRES_PLUGIN)
144
145 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
146   plugin_namestore_sqlite.c 
147 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
148   $(top_builddir)/src/namestore/libgnunetnamestore.la  \
149   $(top_builddir)/src/statistics/libgnunetstatistics.la \
150   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
151   $(LTLIBINTL)
152 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
153  $(GN_PLUGIN_LDFLAGS)
154 libgnunet_plugin_namestore_sqlite_la_DEPENDENCIES = \
155   $(top_builddir)/src/statistics/libgnunetstatistics.la \
156   $(top_builddir)/src/util/libgnunetutil.la \
157   libgnunetnamestore.la
158
159
160 libgnunet_plugin_namestore_postgres_la_SOURCES = \
161   plugin_namestore_postgres.c 
162 libgnunet_plugin_namestore_postgres_la_LIBADD = \
163   $(top_builddir)/src/namestore/libgnunetnamestore.la  \
164   $(top_builddir)/src/postgres/libgnunetpostgres.la  \
165   $(top_builddir)/src/statistics/libgnunetstatistics.la \
166   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
167   $(LTLIBINTL)
168 libgnunet_plugin_namestore_postgres_la_LDFLAGS = \
169  $(GN_PLUGIN_LDFLAGS)
170 libgnunet_plugin_namestore_postgres_la_DEPENDENCIES = \
171   $(top_builddir)/src/postgres/libgnunetpostgres.la  \
172   $(top_builddir)/src/statistics/libgnunetstatistics.la \
173   $(top_builddir)/src/util/libgnunetutil.la \
174   libgnunetnamestore.la
175
176 test_namestore_api_blocks_SOURCES = \
177  test_namestore_api_blocks.c
178 test_namestore_api_blocks_LDADD = \
179   $(top_builddir)/src/util/libgnunetutil.la \
180   $(top_builddir)/src/testing/libgnunettesting.la \
181   $(top_builddir)/src/namestore/libgnunetnamestore.la
182
183 test_namestore_api_SOURCES = \
184  test_namestore_api.c
185 test_namestore_api_LDADD = \
186   $(top_builddir)/src/testing/libgnunettesting.la \
187   $(top_builddir)/src/util/libgnunetutil.la \
188   $(top_builddir)/src/namestore/libgnunetnamestore.la
189
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
196
197 test_namestore_api_lookup_SOURCES = \
198  test_namestore_api_lookup.c
199 test_namestore_api_lookup_LDADD = \
200   $(top_builddir)/src/testing/libgnunettesting.la \
201   $(top_builddir)/src/util/libgnunetutil.la \
202   $(top_builddir)/src/namestore/libgnunetnamestore.la
203
204 test_namestore_api_lookup_specific_type_SOURCES = \
205  test_namestore_api_lookup_specific_type.c
206 test_namestore_api_lookup_specific_type_LDADD = \
207   $(top_builddir)/src/testing/libgnunettesting.la \
208   $(top_builddir)/src/util/libgnunetutil.la \
209   $(top_builddir)/src/namestore/libgnunetnamestore.la
210
211
212 test_namestore_api_create_SOURCES = \
213  test_namestore_api_create.c
214 test_namestore_api_create_LDADD = \
215   $(top_builddir)/src/testing/libgnunettesting.la \
216   $(top_builddir)/src/util/libgnunetutil.la \
217   $(top_builddir)/src/namestore/libgnunetnamestore.la
218
219 test_namestore_api_create_update_SOURCES = \
220  test_namestore_api_create_update.c
221 test_namestore_api_create_update_LDADD = \
222   $(top_builddir)/src/testing/libgnunettesting.la \
223   $(top_builddir)/src/util/libgnunetutil.la \
224   $(top_builddir)/src/namestore/libgnunetnamestore.la
225
226
227 test_namestore_api_remove_SOURCES = \
228  test_namestore_api_remove.c
229 test_namestore_api_remove_LDADD = \
230   $(top_builddir)/src/testing/libgnunettesting.la \
231   $(top_builddir)/src/util/libgnunetutil.la \
232   $(top_builddir)/src/namestore/libgnunetnamestore.la
233
234 test_namestore_api_remove_not_existing_record_SOURCES = \
235  test_namestore_api_remove_not_existing_record.c
236 test_namestore_api_remove_not_existing_record_LDADD = \
237   $(top_builddir)/src/testing/libgnunettesting.la \
238   $(top_builddir)/src/util/libgnunetutil.la \
239   $(top_builddir)/src/namestore/libgnunetnamestore.la
240
241 test_namestore_api_zone_to_name_SOURCES = \
242  test_namestore_api_zone_to_name.c
243 test_namestore_api_zone_to_name_LDADD = \
244   $(top_builddir)/src/testing/libgnunettesting.la \
245   $(top_builddir)/src/util/libgnunetutil.la \
246   $(top_builddir)/src/namestore/libgnunetnamestore.la
247
248 test_namestore_api_monitoring_SOURCES = \
249  test_namestore_api_monitoring.c
250 test_namestore_api_monitoring_LDADD = \
251   $(top_builddir)/src/testing/libgnunettesting.la \
252   $(top_builddir)/src/namestore/libgnunetnamestore.la \
253   $(top_builddir)/src/util/libgnunetutil.la 
254
255 test_namestore_api_zone_iteration_SOURCES = \
256  test_namestore_api_zone_iteration.c
257 test_namestore_api_zone_iteration_LDADD = \
258   $(top_builddir)/src/testing/libgnunettesting.la \
259   $(top_builddir)/src/util/libgnunetutil.la \
260   $(top_builddir)/src/namestore/libgnunetnamestore.la  
261
262 test_namestore_api_zone_iteration_specific_zone_SOURCES = \
263  test_namestore_api_zone_iteration_specific_zone.c
264 test_namestore_api_zone_iteration_specific_zone_LDADD = \
265   $(top_builddir)/src/testing/libgnunettesting.la \
266   $(top_builddir)/src/util/libgnunetutil.la \
267   $(top_builddir)/src/namestore/libgnunetnamestore.la  
268
269 test_namestore_api_zone_iteration_stop_SOURCES = \
270  test_namestore_api_zone_iteration_stop.c
271 test_namestore_api_zone_iteration_stop_LDADD = \
272   $(top_builddir)/src/testing/libgnunettesting.la \
273   $(top_builddir)/src/util/libgnunetutil.la \
274   $(top_builddir)/src/namestore/libgnunetnamestore.la    
275
276 test_namestore_record_serialization_SOURCES = \
277  test_namestore_record_serialization.c
278 test_namestore_record_serialization_LDADD = \
279   $(top_builddir)/src/testing/libgnunettesting.la \
280   $(top_builddir)/src/util/libgnunetutil.la \
281   $(top_builddir)/src/namestore/libgnunetnamestore.la  
282
283 EXTRA_DIST = \
284   test_namestore_api.conf \
285   test_plugin_namestore_sqlite.conf\
286   test_plugin_namestore_postgres.conf\
287   test_hostkey \
288   zonefiles/S5I9DSGQVAB5FVV16T3B3CC5H1B2JGL3Q412JBKURME8EKU0600G.zkey \
289   zonefiles/AQ835GVL939H4O8QJQ7GBLPTQC0QAAO91BN7QK01BA63MDSK6I4G.zkey \
290   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
291   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey
292
293
294
295 test_plugin_namestore_sqlite_SOURCES = \
296  test_plugin_namestore.c
297 test_plugin_namestore_sqlite_LDADD = \
298  $(top_builddir)/src/testing/libgnunettesting.la \
299  $(top_builddir)/src/util/libgnunetutil.la  
300
301 test_plugin_namestore_postgres_SOURCES = \
302  test_plugin_namestore.c
303 test_plugin_namestore_postgres_LDADD = \
304  $(top_builddir)/src/testing/libgnunettesting.la \
305  $(top_builddir)/src/util/libgnunetutil.la