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