- formatting
[oweals/gnunet.git] / src / consensus / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   consensus.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = -fprofile-arcs -ftest-coverage
16 endif
17
18 bin_PROGRAMS = \
19  gnunet-consensus-profiler
20
21 libexec_PROGRAMS = \
22  gnunet-service-consensus
23
24 # FIXME: add option "configure --with-evil"?
25 if HAVE_EXPERIMENTAL
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   $(top_builddir)/src/consensus/libgnunetconsensus.la \
38   $(top_builddir)/src/testbed/libgnunettestbed.la \
39   $(GN_LIBINTL)
40 gnunet_consensus_profiler_DEPENDENCIES = \
41   libgnunetconsensus.la
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/mesh/libgnunetmesh.la \
49   $(top_builddir)/src/set/libgnunetset.la \
50   $(GN_LIBINTL)
51 gnunet_service_consensus_DEPENDENCIES = \
52   $(top_builddir)/src/set/libgnunetset.la
53
54 gnunet_service_evil_consensus_SOURCES = \
55  gnunet-service-consensus.c \
56  consensus_protocol.h
57 gnunet_service_evil_consensus_LDADD = \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(top_builddir)/src/core/libgnunetcore.la \
60   $(top_builddir)/src/mesh/libgnunetmesh.la \
61   $(top_builddir)/src/set/libgnunetset.la \
62   $(GN_LIBINTL)
63 gnunet_service_evil_consensus_DEPENDENCIES = \
64   $(top_builddir)/src/set/libgnunetset.la
65 gnunet_service_evil_consensus_CFLAGS = -DEVIL
66
67 libgnunetconsensus_la_SOURCES = \
68   consensus_api.c \
69   consensus.h
70 libgnunetconsensus_la_LIBADD = \
71   $(top_builddir)/src/util/libgnunetutil.la \
72   $(LTLIBINTL)
73 libgnunetconsensus_la_LDFLAGS = \
74   $(GN_LIB_LDFLAGS)
75
76 check_PROGRAMS = \
77  test_consensus_api
78
79 if ENABLE_TEST_RUN
80 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
81 TESTS = $(check_PROGRAMS)
82 endif
83
84 test_consensus_api_SOURCES = \
85  test_consensus_api.c
86 test_consensus_api_LDADD = \
87   $(top_builddir)/src/util/libgnunetutil.la \
88   $(top_builddir)/src/testing/libgnunettesting.la \
89   $(top_builddir)/src/consensus/libgnunetconsensus.la
90
91 EXTRA_DIST = \
92   test_consensus.conf
93