- merge; service API change
[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  gnunet-service-scalarproduct-ecc-alice \
26  gnunet-service-scalarproduct-ecc-bob
27
28 lib_LTLIBRARIES = \
29   libgnunetscalarproduct.la
30
31 gnunet_scalarproduct_SOURCES = \
32   gnunet-scalarproduct.c
33 gnunet_scalarproduct_LDADD = \
34   $(top_builddir)/src/util/libgnunetutil.la \
35   libgnunetscalarproduct.la \
36   $(LIBGCRYPT_LIBS) \
37   -lgcrypt \
38   $(GN_LIBINTL)
39
40 gnunet_service_scalarproduct_alice_SOURCES = \
41   gnunet-service-scalarproduct.h \
42   gnunet-service-scalarproduct_alice.c
43 gnunet_service_scalarproduct_alice_LDADD = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/cadet/libgnunetcadet.la \
46   $(top_builddir)/src/set/libgnunetset.la \
47   $(LIBGCRYPT_LIBS) \
48   -lgcrypt \
49   $(GN_LIBINTL)
50
51 gnunet_service_scalarproduct_bob_SOURCES = \
52   gnunet-service-scalarproduct.h \
53   gnunet-service-scalarproduct_bob.c
54 gnunet_service_scalarproduct_bob_LDADD = \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(top_builddir)/src/cadet/libgnunetcadet.la \
57   $(top_builddir)/src/set/libgnunetset.la \
58   $(LIBGCRYPT_LIBS) \
59   -lgcrypt \
60   $(GN_LIBINTL)
61
62 gnunet_service_scalarproduct_ecc_alice_SOURCES = \
63   gnunet-service-scalarproduct-ecc.h \
64   gnunet-service-scalarproduct-ecc_alice.c
65 gnunet_service_scalarproduct_ecc_alice_LDADD = \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/cadet/libgnunetcadet.la \
68   $(top_builddir)/src/set/libgnunetset.la \
69   $(LIBGCRYPT_LIBS) \
70   -lgcrypt \
71   $(GN_LIBINTL)
72
73 gnunet_service_scalarproduct_ecc_bob_SOURCES = \
74   gnunet-service-scalarproduct-ecc.h \
75   gnunet-service-scalarproduct-ecc_bob.c
76 gnunet_service_scalarproduct_ecc_bob_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(top_builddir)/src/cadet/libgnunetcadet.la \
79   $(top_builddir)/src/set/libgnunetset.la \
80   $(LIBGCRYPT_LIBS) \
81   -lgcrypt \
82   $(GN_LIBINTL)
83
84 libgnunetscalarproduct_la_SOURCES = \
85   scalarproduct_api.c \
86   scalarproduct.h
87 libgnunetscalarproduct_la_LIBADD = \
88   $(top_builddir)/src/util/libgnunetutil.la \
89   $(top_builddir)/src/statistics/libgnunetstatistics.la \
90   $(LIBGCRYPT_LIBS) \
91   -lgcrypt \
92   $(LTLIBINTL)
93 libgnunetscalarproduct_la_LDFLAGS = \
94   $(GN_LIB_LDFLAGS)
95
96 EXTRA_DIST = \
97   test_scalarproduct.conf \
98   $(check_SCRIPTS)
99
100 check_SCRIPTS = \
101   test_scalarproduct.sh \
102   test_scalarproduct_negative.sh \
103   test_scalarproduct_negativezero.sh
104
105 check_PROGRAMS = \
106   test_ecc_scalarproduct
107
108 if ENABLE_TEST_RUN
109   AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
110   TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
111 endif
112
113
114 test_ecc_scalarproduct_SOURCES = \
115  test_ecc_scalarproduct.c
116 test_ecc_scalarproduct_LDADD = \
117   $(top_builddir)/src/util/libgnunetutil.la \
118   -lgcrypt