OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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 # | 5 # |
6 # GNU Make based build file. For details on GNU Make see: | 6 # GNU Make based build file. For details on GNU Make see: |
7 # http://www.gnu.org/software/make/manual/make.html | 7 # http://www.gnu.org/software/make/manual/make.html |
8 # | 8 # |
9 # | 9 # |
10 | 10 |
11 # Default configuration | 11 # Default configuration |
12 # | 12 # |
13 # By default we will build a Debug configuration using the GCC newlib toolcahin | 13 # By default we will build a Debug configuration using the GCC newlib toolchain |
14 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on | 14 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on |
15 # the make command-line or in this file prior to including common.mk. The | 15 # the make command-line or in this file prior to including common.mk. The |
16 # toolchain we use by default will be the first valid one listed | 16 # toolchain we use by default will be the first valid one listed |
17 VALID_TOOLCHAINS:={{' '.join(tools)}} | 17 VALID_TOOLCHAINS:={{' '.join(tools)}} |
18 | 18 |
19 | 19 |
20 [[# Only one target is allowed in a library project]] | 20 [[# Only one target is allowed in a library project]] |
21 [[target = targets[0] ]] | 21 [[target = targets[0] ]] |
22 [[name = target['NAME'] ]] | 22 [[name = target['NAME'] ]] |
23 [[flags = ' '.join(target.get('CCFLAGS', []))]] | 23 [[flags = ' '.join(target.get('CCFLAGS', []))]] |
(...skipping 30 matching lines...) Expand all Loading... |
54 | 54 |
55 # | 55 # |
56 # Use the compile macro for each source. | 56 # Use the compile macro for each source. |
57 # | 57 # |
58 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),{{flags}}))) | 58 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),{{flags}}))) |
59 | 59 |
60 # | 60 # |
61 # Use the lib macro for this target on the list of sources. | 61 # Use the lib macro for this target on the list of sources. |
62 # | 62 # |
63 $(eval $(call LIB_RULE,{{name}},$(SOURCES))) | 63 $(eval $(call LIB_RULE,{{name}},$(SOURCES))) |
OLD | NEW |