error handling
[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 USE_COVERAGE
12   AM_CFLAGS = -fprofile-arcs -ftest-coverage
13 endif
14
15 bin_PROGRAMS = \
16  gnunet-scalarproduct
17
18 libexec_PROGRAMS = \
19  gnunet-service-scalarproduct-alice \
20  gnunet-service-scalarproduct-bob \
21  gnunet-service-scalarproduct-ecc-alice \
22  gnunet-service-scalarproduct-ecc-bob
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_alice_SOURCES = \
37   gnunet-service-scalarproduct.h \
38   gnunet-service-scalarproduct_alice.c
39 gnunet_service_scalarproduct_alice_LDADD = \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(top_builddir)/src/cadet/libgnunetcadet.la \
42   $(top_builddir)/src/set/libgnunetset.la \
43   $(LIBGCRYPT_LIBS) \
44   -lgcrypt \
45   $(GN_LIBINTL)
46
47 gnunet_service_scalarproduct_bob_SOURCES = \
48   gnunet-service-scalarproduct.h \
49   gnunet-service-scalarproduct_bob.c
50 gnunet_service_scalarproduct_bob_LDADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/cadet/libgnunetcadet.la \
53   $(top_builddir)/src/set/libgnunetset.la \
54   $(LIBGCRYPT_LIBS) \
55   -lgcrypt \
56   $(GN_LIBINTL)
57
58 gnunet_service_scalarproduct_ecc_alice_SOURCES = \
59   gnunet-service-scalarproduct-ecc.h \
60   gnunet-service-scalarproduct-ecc_alice.c
61 gnunet_service_scalarproduct_ecc_alice_LDADD = \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   $(top_builddir)/src/cadet/libgnunetcadet.la \
64   $(top_builddir)/src/set/libgnunetset.la \
65   $(LIBGCRYPT_LIBS) \
66   -lgcrypt \
67   $(GN_LIBINTL)
68
69 gnunet_service_scalarproduct_ecc_bob_SOURCES = \
70   gnunet-service-scalarproduct-ecc.h \
71   gnunet-service-scalarproduct-ecc_bob.c
72 gnunet_service_scalarproduct_ecc_bob_LDADD = \
73   $(top_builddir)/src/util/libgnunetutil.la \
74   $(top_builddir)/src/cadet/libgnunetcadet.la \
75   $(top_builddir)/src/set/libgnunetset.la \
76   $(LIBGCRYPT_LIBS) \
77   -lgcrypt \
78   $(GN_LIBINTL)
79
80 libgnunetscalarproduct_la_SOURCES = \
81   scalarproduct_api.c \
82   scalarproduct.h
83 libgnunetscalarproduct_la_LIBADD = \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   $(top_builddir)/src/statistics/libgnunetstatistics.la \
86   $(LIBGCRYPT_LIBS) \
87   -lgcrypt \
88   $(LTLIBINTL)
89 libgnunetscalarproduct_la_LDFLAGS = \
90   $(GN_LIB_LDFLAGS)
91
92 EXTRA_DIST = \
93   test_scalarproduct.conf \
94   $(check_SCRIPTS)
95
96 check_SCRIPTS = \
97   test_scalarproduct.sh \
98   test_scalarproduct_negative.sh \
99   test_scalarproduct_negativezero.sh
100
101 check_PROGRAMS = \
102   test_ecc_scalarproduct
103
104 if ENABLE_TEST_RUN
105   AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
106   TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
107 endif
108
109
110 test_ecc_scalarproduct_SOURCES = \
111  test_ecc_scalarproduct.c
112 test_ecc_scalarproduct_LDADD = \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   -lgcrypt