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