Makefile.am 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. INCLUDES = -I$(top_srcdir)/src/include
  2. if USE_COVERAGE
  3. AM_CFLAGS = --coverage -O0
  4. endif
  5. if HAVE_MHD
  6. HOSTLIST_SERVER_SOURCES = hostlist-server.c hostlist-server.h
  7. GN_LIBMHD = -lmicrohttpd
  8. endif
  9. bin_PROGRAMS = \
  10. gnunet-daemon-hostlist
  11. gnunet_daemon_hostlist_SOURCES = \
  12. gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
  13. hostlist-client.c hostlist-client.h \
  14. $(HOSTLIST_SERVER_SOURCES)
  15. gnunet_daemon_hostlist_LDADD = \
  16. $(top_builddir)/src/core/libgnunetcore.la \
  17. $(top_builddir)/src/hello/libgnunethello.la \
  18. $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
  19. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  20. $(top_builddir)/src/transport/libgnunettransport.la \
  21. $(top_builddir)/src/util/libgnunetutil.la \
  22. $(GN_LIBMHD) \
  23. @LIBCURL@ \
  24. $(GN_LIBINTL)
  25. gnunet_daemon_hostlist_CPPFLAGS = \
  26. @LIBCURL_CPPFLAGS@
  27. check_PROGRAMS = \
  28. test_gnunet_daemon_hostlist \
  29. test_gnunet_daemon_hostlist_reconnect \
  30. test_gnunet_daemon_hostlist_learning
  31. if HAVE_MHD
  32. if ENABLE_TEST_RUN
  33. TESTS = \
  34. test_gnunet_daemon_hostlist \
  35. test_gnunet_daemon_hostlist_reconnect \
  36. test_gnunet_daemon_hostlist_learning
  37. endif
  38. endif
  39. test_gnunet_daemon_hostlist_SOURCES = \
  40. test_gnunet_daemon_hostlist.c
  41. test_gnunet_daemon_hostlist_LDADD = \
  42. $(top_builddir)/src/transport/libgnunettransport.la \
  43. $(top_builddir)/src/util/libgnunetutil.la
  44. test_gnunet_daemon_hostlist_reconnect_SOURCES = \
  45. test_gnunet_daemon_hostlist_reconnect.c
  46. test_gnunet_daemon_hostlist_reconnect_LDADD = \
  47. $(top_builddir)/src/transport/libgnunettransport.la \
  48. $(top_builddir)/src/util/libgnunetutil.la
  49. test_gnunet_daemon_hostlist_learning_SOURCES = \
  50. test_gnunet_daemon_hostlist_learning.c
  51. test_gnunet_daemon_hostlist_learning_LDADD = \
  52. $(top_builddir)/src/transport/libgnunettransport.la \
  53. $(top_builddir)/src/core/libgnunetcore.la \
  54. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  55. $(top_builddir)/src/util/libgnunetutil.la
  56. EXTRA_DIST = \
  57. test_hostlist_defaults.conf \
  58. test_gnunet_daemon_hostlist_data.conf \
  59. test_gnunet_daemon_hostlist_peer1.conf \
  60. test_gnunet_daemon_hostlist_peer2.conf \
  61. test_learning_adv_peer.conf \
  62. test_learning_learn_peer.conf \
  63. test_learning_learn_peer2.conf \
  64. learning_data.conf