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 -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 |
(...skipping 16 matching lines...) Expand all Loading... |
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 for i in $(SUBDIRS); do \ | 38 for i in $(SUBDIRS); do \ |
38 make -C $$i; \ | 39 make -C $$i; \ |
39 done | 40 done |
40 | 41 |
41 clean: | 42 clean: |
42 /bin/rm -rf ${BUILD} | 43 /bin/rm -rf ${BUILD} |
43 | 44 |
44 install: | 45 install: |
45 $(MAKE) -C utility install | 46 $(MAKE) -C utility install |
46 $(MAKE) -C cgpt install | 47 $(MAKE) -C cgpt install |
47 | 48 |
48 runtests: | 49 runtests: |
49 $(MAKE) -C tests runtests | 50 $(MAKE) -C tests runtests |
50 | 51 |
51 rbtest: | 52 rbtest: |
52 $(MAKE) -C tests rbtest | 53 $(MAKE) -C tests rbtest |
53 | |
54 update_tlcl_structures: | |
55 $(MAKE) -C utility update_tlcl_structures | |
OLD | NEW |