Makefile.am 2.1 KB

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