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