Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. plugindir = $(libdir)/gnunet
  6. pkgcfg_DATA = \
  7. peerinfo.conf
  8. if MINGW
  9. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
  10. endif
  11. if USE_COVERAGE
  12. AM_CFLAGS = --coverage -O0
  13. XLIB = -lgcov
  14. endif
  15. lib_LTLIBRARIES = libgnunetpeerinfo.la
  16. libgnunetpeerinfo_la_SOURCES = \
  17. peerinfo_api.c peerinfo.h \
  18. peerinfo_api_notify.c
  19. libgnunetpeerinfo_la_LIBADD = \
  20. $(top_builddir)/src/hello/libgnunethello.la \
  21. $(top_builddir)/src/util/libgnunetutil.la \
  22. $(XLIB) \
  23. $(LTLIBINTL)
  24. libgnunetpeerinfo_la_LDFLAGS = \
  25. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  26. -version-info 0:0:0
  27. libexec_PROGRAMS = \
  28. gnunet-service-peerinfo
  29. gnunet_service_peerinfo_SOURCES = \
  30. gnunet-service-peerinfo.c
  31. gnunet_service_peerinfo_LDADD = \
  32. $(top_builddir)/src/hello/libgnunethello.la \
  33. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  34. $(top_builddir)/src/util/libgnunetutil.la
  35. if HAVE_BENCHMARKS
  36. PEERINFO_BENCHMARKS = \
  37. perf_peerinfo_api
  38. endif
  39. if HAVE_TESTING
  40. check_PROGRAMS = \
  41. test_peerinfo_shipped_hellos \
  42. test_peerinfo_api \
  43. test_peerinfo_api_friend_only \
  44. test_peerinfo_api_notify_friend_only \
  45. $(PEERINFO_BENCHMARKS)
  46. endif
  47. if ENABLE_TEST_RUN
  48. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  49. TESTS = $(check_PROGRAMS)
  50. endif
  51. test_peerinfo_shipped_hellos_SOURCES = \
  52. test_peerinfo_shipped_hellos.c
  53. test_peerinfo_shipped_hellos_LDADD = \
  54. $(top_builddir)/src/hello/libgnunethello.la \
  55. libgnunetpeerinfo.la \
  56. $(top_builddir)/src/testing/libgnunettesting.la \
  57. $(top_builddir)/src/util/libgnunetutil.la
  58. test_peerinfo_api_SOURCES = \
  59. test_peerinfo_api.c
  60. test_peerinfo_api_LDADD = \
  61. $(top_builddir)/src/hello/libgnunethello.la \
  62. libgnunetpeerinfo.la \
  63. $(top_builddir)/src/testing/libgnunettesting.la \
  64. $(top_builddir)/src/util/libgnunetutil.la
  65. test_peerinfo_api_friend_only_SOURCES = \
  66. test_peerinfo_api_friend_only.c
  67. test_peerinfo_api_friend_only_LDADD = \
  68. $(top_builddir)/src/hello/libgnunethello.la \
  69. libgnunetpeerinfo.la \
  70. $(top_builddir)/src/testing/libgnunettesting.la \
  71. $(top_builddir)/src/util/libgnunetutil.la
  72. test_peerinfo_api_notify_friend_only_SOURCES = \
  73. test_peerinfo_api_notify_friend_only.c
  74. test_peerinfo_api_notify_friend_only_LDADD = \
  75. $(top_builddir)/src/hello/libgnunethello.la \
  76. libgnunetpeerinfo.la \
  77. $(top_builddir)/src/testing/libgnunettesting.la \
  78. $(top_builddir)/src/util/libgnunetutil.la
  79. perf_peerinfo_api_SOURCES = \
  80. perf_peerinfo_api.c
  81. perf_peerinfo_api_LDADD = \
  82. $(top_builddir)/src/hello/libgnunethello.la \
  83. libgnunetpeerinfo.la \
  84. $(top_builddir)/src/testing/libgnunettesting.la \
  85. $(top_builddir)/src/util/libgnunetutil.la
  86. EXTRA_DIST = \
  87. test_peerinfo_api_data.conf