-bringing copyright tags up to FSF standard
[oweals/gnunet.git] / src / consensus / Makefile.am
1 AM_CPPFLAGS = -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-profiler
20
21 libexec_PROGRAMS = \
22  gnunet-service-consensus
23
24 # FIXME: add option "configure --with-evil"?
25 if HAVE_EXPERIMENTAL
26 libexec_PROGRAMS += \
27  gnunet-service-evil-consensus
28 endif
29
30 lib_LTLIBRARIES = \
31   libgnunetconsensus.la
32
33 gnunet_consensus_profiler_SOURCES = \
34  gnunet-consensus-profiler.c
35 gnunet_consensus_profiler_LDADD = \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   libgnunetconsensus.la \
38   $(top_builddir)/src/testbed/libgnunettestbed.la \
39   $(GN_LIBINTL)
40
41 gnunet_service_consensus_SOURCES = \
42  gnunet-service-consensus.c
43 gnunet_service_consensus_LDADD = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/core/libgnunetcore.la \
46   $(top_builddir)/src/set/libgnunetset.la \
47   $(GN_LIBINTL)
48
49 gnunet_service_evil_consensus_SOURCES = \
50  gnunet-service-consensus.c \
51  consensus_protocol.h
52 gnunet_service_evil_consensus_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/core/libgnunetcore.la \
55   $(top_builddir)/src/set/libgnunetset.la \
56   $(GN_LIBINTL)
57 gnunet_service_evil_consensus_CFLAGS = -DEVIL
58
59 libgnunetconsensus_la_SOURCES = \
60   consensus_api.c \
61   consensus.h
62 libgnunetconsensus_la_LIBADD = \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(LTLIBINTL)
65 libgnunetconsensus_la_LDFLAGS = \
66   $(GN_LIB_LDFLAGS)
67
68 check_PROGRAMS = \
69  test_consensus_api
70
71 if ENABLE_TEST_RUN
72 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
73 TESTS = $(check_PROGRAMS)
74 endif
75
76 test_consensus_api_SOURCES = \
77  test_consensus_api.c
78 test_consensus_api_LDADD = \
79   $(top_builddir)/src/util/libgnunetutil.la \
80   $(top_builddir)/src/testing/libgnunettesting.la \
81   libgnunetconsensus.la
82
83 EXTRA_DIST = \
84   test_consensus.conf
85