| 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 23 matching lines...) Expand all Loading... |
| 34 # based tools require libraries to be specified in the correct order. The | 34 # based tools require libraries to be specified in the correct order. The |
| 35 # order should be symbol reference followed by symbol definition, with direct | 35 # order should be symbol reference followed by symbol definition, with direct |
| 36 # sources to the link (object files) are left most. In this case: | 36 # sources to the link (object files) are left most. In this case: |
| 37 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc | 37 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc |
| 38 # Notice that libc is implied and come last through standard compiler/link | 38 # Notice that libc is implied and come last through standard compiler/link |
| 39 # switches. | 39 # switches. |
| 40 # | 40 # |
| 41 # We break this list down into two parts, the set we need to rebuild (DEPS) | 41 # We break this list down into two parts, the set we need to rebuild (DEPS) |
| 42 # and the set we do not. | 42 # and the set we do not. |
| 43 # | 43 # |
| 44 DEPS=nacl_mounts ppapi_cpp | 44 DEPS=nacl_io ppapi_cpp |
| 45 # Order matters here: gtest has a "main" function that will be used if | 45 # Order matters here: gtest has a "main" function that will be used if |
| 46 # referenced before ppapi. | 46 # referenced before ppapi. |
| 47 LIBS=gtest_ppapi $(DEPS) gmock ppapi gtest pthread | 47 LIBS=gtest_ppapi $(DEPS) gmock ppapi gtest pthread |
| 48 | 48 |
| 49 # | 49 # |
| 50 # Use the library dependency macro for each dependency | 50 # Use the library dependency macro for each dependency |
| 51 # | 51 # |
| 52 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) | 52 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) |
| 53 | 53 |
| 54 # | 54 # |
| 55 # Target Name | 55 # Target Name |
| 56 # | 56 # |
| 57 # The base name of the final NEXE, also the name of the NMF file containing | 57 # The base name of the final NEXE, also the name of the NMF file containing |
| 58 # the mapping between architecture and actual NEXE. | 58 # the mapping between architecture and actual NEXE. |
| 59 # | 59 # |
| 60 TARGET=nacl_mounts_test | 60 TARGET=nacl_io_test |
| 61 | 61 |
| 62 # | 62 # |
| 63 # List of sources to compile | 63 # List of sources to compile |
| 64 # | 64 # |
| 65 SOURCES:=kernel_object_test.cc kernel_proxy_mock.cc kernel_proxy_test.cc | 65 SOURCES:=kernel_object_test.cc kernel_proxy_mock.cc kernel_proxy_test.cc |
| 66 SOURCES+=kernel_wrap_test.cc module.cc mount_node_test.cc | 66 SOURCES+=kernel_wrap_test.cc module.cc mount_node_test.cc |
| 67 SOURCES+=mount_html5fs_test.cc mount_http_test.cc mount_test.cc path_test.cc | 67 SOURCES+=mount_html5fs_test.cc mount_http_test.cc mount_test.cc path_test.cc |
| 68 SOURCES+=pepper_interface_mock.cc | 68 SOURCES+=pepper_interface_mock.cc |
| 69 | 69 |
| 70 # | 70 # |
| 71 # Use the compile macro for each source. | 71 # Use the compile macro for each source. |
| 72 # | 72 # |
| 73 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno
-variadic-macros))) | 73 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno
-variadic-macros))) |
| 74 | 74 |
| 75 # | 75 # |
| 76 # Use the link macro for this target on the list of sources. | 76 # Use the link macro for this target on the list of sources. |
| 77 # | 77 # |
| 78 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) | 78 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) |
| 79 | 79 |
| 80 # | 80 # |
| 81 # Specify the NMF to be created with no additional arugments. | 81 # Specify the NMF to be created with no additional arugments. |
| 82 # | 82 # |
| 83 $(eval $(call NMF_RULE,$(TARGET),)) | 83 $(eval $(call NMF_RULE,$(TARGET),)) |
| 84 | 84 |
| 85 | 85 |
| 86 | 86 |
| OLD | NEW |