1beaa0c628eb82f80f668759435600bb80a16f24
[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 lib_LTLIBRARIES = \
27   libgnunetconsensus.la
28
29 gnunet_consensus_SOURCES = \
30  gnunet-consensus.c
31 gnunet_consensus_LDADD = \
32   $(top_builddir)/src/util/libgnunetutil.la \
33   $(top_builddir)/src/consensus/libgnunetconsensus.la \
34   $(GN_LIBINTL)
35 gnunet_consensus_DEPENDENCIES = \
36   libgnunetconsensus.la
37
38 gnunet_consensus_start_peers_SOURCES = \
39  gnunet-consensus-start-peers.c
40 gnunet_consensus_start_peers_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/testbed/libgnunettestbed.la \
43   $(top_builddir)/src/consensus/libgnunetconsensus.la \
44   $(GN_LIBINTL)
45 gnunet_consensus_start_peers_DEPENDENCIES = \
46   libgnunetconsensus.la
47
48 gnunet_consensus_ibf_SOURCES = \
49  gnunet-consensus-ibf.c \
50  ibf.c
51 gnunet_consensus_ibf_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(GN_LIBINTL)
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/mesh/libgnunetmesh.la \
61   $(GN_LIBINTL)
62
63 libgnunetconsensus_la_SOURCES = \
64   consensus_api.c
65 libgnunetconsensus_la_LIBADD = \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(LTLIBINTL)
68 libgnunetconsensus_la_LDFLAGS = \
69   $(GN_LIB_LDFLAGS)
70
71 check_PROGRAMS = \
72  test_consensus_api
73
74 if ENABLE_TEST_RUN
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   $(top_builddir)/src/consensus/libgnunetconsensus.la
84
85 EXTRA_DIST = \
86   test_consensus.conf
87