Bläddra i källkod

don't build openssl-enc for tests

Steffen Jaeckel 8 år sedan
förälder
incheckning
db5438ca55
2 ändrade filer med 7 tillägg och 3 borttagningar
  1. 3 0
      demos/openssl-enc.c
  2. 4 3
      makefile_include.mk

+ 3 - 0
demos/openssl-enc.c

@@ -48,6 +48,9 @@
 #ifndef LTC_RNG_GET_BYTES
 #ifndef LTC_RNG_GET_BYTES
 #error Cannot compile this demo; random generator required
 #error Cannot compile this demo; random generator required
 #endif
 #endif
+#ifndef LTC_MD5
+#error Cannot compile this demo; MD5 required
+#endif
 
 
 /* OpenSSL by default only runs one hash round */
 /* OpenSSL by default only runs one hash round */
 #define OPENSSL_ITERATIONS 1
 #define OPENSSL_ITERATIONS 1

+ 4 - 3
makefile_include.mk

@@ -108,8 +108,9 @@ THEADERS = $(wildcard testprof/*.h)
 TIMING=timing
 TIMING=timing
 TEST=test
 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
 TIMINGS=demos/timing.o
 TESTS=demos/test.o
 TESTS=demos/test.o
@@ -330,7 +331,7 @@ $(TOBJECTS): $(HEADERS) $(THEADERS)
 
 
 bins: $(USEFUL_DEMOS)
 bins: $(USEFUL_DEMOS)
 
 
-all_test: test tv_gen $(DEMOS)
+all_test: test $(UNBROKEN_DEMOS)
 
 
 #build the doxy files (requires Doxygen, tetex and patience)
 #build the doxy files (requires Doxygen, tetex and patience)
 doxygen doxy docs:
 doxygen doxy docs: