-INCLUDES = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
pkgcfgdir= $(pkgdatadir)/config.d/
libexecdir= $(pkglibdir)/libexec/
pkgcfg_DATA = \
- vectorproduct.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
endif
bin_PROGRAMS = \
- gnunet-vectorproduct
+ gnunet-scalarproduct
libexec_PROGRAMS = \
- gnunet-service-vectorproduct
-
-# FIXME: add option "configure --with-evil"?
-#if HAVE_EXPERIMENTAL
-#libexec_PROGRAMS += \
-# gnunet-service-evil-consensus
-#endif
+ gnunet-service-scalarproduct
lib_LTLIBRARIES = \
- libgnunetvectorproduct.la
+ libgnunetscalarproduct.la
-gnunet_vectorproduct_SOURCES = \
- gnunet-vectorproduct.c
-gnunet_vectorproduct_LDADD = \
+gnunet_scalarproduct_SOURCES = \
+ gnunet-scalarproduct.c
+gnunet_scalarproduct_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \
+ $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
+ $(LIBGCRYPT_LIBS) \
-lgcrypt \
- $(GN_LIBINTL)
-gnunet_vectorproduct_DEPENDENCIES = \
- libgnunetvectorproduct.la
+ $(GN_LIBINTL)
+gnunet_scalarproduct_DEPENDENCIES = \
+ libgnunetscalarproduct.la
-gnunet_service_vectorproduct_SOURCES = \
- gnunet-service-vectorproduct.c
-gnunet_service_vectorproduct_LDADD = \
+gnunet_service_scalarproduct_SOURCES = \
+ gnunet-service-scalarproduct.c
+gnunet_service_scalarproduct_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/core/libgnunetcore.la \
$(top_builddir)/src/mesh/libgnunetmesh.la \
$(top_builddir)/src/set/libgnunetset.la \
+ $(LIBGCRYPT_LIBS) \
-lgcrypt \
$(GN_LIBINTL)
-libgnunetvectorproduct_la_SOURCES = \
- vectorproduct_api.c
-libgnunetvectorproduct_la_LIBADD = \
+libgnunetscalarproduct_la_SOURCES = \
+ scalarproduct_api.c \
+ scalarproduct.h
+libgnunetscalarproduct_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(LIBGCRYPT_LIBS) \
-lgcrypt \
$(LTLIBINTL)
-libgnunetvectorproduct_la_LDFLAGS = \
+libgnunetscalarproduct_la_LDFLAGS = \
$(GN_LIB_LDFLAGS)
-check_PROGRAMS = \
- test_vectorproduct_api_regression \
- test_vectorproduct_api \
- test_vectorproduct_api_4peers
-#FIXME unfinished
-#test_vectorproduct_api_regression2
+EXTRA_DIST = \
+ test_scalarproduct.conf \
+ $(check_SCRIPTS)
+
+check_SCRIPTS = \
+ test_scalarproduct.sh \
+ test_scalarproduct_negative.sh \
+ test_scalarproduct_negativezero.sh
if ENABLE_TEST_RUN
- TESTS = $(check_PROGRAMS)
+ TESTS_ENVIRONMENT=export GNUNET_PREFIX=@libdir@;export PATH=@prefix@/bin:$$PATH;
+ TESTS = $(check_SCRIPTS)
endif
-
-test_consensus_api_SOURCES = \
- test_consensus_api.c
-test_consensus_api_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/testing/libgnunettesting.la \
- $(top_builddir)/src/consensus/libgnunetconsensus.la
-
-test_vectorproduct_api_SOURCES = \
- test_vectorproduct_api.c
-test_vectorproduct_api_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \
- -lgcrypt
-
-#FIXME unfinished
-#test_vectorproduct_api_regression2_SOURCES = \
-# test_vectorproduct_api_regression2.c
-#test_vectorproduct_api_regression2_LDADD = \
-# $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \
-# $(top_builddir)/src/util/libgnunetutil.la \
-# -lgcrypt
-
-test_vectorproduct_api_regression_SOURCES = \
- test_vectorproduct_api_regression.c
-test_vectorproduct_api_regression_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \
- -lgcrypt
-
-test_vectorproduct_api_4peers_SOURCES = \
- test_vectorproduct_api_4peers.c
-test_vectorproduct_api_4peers_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/vectorproduct/libgnunetvectorproduct.la \
- -lgcrypt
-
-EXTRA_DIST = \
- test_vectorproduct.conf
-