mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
22 lines
539 B
Makefile
22 lines
539 B
Makefile
|
|
||
|
# assumes a SCHEME variable; e.g. make functest_kem SCHEME=kyber768
|
||
|
ifndef SCHEME
|
||
|
# TODO make this more granular, i.e. make clean should not require SCHEME
|
||
|
$(error SCHEME variable is not set)
|
||
|
endif
|
||
|
|
||
|
functest_kem: crypto_kem/test.c $(wildcard crypto_kem/$(SCHEME)/clean/*.c) $(wildcard crypto_kem/$(SCHEME)/clean/*.h)
|
||
|
mkdir -p bin
|
||
|
$(CC) $(CFLAGS)\
|
||
|
-I"./common/"\
|
||
|
-I"crypto_kem/$(SCHEME)/clean/"\
|
||
|
-o bin/functest_kem_$(SCHEME)\
|
||
|
common/*.c\
|
||
|
crypto_kem/$(SCHEME)/clean/*.c\
|
||
|
crypto_kem/test.c
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
clean:
|
||
|
rm -rf bin
|