Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts_test/Makefile

Issue 11882012: Convert all project to use common.mk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 11
12 # 12 #
13 # Default configuration 13 # Default configuration
14 # 14 #
15 # By default we will build a Debug configuration using the GCC newlib toolcahin 15 # By default we will build a Debug configuration using the GCC newlib toolcahin
16 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on 16 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on
17 # the make command-line or in this file prior to including common.mk 17 # the make command-line or in this file prior to including common.mk. The
18 # toolchain we use by default will be the first valid one listed
19 VALID_TOOLCHAINS:=newlib glibc win
20 INCLUDES+=$(NACL_SDK_ROOT)/include/gtest/internal
21
18 # 22 #
19 include common.mk 23 # Get pepper directory for toolchain and includes.
24 #
25 # If NACL_SDK_ROOT is not set, then assume it can be found relative to
26 # to this Makefile.
27 #
28 NACL_SDK_ROOT?=$(abspath $(CURDIR)/../..)
29 include $(NACL_SDK_ROOT)/tools/common.mk
20 30
21 31
22 # 32 #
23 # Target Name
24 #
25 # The base name of the final NEXE, also the name of the NMF file containing
26 # the mapping between architecture and actual NEXE.
27 #
28 TARGET=hello_world_interactive
29
30 #
31 # List of sources to compile
32 #
33 SOURCES=hello_world.cc helper_functions.cc
34
35
36 #
37 # List of libraries to link against. Unlike some tools, the GCC and LLVM 33 # 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 34 # based tools require libraries to be specified in the correct order. The
39 # order should be symbol reference followed by symbol definition, with direct 35 # order should be symbol reference followed by symbol definition, with direct
40 # 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:
41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc 37 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
42 # 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
43 # switches. 39 # switches.
44 # 40 #
45 # 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)
46 # and the set we do not. 42 # and the set we do not.
47 # 43 #
48 LIBS=ppapi_cpp ppapi pthread 44 DEPS=nacl_mounts ppapi_cpp
49 45 LIBS=gtest_ppapi gtest gmock $(DEPS) ppapi pthread
50 46
51 # 47 #
52 # Use the library dependency macro for each dependency 48 # Use the library dependency macro for each dependency
53 # 49 #
54 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) 50 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
55 51
56 # 52 #
53 # Target Name
54 #
55 # The base name of the final NEXE, also the name of the NMF file containing
56 # the mapping between architecture and actual NEXE.
57 #
58 TARGET=nacl_mount_test
59
60 #
61 # List of sources to compile
62 #
63 SOURCES:=kernel_object_test.cc kernel_proxy_mock.cc kernel_proxy_test.cc
64 SOURCES+=kernel_wrap_test.cc module.cc mount_node_test.cc
65 SOURCES+=mount_html5fs_test.cc mount_test.cc path_test.cc
66 SOURCES+=pepper_interface_mock.cc
67
68 #
57 # Use the compile macro for each source. 69 # Use the compile macro for each source.
58 # 70 #
59 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) 71 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno -variadic-macros)))
60 72
61 # 73 #
62 # 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.
63 # 75 #
64 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) 76 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
65 77
66 # 78 #
67 # Specify the NMF to be created with no additional arugments. 79 # Specify the NMF to be created with no additional arugments.
68 # 80 #
69 $(eval $(call NMF_RULE,$(TARGET),)) 81 $(eval $(call NMF_RULE,$(TARGET),))
82
83
84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698