(0 . 0)(1 . 27)
19 CFLAGS = -O1 -ansi -pedantic -Wall -Wextra -Winit-self
20 LDFLAGS = -static
21
22 keksum: keccak.o io.o main.o
23 $(CC) -o $@ $(LDFLAGS) $^
24
25 ktest: ktest.o io.o
26 $(CC) -o $@ $(LDFLAGS) $^
27
28 check: keksum ktest
29 ./ktest
30 sh test-sponge.sh
31
32 clean:
33 rm -f keksum ktest testvectors.h *.o
34
35 ktest.o: keccak.c
36 $(CC) -o $@ $(CFLAGS) -DTEST -c $<
37
38 testvectors.h: munge-testvecs.py testvectorszero.txt testvectorsnonzero.txt
39 python2 $^ >$@.tmp && mv $@.tmp $@
40
41 # Header deps
42 keccak.o: io.h
43 ktest.o: io.h testvectors.h
44 io.o: io.h
45 main.o: io.h