-lcomdlg32 -lgdi32 -liphlpapi
WINLIB = libgnunetutilwin.la
W32CAT = w32cat
+W32CONSOLEHELPER = gnunet-helper-w32-console
endif
if !MINGW
w32cat_SOURCES = w32cat.c
+gnunet_helper_w32_console_SOURCES = \
+ gnunet-helper-w32-console.c \
+ gnunet-helper-w32-console.h
+gnunet_helper_w32_console_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la
+gnunet_helper_w32_console_DEPENDENCIES = \
+ libgnunetutil.la
+
noinst_PROGRAMS = \
gnunet-config-diff \
$(W32CAT) \
crypto_hash.c \
crypto_hkdf.c \
crypto_kdf.c \
+ crypto_mpi.c \
+ crypto_paillier.c \
crypto_random.c \
disk.c \
disk.h \
signal.c \
strings.c \
time.c \
- speedup.c
+ speedup.c speedup.h
libgnunetutil_la_LIBADD = \
$(GCLIBADD) $(WINLIB) \
if HAVE_TESTING
GNUNET_ECC = gnunet-ecc
+ GNUNET_SCRYPT = gnunet-scrypt
endif
libexec_PROGRAMS = \
- gnunet-service-resolver
+ gnunet-service-resolver \
+ $(W32CONSOLEHELPER)
+
+bin_SCRIPTS =\
+ gnunet-qr
bin_PROGRAMS = \
gnunet-resolver \
gnunet-config \
$(GNUNET_ECC) \
+ $(GNUNET_SCRYPT) \
gnunet-uri
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+
+gnunet-qr: gnunet-qr.py.in Makefile
+ $(do_subst) < gnunet-qr.py.in > gnunet-qr
+ chmod +x gnunet-qr
gnunet_service_resolver_SOURCES = \
gnunet-service-resolver.c
gnunet_ecc_DEPENDENCIES = \
libgnunetutil.la
+gnunet_scrypt_SOURCES = \
+ gnunet-scrypt.c
+gnunet_scrypt_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(GN_LIBINTL) -lgcrypt
+gnunet_scrypt_DEPENDENCIES = \
+ libgnunetutil.la
+
gnunet_config_SOURCES = \
gnunet-config.c
test_crypto_ecdhe \
test_crypto_hash \
test_crypto_hkdf \
+ test_crypto_paillier \
test_crypto_random \
test_disk \
test_getopt \
test_common_logging_runtime_loglevels
if ENABLE_TEST_RUN
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
TESTS = $(check_PROGRAMS)
endif
test_crypto_hkdf_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la
+test_crypto_paillier_SOURCES = \
+ test_crypto_paillier.c
+test_crypto_paillier_LDADD = \
+ -lgcrypt \
+ $(top_builddir)/src/util/libgnunetutil.la
+
test_crypto_random_SOURCES = \
test_crypto_random.c
test_crypto_random_LDADD = \
test_program_data.conf \
test_resolver_api_data.conf \
test_service_data.conf \
- test_speedup_data.conf
+ test_speedup_data.conf \
+ gnunet-qr.py.in