Index: src/platform/vboot_reference/tests/Makefile |
diff --git a/src/platform/vboot_reference/tests/Makefile b/src/platform/vboot_reference/tests/Makefile |
index 4d5f969e4f3888b04d9ece47d73c063425fca1c7..04df8b1c28b9702279bd354dd8028326a8fd160c 100644 |
--- a/src/platform/vboot_reference/tests/Makefile |
+++ b/src/platform/vboot_reference/tests/Makefile |
@@ -3,16 +3,19 @@ |
# found in the LICENSE file. |
CC ?= gcc |
-CFLAGS = -Wall -ansi |
+CFLAGS = -Wall |
INCLUDES ?= -I../include/ |
TOP ?= ../ |
-LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a |
+LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a -lrt |
-tests: sha_tests |
+tests: sha_tests sha_benchmark |
sha_tests: sha_tests.c |
$(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) |
+sha_benchmark: sha_benchmark.c timer_utils.c |
+ $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $^ -o $@ $(LIBS) |
+ |
clean: |
- rm -f sha_tests |
+ rm -f sha_tests sha_benchmark |