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

Side by Side Diff: native_client_sdk/src/examples/debugging/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 # 18 # toolchain we use by default will be the first valid one listed
19 include common.mk 19 VALID_TOOLCHAINS:=newlib
20 20
21 21
22 # 22 #
23 # Set Chrome Arguments and Environment Variables to support development
24 # only feature.
25 #
26 CHROME_ARGS+=--no-sandbox
27 CHROME_ENV:=NACL_DANGEROUS_ENABLE_FILE_ACCESS=1
28 CHROME_ENV+=NACL_SECURITY_DISABLE=1
29 CHROME_ENV+=NACL_UNTRUSTED_EXCEPTION_HANDLING=1
30
31
32 #
33 # Get pepper directory for toolchain and includes.
34 #
35 # If NACL_SDK_ROOT is not set, then assume it can be found relative to
36 # to this Makefile.
37 #
38 NACL_SDK_ROOT?=$(abspath $(CURDIR)/../..)
39 include $(NACL_SDK_ROOT)/tools/common.mk
40
41
42 #
23 # Target Name 43 # Target Name
24 # 44 #
25 # The base name of the final NEXE, also the name of the NMF file containing 45 # The base name of the final NEXE, also the name of the NMF file containing
26 # the mapping between architecture and actual NEXE. 46 # the mapping between architecture and actual NEXE.
27 # 47 #
28 TARGET=hello_world 48 TARGET=debugging
29 49
30 # 50 #
31 # List of sources to compile 51 # List of sources to compile
32 # 52 #
33 SOURCES=hello_world.c 53 SOURCES=hello_world.c string_stream.c untrusted_crash_dump.c
34 54
35 55
36 # 56 #
37 # List of libraries to link against. Unlike some tools, the GCC and LLVM 57 # 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 58 # based tools require libraries to be specified in the correct order. The
39 # order should be symbol reference followed by symbol definition, with direct 59 # order should be symbol reference followed by symbol definition, with direct
40 # sources to the link (object files) are left most. In this case: 60 # sources to the link (object files) are left most. In this case:
41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc 61 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
42 # Notice that libc is implied and come last through standard compiler/link 62 # Notice that libc is implied and come last through standard compiler/link
43 # switches. 63 # switches.
44 # 64 #
45 # We break this list down into two parts, the set we need to rebuild (DEPS) 65 # We break this list down into two parts, the set we need to rebuild (DEPS)
46 # and the set we do not. This example does not havea any additional library 66 # and the set we do not. This example does not havea any additional library
47 # dependencies. 67 # dependencies.
48 # 68 #
49 DEPS= 69 DEPS=
50 LIBS=$(DEPS) ppapi pthread 70 LIBS=$(DEPS) ppapi_cpp ppapi pthread
51 71
52 72
53 # 73 #
54 # Use the library dependency macro for each dependency 74 # Use the library dependency macro for each dependency
55 # 75 #
56 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) 76 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
57 77
58 # 78 #
59 # Use the compile macro for each source. 79 # Use the compile macro for each source.
60 # 80 #
61 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) 81 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-fno-omit-frame-point er)))
62 82
63 # 83 #
64 # Use the link macro for this target on the list of sources. 84 # Use the link macro for this target on the list of sources.
65 # 85 #
66 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) 86 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
67 87
68 # 88 #
69 # Specify the NMF to be created with no additional arugments. 89 # Specify the NMF to be created with no additional arugments.
70 # 90 #
71 $(eval $(call NMF_RULE,$(TARGET),)) 91 $(eval $(call NMF_RULE,$(TARGET),))
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/Makefile ('k') | native_client_sdk/src/examples/debugging/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698