From d0fd9ebaec312d9d6742fbe939bab75729771bb1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Nov 2014 23:09:35 +0100 Subject: add benchmark program MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cb7ab19..47612ed 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ LIB_OBJ = digest files generalised-spec hex state .PHONY: all -all: lib test +all: lib test benchmark .PHONY: lib @@ -120,6 +120,18 @@ obj/test.o: src/test.c src/libkeccak/*.h src/libkeccak.h $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -Isrc -O3 -c -o $@ $< +.PHONY: benchmark +benchmark: bin/benchmark + +bin/benchmark: obj/benchmark.o bin/libkeccak.so + $(CC) $(FLAGS) $(LDFLAGS) -Lbin -lkeccak -o $@ $< + +obj/benchmark.o: src/benchmark.c src/libkeccak/*.h src/libkeccak.h + @mkdir -p obj + $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -Isrc -O3 -c -o $@ $< + + + .PHONY: check check: bin/test @test $$(sha256sum LICENSE | cut -d ' ' -f 1) = \ -- cgit v1.2.3-70-g09d2