Makefile 537 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
.PHONY: clean

CC=gcc
CFLAGS=-std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2

all: hash aead

aead: subterranean_ref.c crypto_aead.c genkat_aead.c
	$(CC) $(CFLAGS) -o genkat_aead subterranean_ref.c crypto_aead.c genkat_aead.c

hash: subterranean_ref.c crypto_hash.c genkat_hash.c
	$(CC) $(CFLAGS) -o genkat_hash subterranean_ref.c crypto_hash.c genkat_hash.c

clean:
	@echo "Cleaning up..."
	rm -f "genkat_hash"
	rm -f "LWC_HASH_KAT_256.txt"
	rm -f "genkat_aead"
	rm -f "LWC_AEAD_KAT_128_128.txt"
	@echo "Cleaning done."