aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-13 03:35:01 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-13 03:35:01 +0100
commitc18cef7722e890666b617bf2dcc6f8cd38597932 (patch)
tree1c9711a064972a8b5e29e3d1c6e94b26c4597dec /Makefile
parentm (diff)
downloadlibkeccak-c18cef7722e890666b617bf2dcc6f8cd38597932.tar.gz
libkeccak-c18cef7722e890666b617bf2dcc6f8cd38597932.tar.bz2
libkeccak-c18cef7722e890666b617bf2dcc6f8cd38597932.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5c03472..4241d59 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ bin/libkeccak.a: $(foreach O,$(LIB_OBJ),obj/libkeccak/$(O).o)
.PHONY: test
test: bin/test
-bin/test: obj/test.o bin/libkeccak.so
+bin/test: obj/test.o bin/libkeccak.so bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so.$(LIB_VERSION)
$(CC) $(FLAGS) $(LDFLAGS) -Lbin -lkeccak -o $@ $<
obj/test.o: src/test.c src/libkeccak/*.h src/libkeccak.h
@@ -113,7 +113,7 @@ obj/test.o: src/test.c src/libkeccak/*.h src/libkeccak.h
.PHONY: benchmark
benchmark: bin/benchmark
-bin/benchmark: obj/benchmark.o bin/libkeccak.so
+bin/benchmark: obj/benchmark.o bin/libkeccak.so bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so.$(LIB_VERSION)
$(CC) $(FLAGS) $(LDFLAGS) -Lbin -lkeccak -o $@ $<
obj/benchmark.o: src/benchmark.c src/libkeccak/*.h src/libkeccak.h
@@ -123,7 +123,7 @@ obj/benchmark.o: src/benchmark.c src/libkeccak/*.h src/libkeccak.h
.PHONY: check
-check: bin/test bin/libkeccak.so
+check: bin/test bin/libkeccak.so bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so.$(LIB_VERSION)
@test $$(sha256sum LICENSE | cut -d ' ' -f 1) = \
57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6 || \
( echo 'The file LICENSE is incorrect, test will fail!' ; false )
@@ -134,7 +134,7 @@ check: bin/test bin/libkeccak.so
.PHONY: run-benchmark
-run-benchmark: bin/benchmark bin/libkeccak.so
+run-benchmark: bin/benchmark bin/libkeccak.so bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so.$(LIB_VERSION)
for i in $$(seq 7) ; do env LD_LIBRARY_PATH=bin bin/benchmark ; done | median