Makefile.am 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. if MINGW
  4. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  5. endif
  6. if USE_COVERAGE
  7. AM_CFLAGS = --coverage -O0
  8. endif
  9. pkgcfgdir= $(pkgdatadir)/config.d/
  10. libexecdir= $(pkglibdir)/libexec/
  11. plugindir = $(libdir)/gnunet
  12. pkgcfg_DATA = \
  13. dns.conf
  14. if LINUX
  15. HIJACKBIN = gnunet-helper-dns
  16. install-exec-hook:
  17. $(top_srcdir)/src/dns/install-dns-helper.sh $(libexecdir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true
  18. else
  19. install-exec-hook:
  20. endif
  21. lib_LTLIBRARIES = \
  22. libgnunetdnsparser.la \
  23. libgnunetdnsstub.la \
  24. libgnunetdns.la
  25. libexec_PROGRAMS = \
  26. gnunet-service-dns $(HIJACKBIN)
  27. noinst_PROGRAMS = \
  28. gnunet-dns-monitor gnunet-dns-redirector
  29. plugin_LTLIBRARIES = \
  30. libgnunet_plugin_block_dns.la
  31. if LINUX
  32. check_SCRIPTS = \
  33. test_gnunet_dns.sh
  34. endif
  35. check_PROGRAMS = \
  36. test_hexcoder
  37. gnunet_helper_dns_SOURCES = \
  38. gnunet-helper-dns.c
  39. gnunet_dns_monitor_SOURCES = \
  40. gnunet-dns-monitor.c
  41. gnunet_dns_monitor_LDADD = \
  42. libgnunetdnsparser.la \
  43. libgnunetdns.la \
  44. $(top_builddir)/src/util/libgnunetutil.la \
  45. $(GN_LIBINTL)
  46. gnunet_dns_redirector_SOURCES = \
  47. gnunet-dns-redirector.c
  48. gnunet_dns_redirector_LDADD = \
  49. libgnunetdnsparser.la \
  50. libgnunetdns.la \
  51. $(top_builddir)/src/util/libgnunetutil.la \
  52. $(GN_LIBINTL)
  53. gnunet_service_dns_SOURCES = \
  54. gnunet-service-dns.c
  55. gnunet_service_dns_LDADD = \
  56. libgnunetdnsstub.la \
  57. $(top_builddir)/src/tun/libgnunettun.la \
  58. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  59. $(top_builddir)/src/util/libgnunetutil.la \
  60. $(GN_LIBINTL)
  61. libgnunetdnsparser_la_SOURCES = \
  62. dnsparser.c
  63. libgnunetdnsparser_la_LIBADD = \
  64. $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
  65. -lidn
  66. libgnunetdnsparser_la_LDFLAGS = \
  67. $(GN_LIB_LDFLAGS) \
  68. -version-info 1:0:1
  69. libgnunetdnsstub_la_SOURCES = \
  70. dnsstub.c
  71. libgnunetdnsstub_la_LIBADD = \
  72. $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
  73. libgnunetdnsstub_la_LDFLAGS = \
  74. $(GN_LIB_LDFLAGS) \
  75. -version-info 0:0:0
  76. libgnunetdns_la_SOURCES = \
  77. dns_api.c dns.h
  78. libgnunetdns_la_LIBADD = \
  79. $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
  80. libgnunetdns_la_LDFLAGS = \
  81. $(GN_LIB_LDFLAGS) \
  82. -version-info 0:0:0
  83. libgnunet_plugin_block_dns_la_SOURCES = \
  84. plugin_block_dns.c
  85. libgnunet_plugin_block_dns_la_LIBADD = \
  86. $(top_builddir)/src/util/libgnunetutil.la
  87. libgnunet_plugin_block_dns_la_LDFLAGS = \
  88. $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
  89. if ENABLE_TEST_RUN
  90. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
  91. TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
  92. endif
  93. EXTRA_DIST = \
  94. $(check_SCRIPTS)
  95. test_hexcoder_SOURCES = \
  96. test_hexcoder.c
  97. test_hexcoder_LDADD = \
  98. libgnunetdnsparser.la \
  99. $(top_builddir)/src/util/libgnunetutil.la