OLD | NEW |
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 -DNDEBUG -O3 -Werror -DCHROMEOS_ENVIRONMENT | 7 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT |
| 8 ifeq (${DEBUG},) |
| 9 CFLAGS += -O3 |
| 10 else |
| 11 CFLAGS += -O0 -g -DVBOOT_DEBUG |
| 12 endif |
| 13 ifeq (${DISABLE_NDEBUG},) |
| 14 CFLAGS += -DNDEBUG |
| 15 endif |
| 16 |
8 export TOP = $(shell pwd) | 17 export TOP = $(shell pwd) |
9 export FWDIR=$(TOP)/firmware | 18 export FWDIR=$(TOP)/firmware |
10 export HOSTDIR=$(TOP)/host | 19 export HOSTDIR=$(TOP)/host |
11 export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/stub/include | 20 export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/stub/include |
12 | 21 |
13 export BUILD = ${TOP}/build | 22 export BUILD = ${TOP}/build |
14 export FWLIB = ${BUILD}/vboot_fw.a | 23 export FWLIB = ${BUILD}/vboot_fw.a |
15 export HOSTLIB= ${BUILD}/vboot_host.a | 24 export HOSTLIB= ${BUILD}/vboot_host.a |
16 | 25 |
17 SUBDIRS = firmware host utility cgpt tests tests/tpm_lite | 26 SUBDIRS = firmware host utility cgpt tests tests/tpm_lite |
(...skipping 19 matching lines...) Expand all Loading... |
37 $(MAKE) -C cgpt install | 46 $(MAKE) -C cgpt install |
38 | 47 |
39 runtests: | 48 runtests: |
40 $(MAKE) -C tests runtests | 49 $(MAKE) -C tests runtests |
41 | 50 |
42 rbtest: | 51 rbtest: |
43 $(MAKE) -C tests rbtest | 52 $(MAKE) -C tests rbtest |
44 | 53 |
45 update_tlcl_structures: | 54 update_tlcl_structures: |
46 $(MAKE) -C utility update_tlcl_structures | 55 $(MAKE) -C utility update_tlcl_structures |
OLD | NEW |