pqc/Makefile
2019-01-15 16:14:52 +01:00

24 lines
556 B
Makefile

# 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)
endif
CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99
functest_kem: crypto_kem/test.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h)
mkdir -p bin
$(CC) $(CFLAGS)\
-I"./common/"\
-I"$(SCHEME)/clean/"\
-o bin/functest_kem_$(SCHEME)\
common/*.c\
$(SCHEME)/clean/*.c\
crypto_kem/test.c
.PHONY: clean
clean:
rm -rf bin