| 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 24 matching lines...) Expand all Loading... |
| 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 pthread and libc are implied and come last through standard |
| 43 # compiler/link switches, for example -pthread. | 43 # compiler/link switches, for example -pthread. |
| 44 # | 44 # |
| 45 LIBS=ppapi_main ppapi_cpp ppapi | 45 LIBS=ppapi_main nacl_mounts ppapi_cpp ppapi |
| 46 | 46 |
| 47 | 47 |
| 48 # | 48 # |
| 49 # Use the compile macro for each source. | 49 # Use the compile macro for each source. |
| 50 # | 50 # |
| 51 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) | 51 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) |
| 52 | 52 |
| 53 # | 53 # |
| 54 # Use the link macro for this target on the list of sources. | 54 # Use the link macro for this target on the list of sources. |
| 55 # | 55 # |
| 56 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) | 56 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) |
| 57 | 57 |
| 58 # | 58 # |
| 59 # Specify the NMF to be created with no additional arugments. | 59 # Specify the NMF to be created with no additional arugments. |
| 60 # | 60 # |
| 61 $(eval $(call NMF_RULE,$(TARGET),)) | 61 $(eval $(call NMF_RULE,$(TARGET),)) |
| OLD | NEW |