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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 # based tools require libraries to be specified in the correct order. The | 47 # based tools require libraries to be specified in the correct order. The |
48 # order should be symbol reference followed by symbol definition, with direct | 48 # order should be symbol reference followed by symbol definition, with direct |
49 # sources to the link (object files) are left most. In this case: | 49 # sources to the link (object files) are left most. In this case: |
50 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc | 50 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc |
51 # Notice that libc is implied and come last through standard compiler/link | 51 # Notice that libc is implied and come last through standard compiler/link |
52 # switches. | 52 # switches. |
53 # | 53 # |
54 # We break this list down into two parts, the set we need to rebuild (DEPS) | 54 # We break this list down into two parts, the set we need to rebuild (DEPS) |
55 # and the set we do not. | 55 # and the set we do not. |
56 # | 56 # |
57 DEPS=ppapi_main nacl_mounts | 57 DEPS=ppapi_main nacl_io |
58 LIBS=$(DEPS) ppapi_cpp ppapi pthread | 58 LIBS=$(DEPS) ppapi_cpp ppapi pthread |
59 | 59 |
60 | 60 |
61 # | 61 # |
62 # Use the library dependency macro for each dependency | 62 # Use the library dependency macro for each dependency |
63 # | 63 # |
64 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) | 64 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) |
65 | 65 |
66 # | 66 # |
67 # Use the compile macro for each source. | 67 # Use the compile macro for each source. |
68 # | 68 # |
69 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) | 69 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) |
70 | 70 |
71 # | 71 # |
72 # Use the link macro for this target on the list of sources. | 72 # Use the link macro for this target on the list of sources. |
73 # | 73 # |
74 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) | 74 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) |
75 | 75 |
76 # | 76 # |
77 # Specify the NMF to be created with no additional arugments. | 77 # Specify the NMF to be created with no additional arugments. |
78 # | 78 # |
79 $(eval $(call NMF_RULE,$(TARGET),)) | 79 $(eval $(call NMF_RULE,$(TARGET),)) |
OLD | NEW |