More API function tests...
[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 bin_PROGRAMS = \
21  gnunet-secretsharing-profiler
22
23 libexec_PROGRAMS = \
24  gnunet-service-secretsharing
25
26 lib_LTLIBRARIES = \
27   libgnunetsecretsharing.la
28
29
30 gnunet_secretsharing_profiler_SOURCES = \
31  gnunet-secretsharing-profiler.c
32 gnunet_secretsharing_profiler_LDADD = \
33   libgnunetsecretsharing.la \
34   $(top_builddir)/src/testbed/libgnunettestbed.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL)
37
38 gnunet_service_secretsharing_SOURCES = \
39  gnunet-service-secretsharing.c \
40  secretsharing_common.c \
41  secretsharing_protocol.h
42 gnunet_service_secretsharing_CFLAGS = $(AM_CFLAGS)
43 gnunet_service_secretsharing_LDADD = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/consensus/libgnunetconsensus.la \
46   $(LIBGCRYPT_LIBS) \
47   $(GN_LIBINTL)
48
49 libgnunetsecretsharing_la_SOURCES = \
50   secretsharing_api.c \
51   secretsharing_common.c \
52   secretsharing.h
53 libgnunetsecretsharing_la_LIBADD = \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(LTLIBINTL)
56 libgnunetsecretsharing_la_LDFLAGS = \
57   $(GN_LIB_LDFLAGS)
58
59 check_PROGRAMS = \
60  test_secretsharing_api
61
62 if ENABLE_TEST_RUN
63 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
64 TESTS = $(check_PROGRAMS)
65 endif
66
67 test_secretsharing_api_SOURCES = \
68  test_secretsharing_api.c
69 test_secretsharing_api_LDADD = \
70   libgnunetsecretsharing.la \
71   $(top_builddir)/src/testing/libgnunettesting.la \
72   $(top_builddir)/src/util/libgnunetutil.la
73
74 EXTRA_DIST = \
75   test_secretsharing.conf
76