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

Side by Side Diff: host/Makefile

Issue 2729021: Clean up of key block functions (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: More key block cleanup 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_keyblock.c \
24 ./lib/host_misc.c \ 25 ./lib/host_misc.c \
25 ./lib/host_signature.c 26 ./lib/host_signature.c
26 27
27 LIB_OBJS = $(LIB_SRCS:%.c=%.o) 28 LIB_OBJS = $(LIB_SRCS:%.c=%.o)
28 29
29 test : $(LIBNAME) 30 test : $(LIBNAME)
30 $(CC) $(CFLAGS) $(INCLUDES) -o $(TESTDIR)/a.out $(TESTDIR)/main.c \ 31 $(CC) $(CFLAGS) $(INCLUDES) -o $(TESTDIR)/a.out $(TESTDIR)/main.c \
31 $(LIBNAME) $(FWLIB) -lcrypto 32 $(LIBNAME) $(FWLIB) -lcrypto
32 33
33 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS) 34 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
34 rm -f $@ 35 rm -f $@
35 ar qc $@ $^ 36 ar qc $@ $^
36 37
37 %o : %c 38 %o : %c
38 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< 39 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
39 40
40 clean: FORCE 41 clean: FORCE
41 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out 42 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
42 43
43 FORCE: 44 FORCE:
44 45
45 46
46 .PHONY: FORCE 47 .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