note about performance issue, indentation fix
[oweals/gnunet.git] / src / secretsharing / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 pkgcfg_DATA = \
9   secretsharing.conf
10
11 if MINGW
12  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
13 endif
14
15 if USE_COVERAGE
16   AM_CFLAGS = -fprofile-arcs -ftest-coverage
17 endif
18
19
20 libexec_PROGRAMS = \
21  gnunet-service-secretsharing
22
23 lib_LTLIBRARIES = \
24   libgnunetsecretsharing.la
25
26
27 gnunet_secretsharing_profiler_SOURCES = \
28  gnunet-secretsharing-profiler.c
29 gnunet_secretsharing_profiler_LDADD = \
30   libgnunetsecretsharing.la \
31   $(top_builddir)/src/testbed/libgnunettestbed.la \
32   $(top_builddir)/src/util/libgnunetutil.la \
33   $(GN_LIBINTL)
34
35 gnunet_service_secretsharing_SOURCES = \
36  gnunet-service-secretsharing.c \
37  secretsharing_common.c \
38  secretsharing_protocol.h
39 gnunet_service_secretsharing_CFLAGS = $(AM_CFLAGS)
40 gnunet_service_secretsharing_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/consensus/libgnunetconsensus.la \
43   $(LIBGCRYPT_LIBS) \
44   $(GN_LIBINTL)
45
46 libgnunetsecretsharing_la_SOURCES = \
47   secretsharing_api.c \
48   secretsharing_common.c \
49   secretsharing.h
50 libgnunetsecretsharing_la_LIBADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(LTLIBINTL)
53 libgnunetsecretsharing_la_LDFLAGS = \
54   $(GN_LIB_LDFLAGS)
55
56 if HAVE_TESTING
57 bin_PROGRAMS = \
58  gnunet-secretsharing-profiler
59
60 check_PROGRAMS = \
61  test_secretsharing_api
62
63 if ENABLE_TEST_RUN
64 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
65 TESTS = $(check_PROGRAMS)
66 endif
67 endif
68
69 test_secretsharing_api_SOURCES = \
70  test_secretsharing_api.c
71 test_secretsharing_api_LDADD = \
72   libgnunetsecretsharing.la \
73   $(top_builddir)/src/testing/libgnunettesting.la \
74   $(top_builddir)/src/util/libgnunetutil.la
75
76 EXTRA_DIST = \
77   test_secretsharing.conf