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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 SRCS=sha_tests.c verify_data.c 5 SRCS=sha_tests.c verify_data.c digest_utility.c
6 OBJS=$(SRCS:.c=.o) 6 OBJS=$(SRCS:.c=.o)
7 LIBS=$(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a 7 LIBS=$(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a
8 8
9 tests: sha_tests verify_data 9 tests: sha_tests verify_data
10 10
11 sha_tests: sha_tests.c 11 sha_tests: sha_tests.c
12 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 12 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ $(LIBS)
13 13
14 verify_data:» verify_data.c 14 verify_data:» verify_data.c digest_utility.o
15 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 15 » $(CC) $(CFLAGS) -DNDEBUG $(INCLUDES) $< -o $@ digest_utility.o $(LIBS)
16 16
17 digest_utility.o: digest_utility.c
18 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
17 clean: 19 clean:
18 rm -f $(OBJS) sha_tests verify_data 20 rm -f $(OBJS) sha_tests verify_data
OLDNEW
« 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