mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Make crypto_{kem,sign} part of SCHEME variable
This commit is contained in:
parent
96ae01ef1b
commit
87bbb1887f
8
Makefile
8
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
|
ifndef SCHEME
|
||||||
# TODO make this more granular, i.e. make clean should not require SCHEME
|
# TODO make this more granular, i.e. make clean should not require SCHEME
|
||||||
$(error SCHEME variable is not set)
|
$(error SCHEME variable is not set)
|
||||||
@ -7,14 +7,14 @@ endif
|
|||||||
|
|
||||||
CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99
|
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
|
mkdir -p bin
|
||||||
$(CC) $(CFLAGS)\
|
$(CC) $(CFLAGS)\
|
||||||
-I"./common/"\
|
-I"./common/"\
|
||||||
-I"crypto_kem/$(SCHEME)/clean/"\
|
-I"$(SCHEME)/clean/"\
|
||||||
-o bin/functest_kem_$(SCHEME)\
|
-o bin/functest_kem_$(SCHEME)\
|
||||||
common/*.c\
|
common/*.c\
|
||||||
crypto_kem/$(SCHEME)/clean/*.c\
|
$(SCHEME)/clean/*.c\
|
||||||
crypto_kem/test.c
|
crypto_kem/test.c
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user