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

Side by Side Diff: src/platform/vboot_reference/utils/Makefile

Issue 1599001: VBoot Reference: Refactor Pass 1: Split {firmware|kernel}_image (Closed)
Patch Set: Created 10 years, 8 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 CC ?= gcc 5 CC ?= gcc
6 CXX ?= g++ 6 CXX ?= g++
7 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror 7 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror
8 INCLUDES ?= -I../include/ 8 INCLUDES ?= -I../include/
9 TOP ?= ../ 9 TOP ?= ../
10 10
11 LIBS = firmware_image.o kernel_image.o signature_digest.o file_keys.o \ 11 LIBS = file_keys.o \
12 » rollback_index.o 12 » firmware_image.o \
13 » firmware_image_fw.o \
14 » kernel_image.o \
15 » kernel_image_fw.o \
16 » rollback_index.o \
17 » signature_digest.o
13 18
14 FIRMWARELIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a 19 FIRMWARELIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a
15 20
16 all: dumpRSAPublicKey verify_data file_keys.o signature_digest.o \ 21 TARGET_BINS = $(LIBS) \
17 » firmware_image.o kernel_image.o signature_digest.o \ 22 » » dumpRSAPublicKey \
18 » signature_digest_utility firmware_utility kernel_utility \ 23 » » firmware_utility \
19 » rollback_index.o 24 » » kernel_utility \
25 » » signature_digest_utility \
26 » » verify_data
27
28 all: $(TARGET_BINS)
29
30 .c.o:
31 » $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
20 32
21 dumpRSAPublicKey: dumpRSAPublicKey.c 33 dumpRSAPublicKey: dumpRSAPublicKey.c
22 $(CC) $(CFLAGS) $< -o $@ -lcrypto 34 $(CC) $(CFLAGS) $< -o $@ -lcrypto
23 35
24 verify_data: verify_data.c $(LIBS) $(FIRMWARELIBS) 36 firmware_image_fw.o: firmware_image_fw.c
25 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto 37 » $(CC) $(CFLAGS) -ansi $(INCLUDES) -c $^ -o $@
26
27 signature_digest_utility: signature_digest_utility.c $(LIBS) $(FIRMWARELIBS)
28 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto
29 38
30 firmware_utility: firmware_utility.cc $(LIBS) $(FIRMWARELIBS) 39 firmware_utility: firmware_utility.cc $(LIBS) $(FIRMWARELIBS)
31 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 40 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
32 -o $@ $(FIRMWARELIBS) $(LIBS) $(TOP)/common/libcommon.a \ 41 -o $@ $(FIRMWARELIBS) $(LIBS) $(TOP)/common/libcommon.a \
33 -lcrypto 42 -lcrypto
34 43
44 kernel_image_fw.o: kernel_image_fw.c
45 $(CC) $(CFLAGS) -ansi $(INCLUDES) -c $< -o $@
46
35 kernel_utility: kernel_utility.cc $(LIBS) $(FIRMWARELIBS) 47 kernel_utility: kernel_utility.cc $(LIBS) $(FIRMWARELIBS)
36 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 48 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
37 -o $@ $(FIRMWARELIBS) $(LIBS) $(TOP)/common/libcommon.a \ 49 -o $@ $(FIRMWARELIBS) $(LIBS) $(TOP)/common/libcommon.a \
38 -lcrypto 50 -lcrypto
39 51
40 .c.o: 52 signature_digest_utility: signature_digest_utility.c $(LIBS) $(FIRMWARELIBS)
41 » $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ 53 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto
42 54
43 firmware_image.o: firmware_image.c 55 verify_data: verify_data.c $(LIBS) $(FIRMWARELIBS)
44 » $(CC) -ansi $(CFLAGS) $(INCLUDES) -c $< -o $@ 56 » $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto
45 57
46 kernel_image.o: kernel_image.c
47 $(CC) -ansi $(CFLAGS) $(INCLUDES) -c $< -o $@
48 clean: 58 clean:
49 » rm -f dumpRSAPublicKey verify_data signature_digest firmware_utility \ 59 » rm -f $(TARGET_BINS) $(LIBS)
50 » kernel_utility signature_digest_utility $(LIBS) 60
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/tests/Makefile ('k') | src/platform/vboot_reference/utils/dumpRSAPublicKey.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698