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