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

Side by Side Diff: native_client_sdk/src/examples/hello_nacl_mounts/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
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 # Target Name
34 #
35 # The base name of the final NEXE, also the name of the NMF file containing
36 # the mapping between architecture and actual NEXE.
37 #
38 TARGET=hello_nacl_mounts
39
40 #
41 # List of sources to compile
42 #
43 SOURCES=handlers.c hello_nacl_mounts.c queue.c
44
45
46 #
47 # List of libraries to link against. Unlike some tools, the GCC and LLVM
48 # based tools require libraries to be specified in the correct order. The
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:
51 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
52 # Notice that libc is implied and come last through standard compiler/link
53 # switches.
54 #
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 havea any additional library
57 # dependencies.
58 #
59 DEPS=nacl_mounts
60 LIBS=$(DEPS) ppapi pthread
61
62
63 #
64 # Use the library dependency macro for each dependency
65 #
66 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
67
68 #
69 # Use the compile macro for each source.
70 #
71 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src))))
72
73 #
74 # Use the link macro for this target on the list of sources.
75 #
76 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
77
78 #
79 # Specify the NMF to be created with no additional arugments.
80 #
81 $(eval $(call NMF_RULE,$(TARGET),))
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/hello_nacl_io/queue.c ('k') | native_client_sdk/src/examples/hello_nacl_mounts/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698