Makefile 650 Bytes
Newer Older
Enrico Pozzobon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
CC=gcc
CFLAGES=-std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2 -DPC
OBJS=genkat_aead_hash.o photon.o encrypt.o hash.o common.o

all: bitslice

bitslice: $(OBJS)
	$(CC) -o bitslice $(OBJS) $(CFLAGES)

genkat_aead_hash.o: ../../../genkat_aead_hash.c
	$(CC) -c ../../../genkat_aead_hash.c $(CFLAGES) -I./

encrypt.o: encrypt.c
	$(CC) -o encrypt.o -c encrypt.c $(CFLAGES) -I../../../

hash.o: hash.c
	$(CC) -o hash.o -c hash.c $(CFLAGES) -I../../../

common.o: common.c
	$(CC) -o common.o -c common.c $(CFLAGES) -I../../../

photon.o: photon.c
	$(CC) -c photon.c $(CFLAGES)

.PHONY : clean

clean :
	rm $(OBJS)