From db5438ca5577d7509a73db9cf3312342d3c9ab1d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 8 Jun 2017 22:19:48 +0200 Subject: [PATCH] don't build openssl-enc for tests --- demos/openssl-enc.c | 3 +++ makefile_include.mk | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/demos/openssl-enc.c b/demos/openssl-enc.c index daf529b..b94c402 100644 --- a/demos/openssl-enc.c +++ b/demos/openssl-enc.c @@ -48,6 +48,9 @@ #ifndef LTC_RNG_GET_BYTES #error Cannot compile this demo; random generator required #endif +#ifndef LTC_MD5 +#error Cannot compile this demo; MD5 required +#endif /* OpenSSL by default only runs one hash round */ #define OPENSSL_ITERATIONS 1 diff --git a/makefile_include.mk b/makefile_include.mk index 5c34a8e..d493d0e 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -108,8 +108,9 @@ THEADERS = $(wildcard testprof/*.h) TIMING=timing TEST=test -USEFUL_DEMOS=hashsum openssl-enc -DEMOS=$(USEFUL_DEMOS) ltcrypt small tv_gen sizes constants +USEFUL_DEMOS=hashsum +UNBROKEN_DEMOS=$(USEFUL_DEMOS) ltcrypt small tv_gen sizes constants +DEMOS=$(UNBROKEN_DEMOS) openssl-enc TIMINGS=demos/timing.o TESTS=demos/test.o @@ -330,7 +331,7 @@ $(TOBJECTS): $(HEADERS) $(THEADERS) bins: $(USEFUL_DEMOS) -all_test: test tv_gen $(DEMOS) +all_test: test $(UNBROKEN_DEMOS) #build the doxy files (requires Doxygen, tetex and patience) doxygen doxy docs: