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