diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-19 09:54:35 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-19 09:54:35 +0200 |
commit | 98c00bad3d29a80c514818615c224a29307400cc (patch) | |
tree | 75681e421f4aec753eb509c037ed6e353447cc73 /src/contrib/service/consensus/Makefile.am | |
parent | b7a1d4379ebcff1c878d068cbd8df34fd16d81d4 (diff) | |
download | gnunet-98c00bad3d29a80c514818615c224a29307400cc.tar.gz gnunet-98c00bad3d29a80c514818615c224a29307400cc.zip |
BUILD: Move set/consensus/secretsharing to contrib/service
Diffstat (limited to 'src/contrib/service/consensus/Makefile.am')
-rw-r--r-- | src/contrib/service/consensus/Makefile.am | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/src/contrib/service/consensus/Makefile.am b/src/contrib/service/consensus/Makefile.am new file mode 100644 index 000000000..69405b90e --- /dev/null +++ b/src/contrib/service/consensus/Makefile.am | |||
@@ -0,0 +1,106 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
5 | |||
6 | libexecdir= $(pkglibdir)/libexec/ | ||
7 | |||
8 | plugindir = $(libdir)/gnunet | ||
9 | |||
10 | pkgcfg_DATA = \ | ||
11 | consensus.conf | ||
12 | |||
13 | if USE_COVERAGE | ||
14 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | ||
15 | endif | ||
16 | |||
17 | |||
18 | libexec_PROGRAMS = \ | ||
19 | gnunet-service-consensus | ||
20 | |||
21 | if ENABLE_MALICIOUS | ||
22 | libexec_PROGRAMS += \ | ||
23 | gnunet-service-evil-consensus | ||
24 | endif | ||
25 | |||
26 | SUFFIXES = .py.in .py | ||
27 | |||
28 | .py.in.py: | ||
29 | $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $< > $@ | ||
30 | chmod +x $@ | ||
31 | |||
32 | check-python-style: | ||
33 | flake8 consensus-simulation.py.in | ||
34 | |||
35 | lib_LTLIBRARIES = \ | ||
36 | libgnunetconsensus.la | ||
37 | |||
38 | gnunet_service_consensus_SOURCES = \ | ||
39 | gnunet-service-consensus.c | ||
40 | gnunet_service_consensus_LDADD = \ | ||
41 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
42 | $(top_builddir)/src/service/core/libgnunetcore.la \ | ||
43 | $(top_builddir)/src/contrib/service/set/libgnunetset.la \ | ||
44 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
45 | $(GN_LIBINTL) | ||
46 | |||
47 | gnunet_service_evil_consensus_SOURCES = \ | ||
48 | gnunet-service-consensus.c \ | ||
49 | consensus_protocol.h | ||
50 | gnunet_service_evil_consensus_LDADD = \ | ||
51 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
52 | $(top_builddir)/src/service/core/libgnunetcore.la \ | ||
53 | $(top_builddir)/src/contrib/service/set/libgnunetset.la \ | ||
54 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
55 | $(GN_LIBINTL) | ||
56 | gnunet_service_evil_consensus_CFLAGS = -DEVIL | ||
57 | |||
58 | libgnunetconsensus_la_SOURCES = \ | ||
59 | consensus_api.c \ | ||
60 | consensus.h | ||
61 | libgnunetconsensus_la_LIBADD = \ | ||
62 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
63 | $(LTLIBINTL) | ||
64 | libgnunetconsensus_la_LDFLAGS = \ | ||
65 | $(GN_LIB_LDFLAGS) | ||
66 | |||
67 | |||
68 | plugin_LTLIBRARIES = \ | ||
69 | libgnunet_plugin_block_consensus.la | ||
70 | |||
71 | libgnunet_plugin_block_consensus_la_SOURCES = \ | ||
72 | plugin_block_consensus.c | ||
73 | libgnunet_plugin_block_consensus_la_LIBADD = \ | ||
74 | $(top_builddir)/src/lib/block/libgnunetblock.la \ | ||
75 | $(top_builddir)/src/lib/block/libgnunetblockgroup.la \ | ||
76 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
77 | $(LTLIBINTL) | ||
78 | libgnunet_plugin_block_consensus_la_LDFLAGS = \ | ||
79 | $(GN_PLUGIN_LDFLAGS) | ||
80 | |||
81 | |||
82 | |||
83 | check_PROGRAMS = \ | ||
84 | test_consensus_api | ||
85 | |||
86 | if ENABLE_TEST_RUN | ||
87 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
88 | TESTS = $(check_PROGRAMS) | ||
89 | endif | ||
90 | |||
91 | test_consensus_api_SOURCES = \ | ||
92 | test_consensus_api.c | ||
93 | test_consensus_api_LDADD = \ | ||
94 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
95 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
96 | libgnunetconsensus.la | ||
97 | |||
98 | noinst_SCRIPTS = \ | ||
99 | consensus-simulation.py | ||
100 | |||
101 | CLEANFILES = \ | ||
102 | $(noinst_SCRIPTS) | ||
103 | |||
104 | EXTRA_DIST = \ | ||
105 | test_consensus.conf \ | ||
106 | consensus-simulation.py.in | ||