diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-07 14:35:43 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-07 14:35:43 +0100 |
commit | 1fab64ff066e0f747db9abc3eec7854e833b1f28 (patch) | |
tree | 6308d5e324185c339f5abc5c58cc1f2ec2dc6f12 | |
parent | m (diff) | |
download | libkeccak-1fab64ff066e0f747db9abc3eec7854e833b1f28.tar.gz libkeccak-1fab64ff066e0f747db9abc3eec7854e833b1f28.tar.bz2 libkeccak-1fab64ff066e0f747db9abc3eec7854e833b1f28.tar.xz |
add static library and dep list
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | DEPENDENCIES | 31 | ||||
-rw-r--r-- | Makefile | 17 |
3 files changed, 48 insertions, 1 deletions
@@ -12,6 +12,7 @@ obj/ *.so *.su *.gch +*.a *.info *.pdf *.ps diff --git a/DEPENDENCIES b/DEPENDENCIES new file mode 100644 index 0000000..271ad84 --- /dev/null +++ b/DEPENDENCIES @@ -0,0 +1,31 @@ +RUNTIME DEPENDENCIES: + + libc + + +BUILD DEPENDENCIES: + + libc + gcc + make + coreutils + binutils + + +CHECK DEPENDENCIES: + + libc + valgrind + make + coreutils + + +BENCHMARK DEPENDENCIES: + + libc + make + coreutils + median + grep (only needed for src/benchmark-flags) + sed (only needed for src/benchmark-flags) + @@ -34,12 +34,19 @@ FLAGS = -std=gnu99 $(WARN) LIB_OBJ = digest files generalised-spec hex state +.PHONY: default +default: lib test + .PHONY: all all: lib test benchmark .PHONY: lib -lib: bin/libkeccak.so.$(LIB_VERSION) bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so +lib: so a + + +.PHONY: so +so: bin/libkeccak.so.$(LIB_VERSION) bin/libkeccak.so.$(LIB_MAJOR) bin/libkeccak.so obj/libkeccak/%.o: src/libkeccak/%.c src/libkeccak.h src/libkeccak/*.h @mkdir -p obj/libkeccak @@ -58,6 +65,14 @@ bin/libkeccak.so: ln -sf libkeccak.so.$(LIB_VERSION) $@ +.PHONY: a +a: bin/libkeccak.a + +bin/libkeccak.a: $(foreach O,$(LIB_OBJ),obj/libkeccak/$(O).o) + @mkdir -p bin + ar rcs $@ $^ + + .PHONY: test test: bin/test |