From 4a8e45026e0f5de7d9711cfe1ddd23518b1d17db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Nov 2024 17:49:05 +0100 Subject: Adding upstream version 1.3.1. Signed-off-by: Daniel Baumann --- Makefile.am | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Makefile.am (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..359611e --- /dev/null +++ b/Makefile.am @@ -0,0 +1,73 @@ +lib_LTLIBRARIES = libcryptopANT.la +libcryptopANT_la_SOURCES = src/cryptopANT.c src/cryptopANT.h +libcryptopANT_la_LDFLAGS = -version-info @CRYPTOPANT_LIBRARY_VERSION@ -lcrypto +ACLOCAL_AMFLAGS = -I m4 +include_HEADERS = src/cryptopANT.h +dist_man3_MANS = man/cryptopANT.3 + +if BUILD_SCRAMBLE_IPS +# these will be installed in BINDIR +bin_PROGRAMS = scramble_ips +scramble_ips_SOURCES = src/scramble_ips.c +scramble_ips_LDFLAGS = -L.libs -lcryptopANT +$(bin_PROGRAMS): $(lib_LTLIBRARIES) +endif + +TESTS_BINARY = .libs/scramble_ips +EXTRA_DIST = test/ip* test/keyfile* + +CMP = cmp -s + +# variables to control test time +HEAD6S=1000 +HEAD6R=1000 + +.PHONY: test +.PHONY: test_bf test_aes test_sha1 test_md5 +.PHONY: test_one_bf test_one_aes test_one_sha1 test_one_md5 + +test: test_bf test_aes test_sha1 test_md5 + +test_bf: T=blowfish +test_bf: HEAD6S=100 +test_bf: HEAD6R=10 +test_bf: all test_one_bf + +test_aes: T=aes +test_aes: all test_one_aes + +test_sha1: T=sha1 +test_sha1: all test_one_sha1 + +test_md5: T=md5 +test_md5: all test_one_md5 + +test_one_aes test_one_bf test_one_sha1 test_one_md5: + @test -x ./scramble_ips || { \ + echo "scramble_ips binary wasn't built, run './configure --with-scramble_ips'"; \ + exit 1; \ + } + @echo "testing crypto $T" + @./scramble_ips test/keyfile.$(T)