Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. consensus.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. libexec_PROGRAMS = \
  15. gnunet-service-consensus
  16. if ENABLE_MALICIOUS
  17. libexec_PROGRAMS += \
  18. gnunet-service-evil-consensus
  19. endif
  20. do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
  21. SUFFIXES = .py.in .py
  22. .py.in.py:
  23. $(do_subst) < $< > $@
  24. chmod +x $@
  25. check-python-style:
  26. flake8 consensus-simulation.py.in
  27. lib_LTLIBRARIES = \
  28. libgnunetconsensus.la
  29. gnunet_consensus_profiler_SOURCES = \
  30. gnunet-consensus-profiler.c
  31. gnunet_consensus_profiler_LDADD = \
  32. $(top_builddir)/src/util/libgnunetutil.la \
  33. libgnunetconsensus.la \
  34. $(top_builddir)/src/testbed/libgnunettestbed.la \
  35. $(GN_LIBINTL)
  36. gnunet_service_consensus_SOURCES = \
  37. gnunet-service-consensus.c
  38. gnunet_service_consensus_LDADD = \
  39. $(top_builddir)/src/util/libgnunetutil.la \
  40. $(top_builddir)/src/core/libgnunetcore.la \
  41. $(top_builddir)/src/set/libgnunetset.la \
  42. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  43. $(GN_LIBINTL)
  44. gnunet_service_evil_consensus_SOURCES = \
  45. gnunet-service-consensus.c \
  46. consensus_protocol.h
  47. gnunet_service_evil_consensus_LDADD = \
  48. $(top_builddir)/src/util/libgnunetutil.la \
  49. $(top_builddir)/src/core/libgnunetcore.la \
  50. $(top_builddir)/src/set/libgnunetset.la \
  51. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  52. $(GN_LIBINTL)
  53. gnunet_service_evil_consensus_CFLAGS = -DEVIL
  54. libgnunetconsensus_la_SOURCES = \
  55. consensus_api.c \
  56. consensus.h
  57. libgnunetconsensus_la_LIBADD = \
  58. $(top_builddir)/src/util/libgnunetutil.la \
  59. $(LTLIBINTL)
  60. libgnunetconsensus_la_LDFLAGS = \
  61. $(GN_LIB_LDFLAGS)
  62. plugin_LTLIBRARIES = \
  63. libgnunet_plugin_block_consensus.la
  64. libgnunet_plugin_block_consensus_la_SOURCES = \
  65. plugin_block_consensus.c
  66. libgnunet_plugin_block_consensus_la_LIBADD = \
  67. $(top_builddir)/src/block/libgnunetblock.la \
  68. $(top_builddir)/src/block/libgnunetblockgroup.la \
  69. $(top_builddir)/src/util/libgnunetutil.la \
  70. $(LTLIBINTL)
  71. libgnunet_plugin_block_consensus_la_LDFLAGS = \
  72. $(GN_PLUGIN_LDFLAGS)
  73. if HAVE_TESTING
  74. bin_PROGRAMS = \
  75. gnunet-consensus-profiler
  76. check_PROGRAMS = \
  77. test_consensus_api
  78. if ENABLE_TEST_RUN
  79. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  80. TESTS = $(check_PROGRAMS)
  81. endif
  82. endif
  83. test_consensus_api_SOURCES = \
  84. test_consensus_api.c
  85. test_consensus_api_LDADD = \
  86. $(top_builddir)/src/util/libgnunetutil.la \
  87. $(top_builddir)/src/testing/libgnunettesting.la \
  88. libgnunetconsensus.la
  89. noinst_SCRIPTS = \
  90. consensus-simulation.py
  91. CLEANFILES = \
  92. $(noinst_SCRIPTS)
  93. EXTRA_DIST = \
  94. test_consensus.conf \
  95. consensus-simulation.py.in