[datastore] Combine put and update plugin APIs
[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   $(LIBGCRYPT_LIBS) \
53   $(LTLIBINTL)
54 libgnunetsecretsharing_la_LDFLAGS = \
55   $(GN_LIB_LDFLAGS)
56
57 if HAVE_TESTING
58 bin_PROGRAMS = \
59  gnunet-secretsharing-profiler
60
61 check_PROGRAMS = \
62  test_secretsharing_api
63
64 if ENABLE_TEST_RUN
65 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
66 TESTS = $(check_PROGRAMS)
67 endif
68 endif
69
70 test_secretsharing_api_SOURCES = \
71  test_secretsharing_api.c
72 test_secretsharing_api_LDADD = \
73   libgnunetsecretsharing.la \
74   $(top_builddir)/src/testing/libgnunettesting.la \
75   $(top_builddir)/src/util/libgnunetutil.la
76
77 EXTRA_DIST = \
78   test_secretsharing.conf