- refactor kx sending, unify under send_kx
[oweals/gnunet.git] / src / consensus / Makefile.am
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 pkgcfg_DATA = \
9   consensus.conf
10
11 if MINGW
12  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
13 endif
14
15 if USE_COVERAGE
16   AM_CFLAGS = -fprofile-arcs -ftest-coverage
17 endif
18
19 bin_PROGRAMS = \
20  gnunet-consensus-profiler
21
22 libexec_PROGRAMS = \
23  gnunet-service-consensus
24
25 # FIXME: add option "configure --with-evil"?
26 if HAVE_EXPERIMENTAL
27 libexec_PROGRAMS += \
28  gnunet-service-evil-consensus
29 endif
30
31 lib_LTLIBRARIES = \
32   libgnunetconsensus.la
33
34 gnunet_consensus_profiler_SOURCES = \
35  gnunet-consensus-profiler.c
36 gnunet_consensus_profiler_LDADD = \
37   $(top_builddir)/src/util/libgnunetutil.la \
38   libgnunetconsensus.la \
39   $(top_builddir)/src/testbed/libgnunettestbed.la \
40   $(GN_LIBINTL)
41
42 gnunet_service_consensus_SOURCES = \
43  gnunet-service-consensus.c
44 gnunet_service_consensus_LDADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/core/libgnunetcore.la \
47   $(top_builddir)/src/set/libgnunetset.la \
48   $(GN_LIBINTL)
49
50 gnunet_service_evil_consensus_SOURCES = \
51  gnunet-service-consensus.c \
52  consensus_protocol.h
53 gnunet_service_evil_consensus_LDADD = \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(top_builddir)/src/core/libgnunetcore.la \
56   $(top_builddir)/src/set/libgnunetset.la \
57   $(GN_LIBINTL)
58 gnunet_service_evil_consensus_CFLAGS = -DEVIL
59
60 libgnunetconsensus_la_SOURCES = \
61   consensus_api.c \
62   consensus.h
63 libgnunetconsensus_la_LIBADD = \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(LTLIBINTL)
66 libgnunetconsensus_la_LDFLAGS = \
67   $(GN_LIB_LDFLAGS)
68
69 check_PROGRAMS = \
70  test_consensus_api
71
72 if ENABLE_TEST_RUN
73 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
74 TESTS = $(check_PROGRAMS)
75 endif
76
77 test_consensus_api_SOURCES = \
78  test_consensus_api.c
79 test_consensus_api_LDADD = \
80   $(top_builddir)/src/util/libgnunetutil.la \
81   $(top_builddir)/src/testing/libgnunettesting.la \
82   libgnunetconsensus.la
83
84 EXTRA_DIST = \
85   test_consensus.conf
86