| 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 CFLAGS = -Wall -DNDEBUG -O3 -Werror | 6 export CFLAGS = -Wall -DNDEBUG -O3 -Werror |
| 7 export TOP = $(shell pwd) | 7 export TOP = $(shell pwd) |
| 8 export FWDIR=$(TOP)/vboot_firmware | 8 export FWDIR=$(TOP)/vboot_firmware |
| 9 export HOSTDIR=$(TOP)/host |
| 9 export INCLUDES = \ | 10 export INCLUDES = \ |
| 10 -I$(FWDIR)/include \ | 11 -I$(FWDIR)/include \ |
| 11 -I$(TOP)/misclibs/include | 12 -I$(TOP)/misclibs/include |
| 12 | 13 |
| 13 export FWLIB=$(FWDIR)/vboot_fw.a | 14 export FWLIB=$(FWDIR)/vboot_fw.a |
| 15 export HOSTLIB=$(HOSTDIR)/vboot_host.a |
| 14 | 16 |
| 15 SUBDIRS=vboot_firmware misclibs vfirmware vkernel utility tests | 17 SUBDIRS=vboot_firmware misclibs host vfirmware vkernel utility tests |
| 16 | 18 |
| 17 all: | 19 all: |
| 18 set -e; \ | 20 set -e; \ |
| 19 for i in $(SUBDIRS); do \ | 21 for i in $(SUBDIRS); do \ |
| 20 make -C $$i; \ | 22 make -C $$i; \ |
| 21 done | 23 done |
| 22 | 24 |
| 23 clean: | 25 clean: |
| 24 set -e; \ | 26 set -e; \ |
| 25 for i in $(SUBDIRS); do \ | 27 for i in $(SUBDIRS); do \ |
| 26 make -C $$i clean; \ | 28 make -C $$i clean; \ |
| 27 done | 29 done |
| 28 | 30 |
| 29 install: | 31 install: |
| 30 $(MAKE) -C utility install | 32 $(MAKE) -C utility install |
| 31 | 33 |
| 32 runtests: | 34 runtests: |
| 33 $(MAKE) -C tests runtests | 35 $(MAKE) -C tests runtests |
| OLD | NEW |