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 -ansi -DNDEBUG | 6 export CFLAGS = -Wall -ansi -DNDEBUG -O3 |
7 export TOP = $(shell pwd) | 7 export TOP = $(shell pwd) |
8 export INCLUDEDIR = $(TOP)/include | 8 export INCLUDEDIR = $(TOP)/include |
9 export INCLUDES = -I$(INCLUDEDIR) | 9 export INCLUDES = -I$(INCLUDEDIR) |
10 | 10 |
11 SUBDIRS=common crypto utils tests | 11 SUBDIRS=common crypto utils tests |
12 | 12 |
13 all: | 13 all: |
14 for i in $(SUBDIRS); do \ | 14 for i in $(SUBDIRS); do \ |
15 ( cd $$i ; $(MAKE)) ; \ | 15 ( cd $$i ; $(MAKE)) ; \ |
16 done | 16 done |
17 | 17 |
18 clean: | 18 clean: |
19 for i in $(SUBDIRS); do \ | 19 for i in $(SUBDIRS); do \ |
20 ( cd $$i ; make clean) ; \ | 20 ( cd $$i ; make clean) ; \ |
21 done | 21 done |
OLD | NEW |