diff options
Diffstat (limited to 'src/contrib/service/scalarproduct/Makefile.am')
-rw-r--r-- | src/contrib/service/scalarproduct/Makefile.am | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/src/contrib/service/scalarproduct/Makefile.am b/src/contrib/service/scalarproduct/Makefile.am new file mode 100644 index 000000000..b12dbace5 --- /dev/null +++ b/src/contrib/service/scalarproduct/Makefile.am | |||
@@ -0,0 +1,117 @@ | |||
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/lib/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/lib/util/libgnunetutil.la \ | ||
41 | $(top_builddir)/src/service/cadet/libgnunetcadet.la \ | ||
42 | $(top_builddir)/src/service/seti/libgnunetseti.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/lib/util/libgnunetutil.la \ | ||
52 | $(top_builddir)/src/service/cadet/libgnunetcadet.la \ | ||
53 | $(top_builddir)/src/service/seti/libgnunetseti.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/lib/util/libgnunetutil.la \ | ||
63 | $(top_builddir)/src/service/cadet/libgnunetcadet.la \ | ||
64 | $(top_builddir)/src/service/seti/libgnunetseti.la \ | ||
65 | $(LIBGCRYPT_LIBS) \ | ||
66 | -lsodium \ | ||
67 | -lgcrypt \ | ||
68 | $(GN_LIBINTL) | ||
69 | |||
70 | gnunet_service_scalarproduct_ecc_bob_SOURCES = \ | ||
71 | gnunet-service-scalarproduct-ecc.h \ | ||
72 | gnunet-service-scalarproduct-ecc_bob.c | ||
73 | gnunet_service_scalarproduct_ecc_bob_LDADD = \ | ||
74 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
75 | $(top_builddir)/src/service/cadet/libgnunetcadet.la \ | ||
76 | $(top_builddir)/src/service/seti/libgnunetseti.la \ | ||
77 | $(LIBGCRYPT_LIBS) \ | ||
78 | -lsodium \ | ||
79 | -lgcrypt \ | ||
80 | $(GN_LIBINTL) | ||
81 | |||
82 | libgnunetscalarproduct_la_SOURCES = \ | ||
83 | scalarproduct_api.c \ | ||
84 | scalarproduct.h | ||
85 | libgnunetscalarproduct_la_LIBADD = \ | ||
86 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
87 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
88 | $(LIBGCRYPT_LIBS) \ | ||
89 | -lgcrypt \ | ||
90 | $(LTLIBINTL) | ||
91 | libgnunetscalarproduct_la_LDFLAGS = \ | ||
92 | $(GN_LIB_LDFLAGS) | ||
93 | |||
94 | EXTRA_DIST = \ | ||
95 | test_scalarproduct.conf \ | ||
96 | $(check_SCRIPTS) | ||
97 | |||
98 | # Need deprecated and removed testbed profiler | ||
99 | #check_SCRIPTS = \ | ||
100 | # test_scalarproduct.sh \ | ||
101 | # test_scalarproduct_negative.sh \ | ||
102 | # test_scalarproduct_negativezero.sh | ||
103 | |||
104 | check_PROGRAMS = \ | ||
105 | # test_ecc_scalarproduct | ||
106 | |||
107 | if ENABLE_TEST_RUN | ||
108 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
109 | TESTS = $(check_SCRIPTS) $(check_PROGRAMS) | ||
110 | endif | ||
111 | |||
112 | |||
113 | test_ecc_scalarproduct_SOURCES = \ | ||
114 | test_ecc_scalarproduct.c | ||
115 | test_ecc_scalarproduct_LDADD = \ | ||
116 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
117 | -lsodium | ||