fix #3284: support lib/MULTIARCH/ paths in installation, use GNUNET_PREFIX=@libdir...
[oweals/gnunet.git] / src / scalarproduct / Makefile.am
index 4bfdfcd7d0c59730fe2a8ff997eec9c9903c9a78..010d7ebfa79eec385cb1db14aaf94b0e0440667d 100644 (file)
@@ -5,10 +5,10 @@ pkgcfgdir= $(pkgdatadir)/config.d/
 libexecdir= $(pkglibdir)/libexec/
 
 pkgcfg_DATA = \
-  scalarproduct.conf 
+  scalarproduct.conf
 
 if MINGW
- WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
+ WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
 endif
 
 if USE_COVERAGE
@@ -29,8 +29,9 @@ gnunet_scalarproduct_SOURCES = \
 gnunet_scalarproduct_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
-  $(GN_LIBINTL) 
+  $(GN_LIBINTL)
 gnunet_scalarproduct_DEPENDENCIES = \
   libgnunetscalarproduct.la
 
@@ -40,14 +41,17 @@ gnunet_service_scalarproduct_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/mesh/libgnunetmesh.la \
   $(top_builddir)/src/set/libgnunetset.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
   $(GN_LIBINTL)
 
 libgnunetscalarproduct_la_SOURCES = \
-  scalarproduct_api.c 
+  scalarproduct_api.c \
+  scalarproduct.h
 libgnunetscalarproduct_la_LIBADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
   $(LTLIBINTL)
 libgnunetscalarproduct_la_LDFLAGS = \
@@ -61,7 +65,8 @@ check_SCRIPTS = \
   test_scalarproduct.sh \
   test_scalarproduct_negative.sh \
   test_scalarproduct_negativezero.sh
-  
+
 if ENABLE_TEST_RUN
+  TESTS_ENVIRONMENT=export GNUNET_PREFIX=@libdir@;export PATH=@prefix@/bin:$$PATH;
   TESTS = $(check_SCRIPTS)
 endif