summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/Makefile
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-20 11:10:15 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-20 11:10:15 +0100
commitf2f735af0c44d280c6642935d33dc43793f5a637 (patch)
treea94c7796a0f23a8416e9a074dab5d60310b2829f /crypto_aead/lilliputaei128v1/ref/Makefile
parent7f55c67099b6774123faf8a3ced7de0548798c86 (diff)
downloadlilliput-ae-implem-f2f735af0c44d280c6642935d33dc43793f5a637.tar.xz
Ajout des vecteurs Tweakey de Léo
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/Makefile')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/Makefile b/crypto_aead/lilliputaei128v1/ref/Makefile
index 3ffcf57..2d1f124 100644
--- a/crypto_aead/lilliputaei128v1/ref/Makefile
+++ b/crypto_aead/lilliputaei128v1/ref/Makefile
@@ -1,5 +1,4 @@
-
-.PHONY: clean run-test-tweakey
+.PHONY: clean test-tweakey
nist_flags = -std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2
@@ -9,16 +8,22 @@ clean:
-rm -r results
results:
- mkdir $@
+ mkdir -p $@
+
+# TODO: should add order-only prerequisite to remove mkdir from this target
+results/%.o: %.c
+ @mkdir -p $(dir $@)
+ gcc -c -I. $< $(nist_flags) -o $@
-results/%.o: %.c | results
- gcc -c $< $(nist_flags) -o $@
+results/test-%: results/test/%.o
-results/test-tweakey: results/test-tweakey.o results/tweakey.o | results
+results/test-tweakey: results/test/tweakey.o results/tweakey.o | results
gcc $^ $(nist_flags) -o $@
-run-test-tweakey: results/test-tweakey
+test-tweakey: results/test-tweakey
+ mkdir -p results/tweakey
./results/test-tweakey
+ ./test/tweakey.sh test/tweakey-ref results/tweakey
results/test-tweakey.o: tweakey.h