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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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
(Empty)
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
3 # found in the LICENSE file.
4
5 #
6 # GNU Make based build file. For details on GNU Make see:
7 # http://www.gnu.org/software/make/manual/make.html
8 #
9 #
10
11
12 #
13 # Default configuration
14 #
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
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 pnacl win
20 INCLUDES+=$(NACL_SDK_ROOT)/include/gtest/internal
21
22 #
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
30
31
32 #
33 # List of libraries to link against. Unlike some tools, the GCC and LLVM
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
36 # sources to the link (object files) are left most. In this case:
37 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
38 # Notice that libc is implied and come last through standard compiler/link
39 # switches.
40 #
41 # We break this list down into two parts, the set we need to rebuild (DEPS)
42 # and the set we do not.
43 #
44 DEPS=nacl_mounts ppapi_cpp
45 # Order matters here: gtest has a "main" function that will be used if
46 # referenced before ppapi.
47 LIBS=gtest_ppapi $(DEPS) gmock ppapi gtest pthread
48
49 #
50 # Use the library dependency macro for each dependency
51 #
52 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
53
54 #
55 # Target Name
56 #
57 # The base name of the final NEXE, also the name of the NMF file containing
58 # the mapping between architecture and actual NEXE.
59 #
60 TARGET=nacl_mounts_test
61
62 #
63 # List of sources to compile
64 #
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
67 SOURCES+=mount_html5fs_test.cc mount_http_test.cc mount_test.cc path_test.cc
68 SOURCES+=pepper_interface_mock.cc
69
70 #
71 # Use the compile macro for each source.
72 #
73 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno -variadic-macros)))
74
75 #
76 # Use the link macro for this target on the list of sources.
77 #
78 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
79
80 #
81 # Specify the NMF to be created with no additional arugments.
82 #
83 $(eval $(call NMF_RULE,$(TARGET),))
84
85
86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698