Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ref/makefile')
-rw-r--r--ref/makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/ref/makefile b/ref/makefile
index baa6c0f..0772bd6 100644
--- a/ref/makefile
+++ b/ref/makefile
@@ -1,7 +1,7 @@
CC=gcc
CFLAGS=-O2 -Wall -I../testvectors
-all: blake2s blake2b blake2sp blake2bp
+all: blake2s blake2b blake2sp blake2bp check
blake2s: blake2s-ref.c
$(CC) blake2s-ref.c -o $@ $(CFLAGS) -DBLAKE2S_SELFTEST
@@ -15,11 +15,17 @@ blake2sp: blake2sp-ref.c blake2s-ref.c
blake2bp: blake2bp-ref.c blake2b-ref.c
$(CC) blake2bp-ref.c blake2b-ref.c -o $@ $(CFLAGS) -DBLAKE2BP_SELFTEST
+check: blake2s blake2b blake2sp blake2bp
+ ./blake2s
+ ./blake2b
+ ./blake2sp
+ ./blake2bp
+
kat:
$(CC) $(CFLAGS) -o genkat-c genkat-c.c blake2b-ref.c blake2s-ref.c blake2sp-ref.c blake2bp-ref.c
$(CC) $(CFLAGS) -g -o genkat-json genkat-json.c blake2b-ref.c blake2s-ref.c blake2sp-ref.c blake2bp-ref.c
./genkat-c > blake2-kat.h
./genkat-json > blake2-kat.json
-clean:
+clean:
rm -rf *.o genkat-c genkat-json blake2s blake2b blake2sp blake2bp