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