Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. if USE_COVERAGE
  4. AM_CFLAGS = --coverage -O0
  5. XLIB = -lgcov
  6. endif
  7. pkgcfgdir= $(pkgdatadir)/config.d/
  8. libexecdir= $(pkglibdir)/libexec/
  9. pkgcfg_DATA = \
  10. nse.conf
  11. bin_PROGRAMS = gnunet-nse
  12. gnunet_nse_SOURCES = gnunet-nse.c
  13. gnunet_nse_LDADD = \
  14. libgnunetnse.la \
  15. $(top_builddir)/src/util/libgnunetutil.la \
  16. $(XLIB) $(GN_LIBINTL)
  17. lib_LTLIBRARIES = libgnunetnse.la
  18. libgnunetnse_la_SOURCES = \
  19. nse_api.c nse.h
  20. libgnunetnse_la_LIBADD = \
  21. $(top_builddir)/src/util/libgnunetutil.la \
  22. $(GN_LIBINTL) $(XLIB)
  23. libgnunetnse_la_LDFLAGS = \
  24. $(GN_LIB_LDFLAGS) \
  25. -version-info 0:0:0
  26. libexec_PROGRAMS = \
  27. gnunet-service-nse
  28. if HAVE_TESTING
  29. noinst_PROGRAMS = \
  30. gnunet-nse-profiler
  31. endif
  32. gnunet_nse_profiler_SOURCES = \
  33. gnunet-nse-profiler.c
  34. gnunet_nse_profiler_LDADD = -lm \
  35. libgnunetnse.la \
  36. $(top_builddir)/src/util/libgnunetutil.la \
  37. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  38. $(top_builddir)/src/testbed/libgnunettestbed.la \
  39. $(GN_LIBINTL)
  40. gnunet_service_nse_SOURCES = \
  41. gnunet-service-nse.c
  42. gnunet_service_nse_LDADD = \
  43. libgnunetnse.la \
  44. $(top_builddir)/src/util/libgnunetutil.la \
  45. $(top_builddir)/src/core/libgnunetcore.la \
  46. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  47. $(LIBGCRYPT_LIBS) \
  48. -lm -lgcrypt \
  49. $(GN_LIBINTL)
  50. if ENABLE_NSE_HISTOGRAM
  51. gnunet_service_nse_LDADD += \
  52. $(top_builddir)/src/testbed-logger/libgnunettestbedlogger.la
  53. endif
  54. if HAVE_BENCHMARKS
  55. MULTIPEER_TEST = test_nse_multipeer
  56. endif
  57. if HAVE_TESTING
  58. check_PROGRAMS = \
  59. test_nse_api \
  60. perf_kdf \
  61. $(MULTIPEER_TEST)
  62. endif
  63. if ENABLE_TEST_RUN
  64. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  65. TESTS = $(check_PROGRAMS)
  66. endif
  67. test_nse_api_SOURCES = \
  68. test_nse_api.c
  69. test_nse_api_LDADD = \
  70. libgnunetnse.la \
  71. $(top_builddir)/src/testing/libgnunettesting.la \
  72. $(top_builddir)/src/util/libgnunetutil.la
  73. test_nse_multipeer_SOURCES = \
  74. test_nse_multipeer.c
  75. test_nse_multipeer_LDADD = \
  76. libgnunetnse.la \
  77. $(top_builddir)/src/util/libgnunetutil.la \
  78. $(top_builddir)/src/testbed/libgnunettestbed.la \
  79. -lm
  80. perf_kdf_SOURCES = \
  81. perf_kdf.c
  82. perf_kdf_LDADD = \
  83. $(top_builddir)/src/util/libgnunetutil.la \
  84. $(LIBGCRYPT_LIBS) \
  85. -lgcrypt
  86. EXTRA_DIST = \
  87. test_nse.conf \
  88. nse_profiler_test.conf