-handle msg NULL
[oweals/gnunet.git] / src / scalarproduct / 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   scalarproduct.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-scalarproduct
20
21 libexec_PROGRAMS = \
22  gnunet-service-scalarproduct
23
24 lib_LTLIBRARIES = \
25   libgnunetscalarproduct.la
26
27 gnunet_scalarproduct_SOURCES = \
28   gnunet-scalarproduct.c
29 gnunet_scalarproduct_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   libgnunetscalarproduct.la \
32   $(LIBGCRYPT_LIBS) \
33   -lgcrypt \
34   $(GN_LIBINTL)
35
36 gnunet_service_scalarproduct_SOURCES = \
37   gnunet-service-scalarproduct.c
38 gnunet_service_scalarproduct_LDADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(top_builddir)/src/cadet/libgnunetcadet.la \
41   $(top_builddir)/src/set/libgnunetset.la \
42   $(LIBGCRYPT_LIBS) \
43   -lgcrypt \
44   $(GN_LIBINTL)
45
46 libgnunetscalarproduct_la_SOURCES = \
47   scalarproduct_api.c \
48   scalarproduct.h
49 libgnunetscalarproduct_la_LIBADD = \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(top_builddir)/src/statistics/libgnunetstatistics.la \
52   $(LIBGCRYPT_LIBS) \
53   -lgcrypt \
54   $(LTLIBINTL)
55 libgnunetscalarproduct_la_LDFLAGS = \
56   $(GN_LIB_LDFLAGS)
57
58 EXTRA_DIST = \
59   test_scalarproduct.conf \
60   $(check_SCRIPTS)
61
62 check_SCRIPTS = \
63   test_scalarproduct.sh \
64   test_scalarproduct_negative.sh \
65   test_scalarproduct_negativezero.sh
66
67 if ENABLE_TEST_RUN
68   AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
69   TESTS = $(check_SCRIPTS)
70 endif