-must notify client on timeout
[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-alice \
23  gnunet-service-scalarproduct-bob
24
25 lib_LTLIBRARIES = \
26   libgnunetscalarproduct.la
27
28 gnunet_scalarproduct_SOURCES = \
29   gnunet-scalarproduct.c
30 gnunet_scalarproduct_LDADD = \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   libgnunetscalarproduct.la \
33   $(LIBGCRYPT_LIBS) \
34   -lgcrypt \
35   $(GN_LIBINTL)
36
37 gnunet_service_scalarproduct_alice_SOURCES = \
38   gnunet-service-scalarproduct.h \
39   gnunet-service-scalarproduct_alice.c
40 gnunet_service_scalarproduct_alice_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/cadet/libgnunetcadet.la \
43   $(top_builddir)/src/set/libgnunetset.la \
44   $(LIBGCRYPT_LIBS) \
45   -lgcrypt \
46   $(GN_LIBINTL)
47
48 gnunet_service_scalarproduct_bob_SOURCES = \
49   gnunet-service-scalarproduct.h \
50   gnunet-service-scalarproduct_bob.c gnunet-service-scalarproduct_bob.h
51 gnunet_service_scalarproduct_bob_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/cadet/libgnunetcadet.la \
54   $(top_builddir)/src/set/libgnunetset.la \
55   $(LIBGCRYPT_LIBS) \
56   -lgcrypt \
57   $(GN_LIBINTL)
58
59 libgnunetscalarproduct_la_SOURCES = \
60   scalarproduct_api.c \
61   scalarproduct.h
62 libgnunetscalarproduct_la_LIBADD = \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(top_builddir)/src/statistics/libgnunetstatistics.la \
65   $(LIBGCRYPT_LIBS) \
66   -lgcrypt \
67   $(LTLIBINTL)
68 libgnunetscalarproduct_la_LDFLAGS = \
69   $(GN_LIB_LDFLAGS)
70
71 EXTRA_DIST = \
72   test_scalarproduct.conf \
73   $(check_SCRIPTS)
74
75 check_SCRIPTS = \
76   test_scalarproduct.sh \
77   test_scalarproduct_negative.sh \
78   test_scalarproduct_negativezero.sh
79
80 if ENABLE_TEST_RUN
81   AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
82   TESTS = $(check_SCRIPTS)
83 endif