- interactive option to disable waiting on keystroke but wait instead for termination...
[oweals/gnunet.git] / src / gns / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 if HAVE_GLIBCNSS
4 if INSTALL_NSS
5 NSS_SUBDIR = nss
6 endif
7 endif
8
9 SUBDIRS = . $(NSS_SUBDIR)
10
11 EXTRA_DIST = \
12   test_gns_defaults.conf \
13   test_gns_simple_lookup.conf \
14   test_gns_dht_default.conf \
15   gns-helper-service-w32.conf \
16   gnunet-gns-proxy-setup-ca \
17   zonefiles/J7POEUT41A8PBFS7KVVDRF88GBOU4HK8PSU5QKVLVE3R9T91E99G.zkey \
18   zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey \
19   zonefiles/test_zonekey \
20   $(check_SCRIPTS)
21
22 if MINGW
23   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
24   DO_W32_HELPER = gnunet-gns-helper-service-w32
25   DO_W32_NSP = libw32nsp.la
26   DO_W32_NSPTOOLS = w32nsp-install w32nsp-uninstall w32nsp-resolve
27   DO_W32_HS_CONF = gns-helper-service-w32.conf
28 endif
29 USE_VPN = $(top_builddir)/src/vpn/libgnunetvpn.la
30
31 if USE_COVERAGE
32   AM_CFLAGS = --coverage -O0
33 endif
34
35 pkgcfgdir = $(pkgdatadir)/config.d/
36
37 libexecdir= $(pkglibdir)/libexec/
38
39 plugindir = $(libdir)/gnunet
40
41 pkgcfg_DATA = \
42   gns.conf \
43   $(DO_W32_HS_CONF)
44
45 lib_LTLIBRARIES = \
46   $(DO_W32_NSP) \
47   libgnunetgns.la
48
49
50 if HAVE_MHD
51 if HAVE_GNUTLS
52 if HAVE_LIBCURL
53 # DO_PROXY=gnunet-gns-proxy
54 endif
55 endif
56 endif
57
58 libexec_PROGRAMS = \
59   gnunet-service-gns \
60   $(DO_W32_HELPER) \
61   gnunet-dns2gns
62 #  $(DO_PROXY)
63
64 bin_PROGRAMS = \
65   $(DO_W32_NSPTOOLS) \
66   gnunet-gns
67
68 bin_SCRIPTS = gnunet-gns-proxy-setup-ca
69
70 plugin_LTLIBRARIES = \
71   libgnunet_plugin_block_gns.la \
72   libgnunet_plugin_gnsrecord_gns.la
73
74
75 libgnunet_plugin_gnsrecord_gns_la_SOURCES = \
76   plugin_gnsrecord_gns.c
77 libgnunet_plugin_gnsrecord_gns_la_LIBADD = \
78   $(top_builddir)/src/dns/libgnunetdnsparser.la \
79   $(top_builddir)/src/util/libgnunetutil.la \
80   $(LTLIBINTL)
81 libgnunet_plugin_gnsrecord_gns_la_LDFLAGS = \
82  $(GN_PLUGIN_LDFLAGS)
83
84
85 gnunet_gns_SOURCES = \
86  gnunet-gns.c
87 gnunet_gns_LDADD = \
88   $(top_builddir)/src/gns/libgnunetgns.la \
89   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
90   $(top_builddir)/src/namestore/libgnunetnamestore.la \
91   $(top_builddir)/src/identity/libgnunetidentity.la \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(GN_LIBINTL)
94 gnunet_gns_DEPENDENCIES = \
95   $(top_builddir)/src/namestore/libgnunetnamestore.la \
96   $(top_builddir)/src/identity/libgnunetidentity.la \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   libgnunetgns.la
99
100 gnunet_dns2gns_SOURCES = \
101  gnunet-dns2gns.c
102 gnunet_dns2gns_LDADD = \
103   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
104   $(top_builddir)/src/gns/libgnunetgns.la \
105   $(top_builddir)/src/util/libgnunetutil.la \
106   $(top_builddir)/src/identity/libgnunetidentity.la \
107   $(top_builddir)/src/namestore/libgnunetnamestore.la \
108   $(top_builddir)/src/dns/libgnunetdnsparser.la \
109   $(top_builddir)/src/dns/libgnunetdnsstub.la \
110   $(GN_LIBINTL)
111 gnunet_dns2gns_DEPENDENCIES = \
112   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   $(top_builddir)/src/identity/libgnunetidentity.la \
115   $(top_builddir)/src/namestore/libgnunetnamestore.la \
116   $(top_builddir)/src/dns/libgnunetdnsparser.la \
117   $(top_builddir)/src/dns/libgnunetdnsstub.la \
118   libgnunetgns.la
119
120 gnunet_gns_proxy_SOURCES = \
121  gnunet-gns-proxy.c
122 gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
123   $(top_builddir)/src/gns/libgnunetgns.la \
124   $(top_builddir)/src/identity/libgnunetidentity.la \
125   $(top_builddir)/src/util/libgnunetutil.la \
126   $(GN_LIBINTL)
127 gnunet_gns_proxy_DEPENDENCIES = \
128   $(top_builddir)/src/identity/libgnunetidentity.la \
129   $(top_builddir)/src/util/libgnunetutil.la \
130   libgnunetgns.la
131
132 gnunet_gns_helper_service_w32_SOURCES = \
133   gnunet-gns-helper-service-w32.c
134 gnunet_gns_helper_service_w32_LDADD = \
135   $(top_builddir)/src/gns/libgnunetgns.la \
136   $(top_builddir)/src/util/libgnunetutil.la \
137   $(GN_LIBINTL)
138 gnunet_gns_helper_service_w32_DEPENDENCIES = \
139   $(top_builddir)/src/util/libgnunetutil.la \
140   libgnunetgns.la
141
142 w32nsp_install_SOURCES = \
143   w32nsp-install.c
144 w32nsp_install_LDADD = -lws2_32
145
146 w32nsp_uninstall_SOURCES = \
147   w32nsp-uninstall.c
148 w32nsp_uninstall_LDADD = -lws2_32
149
150 w32nsp_resolve_SOURCES = \
151   w32nsp-resolve.c
152 w32nsp_resolve_LDADD = -lws2_32
153
154 gnunet_service_gns_SOURCES = \
155  gnunet-service-gns.c \
156  gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
157  gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
158  gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
159 gnunet_service_gns_LDADD = \
160   -lm \
161   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
162   $(top_builddir)/src/statistics/libgnunetstatistics.la \
163   $(top_builddir)/src/util/libgnunetutil.la \
164   $(top_builddir)/src/dns/libgnunetdns.la \
165   $(top_builddir)/src/dns/libgnunetdnsparser.la \
166   $(top_builddir)/src/dns/libgnunetdnsstub.la \
167   $(top_builddir)/src/dht/libgnunetdht.la \
168   $(top_builddir)/src/namecache/libgnunetnamecache.la \
169   $(top_builddir)/src/namestore/libgnunetnamestore.la \
170   $(USE_VPN) \
171   $(GN_LIBINTL)
172 gnunet_service_gns_DEPENDENCIES = \
173   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
174   $(top_builddir)/src/statistics/libgnunetstatistics.la \
175   $(top_builddir)/src/util/libgnunetutil.la \
176   $(top_builddir)/src/dns/libgnunetdns.la \
177   $(top_builddir)/src/dns/libgnunetdnsparser.la \
178   $(top_builddir)/src/dht/libgnunetdht.la \
179   $(top_builddir)/src/namestore/libgnunetnamestore.la \
180   $(USE_VPN)
181
182
183
184 libw32nsp_la_SOURCES = \
185   w32nsp.c
186 libw32nsp_la_LIBADD = \
187   -lole32 -lws2_32
188 libw32nsp_la_LDFLAGS = \
189   -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
190   $(GN_LIB_LDFLAGS)
191
192 libgnunetgns_la_SOURCES = \
193  gns_api.c gns.h
194 libgnunetgns_la_LIBADD = \
195  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
196  $(top_builddir)/src/namestore/libgnunetnamestore.la
197 libgnunetgns_la_LDFLAGS = \
198   $(GN_LIB_LDFLAGS)
199 libgnunetgns_la_DEPENDENCIES = \
200  $(top_builddir)/src/util/libgnunetutil.la \
201  $(top_builddir)/src/namestore/libgnunetnamestore.la
202
203
204 libgnunet_plugin_block_gns_la_SOURCES = \
205   plugin_block_gns.c
206 libgnunet_plugin_block_gns_la_LIBADD = \
207   $(top_builddir)/src/util/libgnunetutil.la \
208   $(top_builddir)/src/block/libgnunetblock.la \
209   $(top_builddir)/src/namestore/libgnunetnamestore.la
210 libgnunet_plugin_block_gns_la_LDFLAGS = \
211   $(GN_PLUGIN_LDFLAGS)
212 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
213   $(top_builddir)/src/util/libgnunetutil.la \
214   $(top_builddir)/src/block/libgnunetblock.la \
215   $(top_builddir)/src/namestore/libgnunetnamestore.la
216
217
218 check_SCRIPTS = \
219   test_gns_delegated_lookup.sh \
220   test_gns_lookup.sh \
221   test_gns_ipv6_lookup.sh\
222   test_gns_txt_lookup.sh\
223   test_gns_mx_lookup.sh \
224   test_gns_ns_lookup.sh \
225   test_gns_dht_lookup.sh\
226   test_gns_pseu_shorten.sh\
227   test_gns_plus_lookup.sh\
228   test_gns_zkey_lookup.sh\
229   test_gns_cname_lookup.sh
230
231 if ENABLE_TEST_RUN
232 if HAVE_SQLITE
233  TESTS = $(check_SCRIPTS)
234 endif
235 endif
236