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

24 lines
659 B
Makefile
Raw Normal View History

2013-03-12 11:06:10 +01:00
CC=gcc
2013-02-01 16:44:36 +01:00
CFLAGS=-std=c99 -Wall -pedantic
all: blake2s blake2b blake2sp blake2bp
blake2s: blake2s-ref.c
$(CC) blake2s-ref.c -o $@ $(CFLAGS) -DBLAKE2S_SELFTEST
blake2b: blake2b-ref.c
$(CC) blake2b-ref.c -o $@ $(CFLAGS) -DBLAKE2B_SELFTEST
blake2sp: blake2sp-ref.c blake2s-ref.c
2014-08-06 12:31:37 +02:00
$(CC) blake2sp-ref.c blake2s-ref.c -o $@ $(CFLAGS) -DBLAKE2SP_SELFTEST
2013-02-01 16:44:36 +01:00
blake2bp: blake2bp-ref.c blake2b-ref.c
2014-08-06 12:31:37 +02:00
$(CC) blake2bp-ref.c blake2b-ref.c -o $@ $(CFLAGS) -DBLAKE2BP_SELFTEST
2013-02-01 16:44:36 +01:00
kat:
$(CC) $(CFLAGS) -o genkat genkat.c blake2b-ref.c blake2s-ref.c blake2sp-ref.c blake2bp-ref.c
./genkat > blake2-kat.h
clean:
rm -rf *.o genkat blake2s blake2b blake2sp blake2bp