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

Side by Side Diff: Makefile

Issue 4266002: Fix integration bugs (vboot side) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Rename tpm_lite.h to tlcl_stub.h Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cgpt/Makefile » ('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 export CC ?= gcc 5 export CC ?= gcc
6 export CXX ?= g++ 6 export CXX ?= g++
7 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT 7 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT
8 ifeq (${DEBUG},) 8 ifeq (${DEBUG},)
9 CFLAGS += -O3 9 CFLAGS += -O3
10 else 10 else
11 CFLAGS += -O0 -g -DVBOOT_DEBUG 11 CFLAGS += -O0 -g -DVBOOT_DEBUG
12 endif 12 endif
13 ifeq (${DISABLE_NDEBUG},) 13 ifeq (${DISABLE_NDEBUG},)
14 CFLAGS += -DNDEBUG 14 CFLAGS += -DNDEBUG
15 endif 15 endif
16 16
17 export TOP = $(shell pwd) 17 export TOP = $(shell pwd)
18 export FWDIR=$(TOP)/firmware 18 export FWDIR=$(TOP)/firmware
19 export HOSTDIR=$(TOP)/host 19 export HOSTDIR=$(TOP)/host
20 export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/stub/include 20 export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/stub/include
21 21
22 export BUILD = ${TOP}/build 22 export BUILD = ${TOP}/build
23 export FWLIB = ${BUILD}/vboot_fw.a 23 export FWLIB = ${BUILD}/vboot_fw.a
24 export HOSTLIB= ${BUILD}/vboot_host.a 24 export HOSTLIB = ${BUILD}/vboot_host.a
25 25
26 SUBDIRS = firmware host utility cgpt tests tests/tpm_lite 26 SUBDIRS = firmware host utility cgpt tests tests/tpm_lite
27 27
28 all: 28 all:
29 set -e; \ 29 set -e; \
30 for d in $(shell find ${SUBDIRS} -name '*.c' -exec dirname {} \; |\ 30 for d in $(shell find ${SUBDIRS} -name '*.c' -exec dirname {} \; |\
31 sort -u); do \ 31 sort -u); do \
32 newdir=${BUILD}/$$d; \ 32 newdir=${BUILD}/$$d; \
33 if [ ! -d $$newdir ]; then \ 33 if [ ! -d $$newdir ]; then \
34 mkdir -p $$newdir; \ 34 mkdir -p $$newdir; \
35 fi; \ 35 fi; \
36 done; \ 36 done; \
37 make -C utility update_tlcl_structures; \ 37 make -C utility update_tlcl_structures; \
38 for i in $(SUBDIRS); do \ 38 for i in $(SUBDIRS); do \
39 make -C $$i; \ 39 make -C $$i; \
40 done 40 done
41 41
42 clean: 42 clean:
43 /bin/rm -rf ${BUILD} 43 /bin/rm -rf ${BUILD}
44 44
45 install: 45 install:
46 $(MAKE) -C utility install 46 $(MAKE) -C utility install
47 $(MAKE) -C cgpt install 47 $(MAKE) -C cgpt install
48 48
49 runtests: 49 runtests:
50 $(MAKE) -C tests runtests 50 $(MAKE) -C tests runtests
51 51
52 rbtest: 52 rbtest:
53 $(MAKE) -C tests rbtest 53 $(MAKE) -C tests rbtest
OLDNEW
« no previous file with comments | « no previous file | cgpt/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698