Makefile.am 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. 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_bcd_SOURCES = \
  94. gnunet-bcd.c
  95. gnunet_bcd_LDADD = \
  96. $(top_builddir)/src/util/libgnunetutil.la \
  97. $(GN_LIBINTL) -lmicrohttpd
  98. gnunet_dns2gns_SOURCES = \
  99. gnunet-dns2gns.c
  100. gnunet_dns2gns_LDADD = \
  101. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  102. libgnunetgns.la \
  103. $(top_builddir)/src/util/libgnunetutil.la \
  104. $(top_builddir)/src/identity/libgnunetidentity.la \
  105. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  106. $(top_builddir)/src/dns/libgnunetdnsparser.la \
  107. $(top_builddir)/src/dns/libgnunetdnsstub.la \
  108. $(GN_LIBINTL)
  109. gnunet_gns_proxy_SOURCES = \
  110. gnunet-gns-proxy.c
  111. gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
  112. gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
  113. libgnunetgns.la \
  114. $(top_builddir)/src/identity/libgnunetidentity.la \
  115. $(top_builddir)/src/util/libgnunetutil.la \
  116. $(GN_LIBINTL)
  117. if HAVE_GNUTLS_DANE
  118. gnunet_gns_proxy_LDADD += -lgnutls-dane
  119. endif
  120. gnunet_gns_helper_service_w32_SOURCES = \
  121. gnunet-gns-helper-service-w32.c
  122. gnunet_gns_helper_service_w32_LDADD = \
  123. libgnunetgns.la \
  124. $(top_builddir)/src/identity/libgnunetidentity.la \
  125. $(top_builddir)/src/util/libgnunetutil.la \
  126. $(GN_LIBINTL)
  127. gnunet_gns_import_SOURCES = \
  128. gnunet-gns-import.c
  129. gnunet_gns_import_LDADD = \
  130. $(top_builddir)/src/identity/libgnunetidentity.la \
  131. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  132. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  133. $(top_builddir)/src/util/libgnunetutil.la \
  134. $(GN_LIBINTL)
  135. w32nsp_install_SOURCES = \
  136. w32nsp-install.c
  137. w32nsp_install_LDADD = -lws2_32
  138. w32nsp_uninstall_SOURCES = \
  139. w32nsp-uninstall.c
  140. w32nsp_uninstall_LDADD = -lws2_32
  141. w32nsp_resolve_SOURCES = \
  142. w32nsp-resolve.c
  143. w32nsp_resolve_LDADD = -lws2_32
  144. gnunet_service_gns_SOURCES = \
  145. gnunet-service-gns.c \
  146. gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
  147. gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
  148. gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h
  149. gnunet_service_gns_LDADD = \
  150. -lm \
  151. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  152. $(top_builddir)/src/revocation/libgnunetrevocation.la \
  153. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  154. $(top_builddir)/src/util/libgnunetutil.la \
  155. $(top_builddir)/src/dns/libgnunetdns.la \
  156. $(top_builddir)/src/dns/libgnunetdnsparser.la \
  157. $(top_builddir)/src/dns/libgnunetdnsstub.la \
  158. $(top_builddir)/src/dht/libgnunetdht.la \
  159. $(top_builddir)/src/tun/libgnunettun.la \
  160. $(top_builddir)/src/namecache/libgnunetnamecache.la \
  161. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  162. $(USE_VPN) \
  163. $(GN_LIBINTL)
  164. libw32nsp_la_SOURCES = \
  165. w32nsp.c
  166. libw32nsp_la_LIBADD = \
  167. -lole32 -lws2_32
  168. libw32nsp_la_LDFLAGS = \
  169. -export-symbols $(top_srcdir)/src/gns/w32nsp.def \
  170. -no-undefined -static-libgcc
  171. libgnunetgns_la_SOURCES = \
  172. gns_api.c gns.h
  173. libgnunetgns_la_LIBADD = \
  174. $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
  175. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
  176. libgnunetgns_la_LDFLAGS = \
  177. $(GN_LIB_LDFLAGS)
  178. libgnunet_plugin_block_gns_la_SOURCES = \
  179. plugin_block_gns.c
  180. libgnunet_plugin_block_gns_la_LIBADD = \
  181. $(top_builddir)/src/util/libgnunetutil.la \
  182. $(top_builddir)/src/block/libgnunetblock.la \
  183. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la
  184. libgnunet_plugin_block_gns_la_LDFLAGS = \
  185. $(GN_PLUGIN_LDFLAGS)
  186. check_SCRIPTS = \
  187. test_gns_lookup.sh \
  188. test_gns_ipv6_lookup.sh\
  189. test_gns_txt_lookup.sh\
  190. test_gns_mx_lookup.sh \
  191. test_gns_gns2dns_lookup.sh \
  192. test_gns_dht_lookup.sh\
  193. test_gns_delegated_lookup.sh \
  194. test_gns_nick_shorten.sh\
  195. test_gns_plus_lookup.sh\
  196. test_gns_zkey_lookup.sh\
  197. test_gns_rel_expiration.sh\
  198. test_gns_soa_lookup.sh\
  199. test_gns_revocation.sh\
  200. test_gns_cname_lookup.sh
  201. if ENABLE_TEST_RUN
  202. if HAVE_SQLITE
  203. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
  204. TESTS = $(check_SCRIPTS)
  205. endif
  206. endif