You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

80 lines
1.8 KiB

  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include \
  3. $(GNUNET_CPPFLAGS)
  4. pkgcfgdir= $(pkgdatadir)/config.d/
  5. libexecdir= $(pkglibdir)/libexec/
  6. pkgcfg_DATA = \
  7. multicast.conf
  8. if MINGW
  9. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  10. endif
  11. if USE_COVERAGE
  12. AM_CFLAGS = -fprofile-arcs -ftest-coverage
  13. endif
  14. lib_LTLIBRARIES = libgnunetmulticast.la
  15. libgnunetmulticast_la_SOURCES = \
  16. multicast_api.c multicast.h
  17. libgnunetmulticast_la_LIBADD = \
  18. -lgnunetutil \
  19. $(GN_LIBINTL) $(XLIB)
  20. libgnunetmulticast_la_LDFLAGS = \
  21. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  22. -version-info 0:0:0
  23. bin_PROGRAMS = \
  24. gnunet-multicast
  25. libexec_PROGRAMS = \
  26. gnunet-service-multicast \
  27. $(EXP_LIBEXEC)
  28. gnunet_multicast_SOURCES = \
  29. gnunet-multicast.c
  30. gnunet_multicast_LDADD = \
  31. -lgnunetutil \
  32. $(GN_LIBINTL)
  33. gnunet_service_multicast_SOURCES = \
  34. gnunet-service-multicast.c
  35. gnunet_service_multicast_LDADD = \
  36. -lgnunetutil \
  37. -lgnunetcadet \
  38. -lgnunetstatistics \
  39. $(GN_LIBINTL)
  40. check_PROGRAMS = \
  41. test_multicast \
  42. test_multicast_multipeer_star \
  43. test_multicast_multipeer_line
  44. if ENABLE_TEST_RUN
  45. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@}; export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; unset XDG_DATA_HOME; unset XDG_CONFIG_HOME;
  46. TESTS = $(check_PROGRAMS)
  47. endif
  48. test_multicast_SOURCES = \
  49. test_multicast.c
  50. test_multicast_LDADD = \
  51. libgnunetmulticast.la \
  52. -lgnunettesting \
  53. -lgnunetutil
  54. test_multicast_multipeer_star_SOURCES = \
  55. test_multicast_multipeer.c
  56. test_multicast_multipeer_star_LDADD = \
  57. libgnunetmulticast.la \
  58. -lgnunettestbed \
  59. -lgnunetutil
  60. test_multicast_multipeer_line_SOURCES = \
  61. test_multicast_multipeer.c
  62. test_multicast_multipeer_line_LDADD = \
  63. libgnunetmulticast.la \
  64. -lgnunettestbed \
  65. -lgnunetutil