diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) = \ |