From f2f735af0c44d280c6642935d33dc43793f5a637 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 20 Nov 2018 11:10:15 +0100 Subject: Ajout des vecteurs Tweakey de Léo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto_aead/lilliputaei128v1/ref/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'crypto_aead/lilliputaei128v1/ref/Makefile') 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 -- cgit v1.2.3