Index: src/platform/vboot_reference/tests/Makefile |
diff --git a/src/platform/vboot_reference/tests/Makefile b/src/platform/vboot_reference/tests/Makefile |
index ba4c4a64f22df46b2a8f7c3b66a76500693a596b..4d5f969e4f3888b04d9ece47d73c063425fca1c7 100644 |
--- a/src/platform/vboot_reference/tests/Makefile |
+++ b/src/platform/vboot_reference/tests/Makefile |
@@ -2,14 +2,17 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-SRCS=sha_tests.c |
-OBJS=$(SRCS:.c=.o) |
-LIBS=$(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a |
+CC ?= gcc |
+CFLAGS = -Wall -ansi |
+INCLUDES ?= -I../include/ |
+TOP ?= ../ |
-tests: sha_tests |
+LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a |
+ |
+tests: sha_tests |
sha_tests: sha_tests.c |
$(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS) |
clean: |
- rm -f $(OBJS) sha_tests verify_data signature_digest |
+ rm -f sha_tests |