- notice
[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  strata_estimator.c
66 gnunet_service_consensus_LDADD = \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(top_builddir)/src/core/libgnunetcore.la \
69   $(top_builddir)/src/stream/libgnunetstream.la \
70   $(top_builddir)/src/mesh/libgnunetmesh.la \
71   $(GN_LIBINTL)
72
73 gnunet_service_evil_consensus_SOURCES = \
74  gnunet-service-consensus.c \
75  ibf.c \
76  strata_estimator.c
77 gnunet_service_evil_consensus_LDADD = \
78   $(top_builddir)/src/util/libgnunetutil.la \
79   $(top_builddir)/src/core/libgnunetcore.la \
80   $(top_builddir)/src/stream/libgnunetstream.la \
81   $(top_builddir)/src/mesh/libgnunetmesh.la \
82   $(GN_LIBINTL)
83 gnunet_service_evil_consensus_CFLAGS = -DEVIL
84
85 libgnunetconsensus_la_SOURCES = \
86   consensus_api.c
87 libgnunetconsensus_la_LIBADD = \
88   $(top_builddir)/src/util/libgnunetutil.la \
89   $(LTLIBINTL)
90 libgnunetconsensus_la_LDFLAGS = \
91   $(GN_LIB_LDFLAGS)
92
93 check_PROGRAMS = \
94  test_consensus_api
95
96 if ENABLE_TEST_RUN
97 TESTS = $(check_PROGRAMS)
98 endif
99
100 test_consensus_api_SOURCES = \
101  test_consensus_api.c
102 test_consensus_api_LDADD = \
103   $(top_builddir)/src/util/libgnunetutil.la \
104   $(top_builddir)/src/testing/libgnunettesting.la \
105   $(top_builddir)/src/consensus/libgnunetconsensus.la
106
107 EXTRA_DIST = \
108   test_consensus.conf
109