Projects : keksum : keksum_genesis

Makefile

Dir - Raw

1CFLAGS = -O1 -ansi -pedantic -Wall -Wextra -Winit-self
2LDFLAGS = -static
3
4keksum: keccak.o io.o main.o
5 $(CC) -o $@ $(LDFLAGS) $^
6
7ktest: ktest.o io.o
8 $(CC) -o $@ $(LDFLAGS) $^
9
10check: keksum ktest
11 ./ktest
12 sh test-sponge.sh
13
14clean:
15 rm -f keksum ktest testvectors.h *.o
16
17ktest.o: keccak.c
18 $(CC) -o $@ $(CFLAGS) -DTEST -c $<
19
20testvectors.h: munge-testvecs.py testvectorszero.txt testvectorsnonzero.txt
21 python2 $^ >$@
22
23# Header deps
24keccak.o: io.h
25ktest.o: io.h testvectors.h
26io.o: io.h
27main.o: io.h