Makefile.am 8.3 KB

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