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 INCLUDES = \ | 8 export INCLUDES = \ |
9 -I$(TOP)/common/include \ | 9 -I$(TOP)/common/include \ |
10 -I$(TOP)/cryptolib/include \ | 10 -I$(TOP)/cryptolib/include \ |
11 -I$(TOP)/misclibs/include \ | 11 -I$(TOP)/misclibs/include \ |
12 -I$(TOP)/cgptlib | 12 -I$(TOP)/cgptlib |
13 | 13 |
14 SUBDIRS=common cgptlib cryptolib misclibs vfirmware vkernel utility tests | 14 SUBDIRS=common cgptlib cryptolib misclibs vfirmware vkernel utility tests |
15 | 15 |
16 all: | 16 all: |
17 » for i in $(SUBDIRS); do \ | 17 » set -e; \ |
Bill Richardson
2010/05/20 16:51:15
That's not parallelizable. Use this instead:
all:
Louis
2010/05/21 03:43:21
This cannot be parallelized because we need to com
| |
18 » ( cd $$i ; $(MAKE)) ; \ | 18 » » for i in $(SUBDIRS); do \ |
19 » make -C $$i; \ | |
19 done | 20 done |
20 | 21 |
21 clean: | 22 clean: |
23 set -e; \ | |
Bill Richardson
2010/05/20 16:51:15
clean: $(foreach DIR,$(SUBDIRS),$(DIR)-subdir)
Louis
2010/05/21 03:43:21
This cannot be parallelized because our build syst
| |
22 for i in $(SUBDIRS); do \ | 24 for i in $(SUBDIRS); do \ |
23 » ( cd $$i ; make clean) ; \ | 25 » » make -C $$i clean ; \ |
24 done | 26 done |
OLD | NEW |