use -Wl on -no-undefined as it is a linker option:
[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
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   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
32   $(LIBGCRYPT_LIBS) \
33   -lgcrypt \
34   $(GN_LIBINTL)
35 gnunet_scalarproduct_DEPENDENCIES = \
36   libgnunetscalarproduct.la
37
38 gnunet_service_scalarproduct_SOURCES = \
39   gnunet-service-scalarproduct.c
40 gnunet_service_scalarproduct_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/mesh/libgnunetmesh.la \
43   $(top_builddir)/src/set/libgnunetset.la \
44   $(LIBGCRYPT_LIBS) \
45   -lgcrypt \
46   $(GN_LIBINTL)
47
48 libgnunetscalarproduct_la_SOURCES = \
49   scalarproduct_api.c \
50   scalarproduct.h
51 libgnunetscalarproduct_la_LIBADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   $(LIBGCRYPT_LIBS) \
55   -lgcrypt \
56   $(LTLIBINTL)
57 libgnunetscalarproduct_la_LDFLAGS = \
58   $(GN_LIB_LDFLAGS)
59
60 EXTRA_DIST = \
61   test_scalarproduct.conf \
62   $(check_SCRIPTS)
63
64 check_SCRIPTS = \
65   test_scalarproduct.sh \
66   test_scalarproduct_negative.sh \
67   test_scalarproduct_negativezero.sh
68
69 if ENABLE_TEST_RUN
70   TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
71   TESTS = $(check_SCRIPTS)
72 endif