add completion callback for overlay topology configure functions
[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   $(top_builddir)/src/testbed/libgnunettestbed.la \
35   $(GN_LIBINTL)
36 gnunet_consensus_DEPENDENCIES = \
37   libgnunetconsensus.la
38
39 gnunet_consensus_start_peers_SOURCES = \
40  gnunet-consensus-start-peers.c
41 gnunet_consensus_start_peers_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/testbed/libgnunettestbed.la \
44   $(top_builddir)/src/consensus/libgnunetconsensus.la \
45   $(GN_LIBINTL)
46 gnunet_consensus_start_peers_DEPENDENCIES = \
47   libgnunetconsensus.la
48
49 gnunet_consensus_ibf_SOURCES = \
50  gnunet-consensus-ibf.c \
51  ibf.c
52 gnunet_consensus_ibf_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(GN_LIBINTL)
55
56 gnunet_service_consensus_SOURCES = \
57  gnunet-service-consensus.c \
58  ibf.c
59 gnunet_service_consensus_LDADD = \
60   $(top_builddir)/src/util/libgnunetutil.la \
61   $(top_builddir)/src/core/libgnunetcore.la \
62   $(top_builddir)/src/stream/libgnunetstream.la \
63   $(top_builddir)/src/mesh/libgnunetmesh.la \
64   $(GN_LIBINTL)
65
66 libgnunetconsensus_la_SOURCES = \
67   consensus_api.c
68 libgnunetconsensus_la_LIBADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(LTLIBINTL)
71 libgnunetconsensus_la_LDFLAGS = \
72   $(GN_LIB_LDFLAGS)
73
74 check_PROGRAMS = \
75  test_consensus_api
76
77 if ENABLE_TEST_RUN
78 TESTS = $(check_PROGRAMS)
79 endif
80
81 test_consensus_api_SOURCES = \
82  test_consensus_api.c
83 test_consensus_api_LDADD = \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   $(top_builddir)/src/testing/libgnunettesting.la \
86   $(top_builddir)/src/consensus/libgnunetconsensus.la
87
88 EXTRA_DIST = \
89   test_consensus.conf
90