1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-23 02:42:10 +01:00
BLAKE2/bench/makefile

19 lines
498 B
Makefile
Raw Normal View History

2013-02-01 16:44:36 +01:00
CC=gcc
# std to gnu99 to support inline asm
CFLAGS=-std=gnu99 -O3 -march=native -DSUPERCOP # -DHAVE_XOP # uncomment on XOP-enabled CPUs
2016-06-12 17:37:10 +02:00
FILES=bench.c
2013-02-01 16:44:36 +01:00
2016-06-10 12:37:44 +02:00
all:
$(CC) $(FILES) $(CFLAGS) ../sse/blake2b.c -o blake2b
$(CC) $(FILES) $(CFLAGS) ../sse/blake2s.c -o blake2s
2013-02-01 16:44:36 +01:00
$(CC) $(FILES) $(CFLAGS) md5.c -o md5 -lcrypto -lz
2016-06-12 17:37:10 +02:00
plot:
2013-02-01 16:44:36 +01:00
./blake2b > blake2b.data
./blake2s > blake2s.data
./md5 > md5.data
gnuplot do.gplot
clean:
rm -f blake2b blake2s md5 plotcycles.pdf blake2b.data blake2s.data md5.data