| 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 INCLUDES = \ | 9 export INCLUDES = \ |
| 10 -I$(FWDIR)/include \ | 10 -I$(FWDIR)/include \ |
| 11 » -I$(TOP)/misclibs/include \ | 11 » -I$(TOP)/misclibs/include |
| 12 » -I$(TOP)/cgptlib | |
| 13 | 12 |
| 14 export FWLIB=$(FWDIR)/vboot_fw.a | 13 export FWLIB=$(FWDIR)/vboot_fw.a |
| 15 | 14 |
| 16 SUBDIRS=vboot_firmware cgptlib misclibs vfirmware vkernel utility tests | 15 SUBDIRS=vboot_firmware misclibs vfirmware vkernel utility tests |
| 17 | 16 |
| 18 all: | 17 all: |
| 19 set -e; \ | 18 set -e; \ |
| 20 for i in $(SUBDIRS); do \ | 19 for i in $(SUBDIRS); do \ |
| 21 make -C $$i; \ | 20 make -C $$i; \ |
| 22 done | 21 done |
| 23 | 22 |
| 24 clean: | 23 clean: |
| 25 set -e; \ | 24 set -e; \ |
| 26 for i in $(SUBDIRS); do \ | 25 for i in $(SUBDIRS); do \ |
| 27 make -C $$i clean; \ | 26 make -C $$i clean; \ |
| 28 done | 27 done |
| OLD | NEW |