From 87bbb1887f96918bc98b5acedf1a9a98dfbe0d72 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Tue, 15 Jan 2019 16:14:21 +0100 Subject: [PATCH] Make crypto_{kem,sign} part of SCHEME variable --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 84716d0d..5cf7a118 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -# assumes a SCHEME variable; e.g. make functest_kem SCHEME=kyber768 +# assumes a SCHEME variable; e.g. make functest_kem SCHEME=crypto_kem/kyber768 ifndef SCHEME # TODO make this more granular, i.e. make clean should not require SCHEME $(error SCHEME variable is not set) @@ -7,14 +7,14 @@ endif CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -functest_kem: crypto_kem/test.c $(wildcard crypto_kem/$(SCHEME)/clean/*.c) $(wildcard crypto_kem/$(SCHEME)/clean/*.h) +functest_kem: crypto_kem/test.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) mkdir -p bin $(CC) $(CFLAGS)\ -I"./common/"\ - -I"crypto_kem/$(SCHEME)/clean/"\ + -I"$(SCHEME)/clean/"\ -o bin/functest_kem_$(SCHEME)\ common/*.c\ - crypto_kem/$(SCHEME)/clean/*.c\ + $(SCHEME)/clean/*.c\ crypto_kem/test.c .PHONY: clean