More statistics.
[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 if HAVE_EXPERIMENTAL
26 if ENABLE_MALICIOUS
27 libexec_PROGRAMS += \
28  gnunet-service-evil-consensus
29 endif
30 endif
31
32 lib_LTLIBRARIES = \
33   libgnunetconsensus.la
34
35 gnunet_consensus_profiler_SOURCES = \
36  gnunet-consensus-profiler.c
37 gnunet_consensus_profiler_LDADD = \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   libgnunetconsensus.la \
40   $(top_builddir)/src/testbed/libgnunettestbed.la \
41   $(GN_LIBINTL)
42
43 gnunet_service_consensus_SOURCES = \
44  gnunet-service-consensus.c
45 gnunet_service_consensus_LDADD = \
46   $(top_builddir)/src/util/libgnunetutil.la \
47   $(top_builddir)/src/core/libgnunetcore.la \
48   $(top_builddir)/src/set/libgnunetset.la \
49   $(top_builddir)/src/statistics/libgnunetstatistics.la \
50   $(GN_LIBINTL)
51
52 gnunet_service_evil_consensus_SOURCES = \
53  gnunet-service-consensus.c \
54  consensus_protocol.h
55 gnunet_service_evil_consensus_LDADD = \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/core/libgnunetcore.la \
58   $(top_builddir)/src/set/libgnunetset.la \
59   $(top_builddir)/src/statistics/libgnunetstatistics.la \
60   $(GN_LIBINTL)
61 gnunet_service_evil_consensus_CFLAGS = -DEVIL
62
63 libgnunetconsensus_la_SOURCES = \
64   consensus_api.c \
65   consensus.h
66 libgnunetconsensus_la_LIBADD = \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(LTLIBINTL)
69 libgnunetconsensus_la_LDFLAGS = \
70   $(GN_LIB_LDFLAGS)
71
72 check_PROGRAMS = \
73  test_consensus_api
74
75 if ENABLE_TEST_RUN
76 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
77 TESTS = $(check_PROGRAMS)
78 endif
79
80 test_consensus_api_SOURCES = \
81  test_consensus_api.c
82 test_consensus_api_LDADD = \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(top_builddir)/src/testing/libgnunettesting.la \
85   libgnunetconsensus.la
86
87 EXTRA_DIST = \
88   test_consensus.conf