From 4dcf6e9afb6e30a94f1f88102975627cf7edbc84 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Mon, 17 Dec 2018 15:26:12 +0100 Subject: Organisation des différentes implémentations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Au passage, officialisation de la version "i applications successives de M pour calculer Mⁱ" du key schedule. --- test/common.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test/common.mk') diff --git a/test/common.mk b/test/common.mk index 4d182d2..e018a9d 100644 --- a/test/common.mk +++ b/test/common.mk @@ -1,4 +1,4 @@ -# use "make VERBOSE=1" to have full commands printed out. +# Use "make VERBOSE=1" to have full commands printed out. VERBOSE = 0 ifeq ($(VERBOSE),1) Q = @@ -7,6 +7,10 @@ Q = @ endif +# Use "make IMPLEMENTATION=..." to compile against other versions. +IMPLEMENTATION = ref + + tests = $(basename $(wildcard test-*.c)) traces = $(basename $(wildcard traces-*.c)) @@ -14,8 +18,8 @@ traces = $(basename $(wildcard traces-*.c)) test_dir = $(dir $(lastword $(MAKEFILE_LIST))) root_dir = $(test_dir).. results_dir = $(root_dir)/results/$(mode)-$(keylen) -src_dir = $(root_dir)/src -variant_dir = $(src_dir)/$(mode)-$(keylen) +src_dir = $(root_dir)/src/$(IMPLEMENTATION) +variant_dir = $(root_dir)/src/$(mode)-$(keylen) nist_flags = -std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2 -- cgit v1.2.3