Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: src/platform/vboot_reference/tests/Makefile

Issue 558025: Refactor SHA*_file functions into a separate file. Generate them using a C macro. (Closed)
Patch Set: Switched back from a macro to duplicate code. Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/include/sha.h ('k') | src/platform/vboot_reference/tests/digest_utility.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/platform/vboot_reference/include/sha.h ('k') | src/platform/vboot_reference/tests/digest_utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698