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

Side by Side Diff: host/Makefile

Issue 2762009: Add vbutil_key (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Util to pack/unpack .vbpubk files Created 10 years, 6 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
« no previous file with comments | « no previous file | host/include/host_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 LIBNAME = vboot_host.a 5 LIBNAME = vboot_host.a
6 6
7 CC ?= gcc 7 CC ?= gcc
8 CFLAGS = -Wall -DNDEBUG -O3 -Werror 8 CFLAGS = -Wall -DNDEBUG -O3 -Werror
9 9
10 HOSTTOP := $(shell pwd) 10 HOSTTOP := $(shell pwd)
11 LIBDIR = $(HOSTTOP)/lib 11 LIBDIR = $(HOSTTOP)/lib
12 TESTDIR = $(HOSTTOP)/linktest 12 TESTDIR = $(HOSTTOP)/linktest
13 13
14 INCLUDES += \ 14 INCLUDES += \
15 -I$(HOSTTOP)/include \ 15 -I$(HOSTTOP)/include \
16 -I$(FWDIR)/lib/include \ 16 -I$(FWDIR)/lib/include \
17 -I$(FWDIR)/lib/cgptlib/include \ 17 -I$(FWDIR)/lib/cgptlib/include \
18 -I$(FWDIR)/lib/cryptolib/include 18 -I$(FWDIR)/lib/cryptolib/include
19 19
20 # find ./lib -iname '*.c' | sort 20 # find ./lib -iname '*.c' | sort
21 LIB_SRCS = \ 21 LIB_SRCS = \
22 ./lib/host_common.c \ 22 ./lib/host_common.c \
23 ./lib/host_key.c \ 23 ./lib/host_key.c \
24 ./lib/host_misc.c \
24 ./lib/host_signature.c 25 ./lib/host_signature.c
25 26
26 LIB_OBJS = $(LIB_SRCS:%.c=%.o) 27 LIB_OBJS = $(LIB_SRCS:%.c=%.o)
27 28
28 test : $(LIBNAME) 29 test : $(LIBNAME)
29 $(CC) $(CFLAGS) $(INCLUDES) -o $(TESTDIR)/a.out $(TESTDIR)/main.c \ 30 $(CC) $(CFLAGS) $(INCLUDES) -o $(TESTDIR)/a.out $(TESTDIR)/main.c \
30 » $(LIBNAME) $(FWLIB) $(TOP)/misclibs/file_keys.o -lcrypto 31 » $(LIBNAME) $(FWLIB) -lcrypto
31 32
32 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS) 33 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
33 rm -f $@ 34 rm -f $@
34 ar qc $@ $^ 35 ar qc $@ $^
35 36
36 %o : %c 37 %o : %c
37 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< 38 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
38 39
39 clean: FORCE 40 clean: FORCE
40 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out 41 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
41 42
42 FORCE: 43 FORCE:
43 44
44 45
45 .PHONY: FORCE 46 .PHONY: FORCE
OLDNEW
« no previous file with comments | « no previous file | host/include/host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698