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 |
(...skipping 21 matching lines...) Expand all Loading... | |
32 # | 32 # |
33 SOURCES=hello_world.c | 33 SOURCES=hello_world.c |
34 | 34 |
35 | 35 |
36 # | 36 # |
37 # List of libraries to link against. Unlike some tools, the GCC and LLVM | 37 # List of libraries to link against. Unlike some tools, the GCC and LLVM |
38 # based tools require libraries to be specified in the correct order. The | 38 # based tools require libraries to be specified in the correct order. The |
39 # order should be symbol reference followed by symbol definition, with direct | 39 # order should be symbol reference followed by symbol definition, with direct |
40 # sources to the link (object files) are left most. In this case: | 40 # sources to the link (object files) are left most. In this case: |
41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc | 41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc |
42 # Notice that pthread and libc are implied and come last through standard | 42 # Notice that libc is implied and come last through standard compiler/link |
43 # compiler/link switches, for example -pthread. | 43 # switches. |
44 # | 44 # |
45 LIBS=ppapi_main nacl_mounts ppapi_cpp ppapi | 45 # We break this list down into two parts, the set we need to rebuild (DEPS) |
46 # and the set we do not. | |
47 # | |
48 DEPS=ppapi_main | |
binji
2013/01/02 21:02:26
why do we need to rebuild ppapi_main?
noelallen1
2013/01/07 20:01:30
We provide the DEPS in case someone wants to modif
binji
2013/01/08 23:39:32
OK, seems like we'd want to include any buildable
noelallen_use_chromium
2013/01/09 17:48:46
Yes. nacl_mounts should be in there. It was remo
| |
49 LIBS=$(DEPS) ppapi_cpp ppapi pthread nacl_mounts | |
46 | 50 |
47 | 51 |
48 # | 52 # |
53 # Use the library dependency macro for each dependency | |
54 # | |
55 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) | |
56 | |
57 # | |
49 # Use the compile macro for each source. | 58 # Use the compile macro for each source. |
50 # | 59 # |
51 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) | 60 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) |
52 | 61 |
53 # | 62 # |
54 # Use the link macro for this target on the list of sources. | 63 # Use the link macro for this target on the list of sources. |
55 # | 64 # |
56 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) | 65 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) |
57 | 66 |
58 # | 67 # |
59 # Specify the NMF to be created with no additional arugments. | 68 # Specify the NMF to be created with no additional arugments. |
60 # | 69 # |
61 $(eval $(call NMF_RULE,$(TARGET),)) | 70 $(eval $(call NMF_RULE,$(TARGET),)) |
OLD | NEW |