-enable evil
[oweals/gnunet.git] / src / consensus / Makefile.am
1 INCLUDES = -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 \
20  gnunet-consensus-start-peers \
21  gnunet-consensus-ibf
22
23 libexec_PROGRAMS = \
24  gnunet-service-consensus
25
26 # FIXME: add option "configure --with-evil"?
27 if HAVE_EXPERIMENTAL
28 libexec_PROGRAMS += \
29  gnunet-service-evil-consensus
30 endif
31
32 lib_LTLIBRARIES = \
33   libgnunetconsensus.la
34
35 gnunet_consensus_SOURCES = \
36  gnunet-consensus.c
37 gnunet_consensus_LDADD = \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(top_builddir)/src/consensus/libgnunetconsensus.la \
40   $(top_builddir)/src/testbed/libgnunettestbed.la \
41   $(GN_LIBINTL)
42 gnunet_consensus_DEPENDENCIES = \
43   libgnunetconsensus.la
44
45 gnunet_consensus_start_peers_SOURCES = \
46  gnunet-consensus-start-peers.c
47 gnunet_consensus_start_peers_LDADD = \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(top_builddir)/src/testbed/libgnunettestbed.la \
50   $(top_builddir)/src/consensus/libgnunetconsensus.la \
51   $(GN_LIBINTL)
52 gnunet_consensus_start_peers_DEPENDENCIES = \
53   libgnunetconsensus.la
54
55 gnunet_consensus_ibf_SOURCES = \
56  gnunet-consensus-ibf.c \
57  ibf.c
58 gnunet_consensus_ibf_LDADD = \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(GN_LIBINTL)
61
62 gnunet_service_consensus_SOURCES = \
63  gnunet-service-consensus.c \
64  ibf.c
65 gnunet_service_consensus_LDADD = \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/core/libgnunetcore.la \
68   $(top_builddir)/src/stream/libgnunetstream.la \
69   $(top_builddir)/src/mesh/libgnunetmesh.la \
70   $(GN_LIBINTL)
71
72 gnunet_service_evil_consensus_SOURCES = \
73  gnunet-service-consensus.c \
74  ibf.c
75 gnunet_service_evil_consensus_LDADD = \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(top_builddir)/src/core/libgnunetcore.la \
78   $(top_builddir)/src/stream/libgnunetstream.la \
79   $(top_builddir)/src/mesh/libgnunetmesh.la \
80   $(GN_LIBINTL)
81 gnunet_service_evil_consensus_CFLAGS = -DEVIL
82
83 libgnunetconsensus_la_SOURCES = \
84   consensus_api.c
85 libgnunetconsensus_la_LIBADD = \
86   $(top_builddir)/src/util/libgnunetutil.la \
87   $(LTLIBINTL)
88 libgnunetconsensus_la_LDFLAGS = \
89   $(GN_LIB_LDFLAGS)
90
91 check_PROGRAMS = \
92  test_consensus_api
93
94 if ENABLE_TEST_RUN
95 TESTS = $(check_PROGRAMS)
96 endif
97
98 test_consensus_api_SOURCES = \
99  test_consensus_api.c
100 test_consensus_api_LDADD = \
101   $(top_builddir)/src/util/libgnunetutil.la \
102   $(top_builddir)/src/testing/libgnunettesting.la \
103   $(top_builddir)/src/consensus/libgnunetconsensus.la
104
105 EXTRA_DIST = \
106   test_consensus.conf
107