Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  2. pkgcfgdir= $(pkgdatadir)/config.d/
  3. libexecdir= $(pkglibdir)/libexec/
  4. dist_pkgcfg_DATA = \
  5. hostlist.conf
  6. if USE_COVERAGE
  7. AM_CFLAGS = --coverage -O0
  8. endif
  9. if HAVE_MHD
  10. HOSTLIST_SERVER_SOURCES = \
  11. gnunet-daemon-hostlist_server.c gnunet-daemon-hostlist_server.h
  12. GN_LIBMHD = -lmicrohttpd
  13. endif
  14. if HAVE_LIBGNURL
  15. libexec_PROGRAMS = \
  16. gnunet-daemon-hostlist
  17. LIB_GNURL=@LIBGNURL@
  18. CPP_GNURL=@LIBGNURL_CPPFLAGS@
  19. else
  20. if HAVE_LIBCURL
  21. libexec_PROGRAMS = \
  22. gnunet-daemon-hostlist
  23. LIB_GNURL=@LIBCURL@
  24. CPP_GNURL=@LIBCURL_CPPFLAGS@
  25. endif
  26. endif
  27. gnunet_daemon_hostlist_SOURCES = \
  28. gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
  29. gnunet-daemon-hostlist_client.c gnunet-daemon-hostlist_client.h \
  30. $(HOSTLIST_SERVER_SOURCES)
  31. gnunet_daemon_hostlist_LDADD = \
  32. $(top_builddir)/src/core/libgnunetcore.la \
  33. $(top_builddir)/src/hello/libgnunethello.la \
  34. $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
  35. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  36. $(top_builddir)/src/transport/libgnunettransport.la \
  37. $(top_builddir)/src/util/libgnunetutil.la \
  38. $(GN_LIBMHD) \
  39. $(LIB_GNURL) \
  40. $(GN_LIBINTL)
  41. gnunet_daemon_hostlist_CPPFLAGS = \
  42. $(CPP_GNURL) \
  43. $(AM_CPPFLAGS)
  44. if HAVE_LIBGNURL
  45. check_PROGRAMS = \
  46. test_gnunet_daemon_hostlist \
  47. test_gnunet_daemon_hostlist_reconnect \
  48. test_gnunet_daemon_hostlist_learning
  49. if HAVE_MHD
  50. if ENABLE_TEST_RUN
  51. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
  52. TESTS = \
  53. test_gnunet_daemon_hostlist \
  54. test_gnunet_daemon_hostlist_reconnect \
  55. test_gnunet_daemon_hostlist_learning
  56. endif
  57. endif
  58. endif
  59. test_gnunet_daemon_hostlist_SOURCES = \
  60. test_gnunet_daemon_hostlist.c
  61. test_gnunet_daemon_hostlist_LDADD = \
  62. $(top_builddir)/src/transport/libgnunettransport.la \
  63. $(top_builddir)/src/util/libgnunetutil.la
  64. test_gnunet_daemon_hostlist_reconnect_SOURCES = \
  65. test_gnunet_daemon_hostlist_reconnect.c
  66. test_gnunet_daemon_hostlist_reconnect_LDADD = \
  67. $(top_builddir)/src/transport/libgnunettransport.la \
  68. $(top_builddir)/src/util/libgnunetutil.la
  69. test_gnunet_daemon_hostlist_learning_SOURCES = \
  70. test_gnunet_daemon_hostlist_learning.c
  71. test_gnunet_daemon_hostlist_learning_LDADD = \
  72. $(top_builddir)/src/transport/libgnunettransport.la \
  73. $(top_builddir)/src/core/libgnunetcore.la \
  74. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  75. $(top_builddir)/src/util/libgnunetutil.la
  76. EXTRA_DIST = \
  77. test_hostlist_defaults.conf \
  78. test_gnunet_daemon_hostlist_data.conf \
  79. test_gnunet_daemon_hostlist_peer1.conf \
  80. test_gnunet_daemon_hostlist_peer2.conf \
  81. test_learning_adv_peer.conf \
  82. test_learning_learn_peer.conf \
  83. test_learning_learn_peer2.conf \
  84. learning_data.conf