diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-05 22:13:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-05 22:13:44 +0100 |
commit | cac72615414065276da6c8f08860a41fa16b5a92 (patch) | |
tree | 0df565ca3f8f1645d19065c1591a19d8e3510200 | |
parent | isolate optimisation to the library (diff) | |
download | libkeccak-cac72615414065276da6c8f08860a41fa16b5a92.tar.gz libkeccak-cac72615414065276da6c8f08860a41fa16b5a92.tar.bz2 libkeccak-cac72615414065276da6c8f08860a41fa16b5a92.tar.xz |
test.c does not need its own directory
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | src/test.c (renamed from src/test/test.c) | 0 |
2 files changed, 4 insertions, 5 deletions
@@ -83,7 +83,6 @@ FLAGS = -std=gnu99 $(WARN) LIB_OBJ = digest files generalised-spec hex state -TEST_OBJ = test .PHONY: all @@ -113,11 +112,11 @@ bin/libkeccak.so: .PHONY: test test: bin/test -bin/test: bin/libkeccak.so $(foreach O,$(TEST_OBJ),obj/test/$(O).o) - $(CC) $(FLAGS) $(LDFLAGS) -Lbin -lkeccak -o $@ $(foreach O,$(TEST_OBJ),obj/test/$(O).o) +bin/test: obj/test.o bin/libkeccak.so + $(CC) $(FLAGS) $(LDFLAGS) -Lbin -lkeccak -o $@ $< -obj/test/%.o: src/test/%.c src/libkeccak/*.h src/libkeccak.h - @mkdir -p obj/test +obj/test.o: src/test.c src/libkeccak/*.h src/libkeccak.h + @mkdir -p obj $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -Isrc -O3 -c -o $@ $< diff --git a/src/test/test.c b/src/test.c index c8ab8de..c8ab8de 100644 --- a/src/test/test.c +++ b/src/test.c |