Makefile.am 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  2. if MINGW
  3. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  4. endif
  5. if USE_COVERAGE
  6. AM_CFLAGS = --coverage -O0
  7. endif
  8. pkgcfgdir= $(pkgdatadir)/config.d/
  9. libexecdir= $(pkglibdir)/libexec/
  10. plugindir = $(libdir)/gnunet
  11. dist_pkgcfg_DATA = \
  12. pt.conf
  13. libexec_PROGRAMS = \
  14. gnunet-daemon-pt
  15. gnunet_daemon_pt_SOURCES = \
  16. gnunet-daemon-pt.c
  17. gnunet_daemon_pt_LDADD = \
  18. $(top_builddir)/src/vpn/libgnunetvpn.la \
  19. $(top_builddir)/src/mesh/libgnunetmesh.la \
  20. $(top_builddir)/src/dht/libgnunetdht.la \
  21. $(top_builddir)/src/dns/libgnunetdns.la \
  22. $(top_builddir)/src/dns/libgnunetdnsparser.la \
  23. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  24. $(top_builddir)/src/util/libgnunetutil.la \
  25. $(GN_LIBINTL)
  26. if HAVE_TESTING
  27. if HAVE_MHD
  28. if HAVE_LIBGNURL
  29. if LINUX
  30. VPN_TEST = \
  31. test_gnunet_vpn-4_to_6 \
  32. test_gnunet_vpn-6_to_4 \
  33. test_gnunet_vpn-6_over \
  34. test_gnunet_vpn-4_over \
  35. test_gns_vpn
  36. endif
  37. if MINGW
  38. VPN_TEST = \
  39. test_gnunet_vpn-4_to_6 \
  40. test_gnunet_vpn-6_to_4 \
  41. test_gnunet_vpn-6_over \
  42. test_gnunet_vpn-4_over
  43. endif
  44. endif
  45. endif
  46. endif
  47. check_PROGRAMS = $(VPN_TEST)
  48. if ENABLE_TEST_RUN
  49. TESTS = $(check_PROGRAMS)
  50. endif
  51. EXTRA_DIST = \
  52. test_gnunet_vpn.conf \
  53. test_gns_vpn.conf
  54. test_gns_vpn_SOURCES = \
  55. test_gns_vpn.c
  56. test_gns_vpn_LDADD = -lmicrohttpd @LIBGNURL@ \
  57. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  58. $(top_builddir)/src/testing/libgnunettesting.la \
  59. $(top_builddir)/src/util/libgnunetutil.la
  60. test_gns_vpn_CPPFLAGS = \
  61. @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
  62. test_gnunet_vpn_4_over_SOURCES = \
  63. test_gnunet_vpn.c
  64. test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBGNURL@ \
  65. $(top_builddir)/src/vpn/libgnunetvpn.la \
  66. $(top_builddir)/src/testing/libgnunettesting.la \
  67. $(top_builddir)/src/util/libgnunetutil.la
  68. test_gnunet_vpn_4_over_CPPFLAGS = \
  69. @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
  70. test_gnunet_vpn_6_over_SOURCES = \
  71. test_gnunet_vpn.c
  72. test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBGNURL@ \
  73. $(top_builddir)/src/vpn/libgnunetvpn.la \
  74. $(top_builddir)/src/testing/libgnunettesting.la \
  75. $(top_builddir)/src/util/libgnunetutil.la
  76. test_gnunet_vpn_6_over_CPPFLAGS = \
  77. @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
  78. test_gnunet_vpn_4_to_6_SOURCES = \
  79. test_gnunet_vpn.c
  80. test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBGNURL@ \
  81. $(top_builddir)/src/vpn/libgnunetvpn.la \
  82. $(top_builddir)/src/testing/libgnunettesting.la \
  83. $(top_builddir)/src/util/libgnunetutil.la
  84. test_gnunet_vpn_4_to_6_CPPFLAGS = \
  85. @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
  86. test_gnunet_vpn_6_to_4_SOURCES = \
  87. test_gnunet_vpn.c
  88. test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBGNURL@ \
  89. $(top_builddir)/src/vpn/libgnunetvpn.la \
  90. $(top_builddir)/src/testing/libgnunettesting.la \
  91. $(top_builddir)/src/util/libgnunetutil.la
  92. test_gnunet_vpn_6_to_4_CPPFLAGS = \
  93. @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)