CFLAGS = -O1 -ansi -pedantic -Wall -Wextra -Winit-self LDFLAGS = -static keksum: keccak.o io.o main.o $(CC) -o $@ $(LDFLAGS) $^ ktest: ktest.o io.o $(CC) -o $@ $(LDFLAGS) $^ check: keksum ktest ./ktest sh test-sponge.sh clean: rm -f keksum ktest testvectors.h *.o ktest.o: keccak.c $(CC) -o $@ $(CFLAGS) -DTEST -c $< testvectors.h: munge-testvecs.py testvectorszero.txt testvectorsnonzero.txt python2 $^ >$@ # Header deps keccak.o: io.h ktest.o: io.h testvectors.h io.o: io.h main.o: io.h