diff options
Diffstat (limited to 'src/consensus/Makefile.am')
-rw-r--r-- | src/consensus/Makefile.am | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/consensus/Makefile.am b/src/consensus/Makefile.am index c63434f94..c0205ee5d 100644 --- a/src/consensus/Makefile.am +++ b/src/consensus/Makefile.am | |||
@@ -5,6 +5,8 @@ pkgcfgdir= $(pkgdatadir)/config.d/ | |||
5 | 5 | ||
6 | libexecdir= $(pkglibdir)/libexec/ | 6 | libexecdir= $(pkglibdir)/libexec/ |
7 | 7 | ||
8 | plugindir = $(libdir)/gnunet | ||
9 | |||
8 | pkgcfg_DATA = \ | 10 | pkgcfg_DATA = \ |
9 | consensus.conf | 11 | consensus.conf |
10 | 12 | ||
@@ -16,8 +18,6 @@ if USE_COVERAGE | |||
16 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | 18 | AM_CFLAGS = -fprofile-arcs -ftest-coverage |
17 | endif | 19 | endif |
18 | 20 | ||
19 | bin_PROGRAMS = \ | ||
20 | gnunet-consensus-profiler | ||
21 | 21 | ||
22 | libexec_PROGRAMS = \ | 22 | libexec_PROGRAMS = \ |
23 | gnunet-service-consensus | 23 | gnunet-service-consensus |
@@ -67,13 +67,34 @@ libgnunetconsensus_la_LIBADD = \ | |||
67 | libgnunetconsensus_la_LDFLAGS = \ | 67 | libgnunetconsensus_la_LDFLAGS = \ |
68 | $(GN_LIB_LDFLAGS) | 68 | $(GN_LIB_LDFLAGS) |
69 | 69 | ||
70 | |||
71 | plugin_LTLIBRARIES = \ | ||
72 | libgnunet_plugin_block_consensus.la | ||
73 | |||
74 | libgnunet_plugin_block_consensus_la_SOURCES = \ | ||
75 | plugin_block_consensus.c | ||
76 | libgnunet_plugin_block_consensus_la_LIBADD = \ | ||
77 | $(top_builddir)/src/block/libgnunetblock.la \ | ||
78 | $(top_builddir)/src/block/libgnunetblockgroup.la \ | ||
79 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
80 | $(LTLIBINTL) | ||
81 | libgnunet_plugin_block_consensus_la_LDFLAGS = \ | ||
82 | $(GN_PLUGIN_LDFLAGS) | ||
83 | |||
84 | |||
85 | |||
86 | if HAVE_TESTING | ||
87 | bin_PROGRAMS = \ | ||
88 | gnunet-consensus-profiler | ||
89 | |||
70 | check_PROGRAMS = \ | 90 | check_PROGRAMS = \ |
71 | test_consensus_api | 91 | test_consensus_api |
72 | 92 | ||
73 | if ENABLE_TEST_RUN | 93 | if ENABLE_TEST_RUN |
74 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; | 94 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
75 | TESTS = $(check_PROGRAMS) | 95 | TESTS = $(check_PROGRAMS) |
76 | endif | 96 | endif |
97 | endif | ||
77 | 98 | ||
78 | test_consensus_api_SOURCES = \ | 99 | test_consensus_api_SOURCES = \ |
79 | test_consensus_api.c | 100 | test_consensus_api.c |