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

Side by Side Diff: native_client_sdk/src/examples/hello_world_gles/Makefile

Issue 11725003: Update make for hello examples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
18 # 18 #
19 include common.mk 19 include common.mk
20 20
21 21
22 # 22 #
23 # Target Name 23 # Target Name
24 # 24 #
25 # The base name of the final NEXE, also the name of the NMF file containing 25 # The base name of the final NEXE, also the name of the NMF file containing
26 # the mapping between architecture and actual NEXE. 26 # the mapping between architecture and actual NEXE.
27 # 27 #
28 TARGET=hello_world_stdio 28 TARGET=hello_world_gles
29 29
30 # 30 #
31 # List of sources to compile 31 # List of sources to compile
32 # 32 #
33 SOURCES=hello_world.c 33 SOURCES=hello_world.cc matrix.cc
34 34
35 35
36 # 36 #
37 # List of libraries to link against. Unlike some tools, the GCC and LLVM 37 # 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 38 # based tools require libraries to be specified in the correct order. The
39 # order should be symbol reference followed by symbol definition, with direct 39 # order should be symbol reference followed by symbol definition, with direct
40 # sources to the link (object files) are left most. In this case: 40 # sources to the link (object files) are left most. In this case:
41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc 41 # hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
42 # Notice that pthread and libc are implied and come last through standard 42 # Notice that libc is implied and come last through standard compiler/link
43 # compiler/link switches, for example -pthread. 43 # switches.
44 # 44 #
45 LIBS=ppapi_main nacl_mounts ppapi_cpp ppapi 45 # We break this list down into two parts, the set we need to rebuild (DEPS)
46 # and the set we do not.
47 #
48 LIBS=ppapi_gles2 ppapi pthread
binji 2013/01/02 21:02:26 no DEPS here?
noelallen1 2013/01/07 20:01:30 Done.
46 49
47 50
48 # 51 #
52 # Use the library dependency macro for each dependency
53 #
54 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
55
56 #
49 # Use the compile macro for each source. 57 # Use the compile macro for each source.
50 # 58 #
51 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src)))) 59 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src))))
52 60
53 # 61 #
54 # Use the link macro for this target on the list of sources. 62 # Use the link macro for this target on the list of sources.
55 # 63 #
56 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS))) 64 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS)))
57 65
58 # 66 #
59 # Specify the NMF to be created with no additional arugments. 67 # Specify the NMF to be created with no additional arugments.
60 # 68 #
61 $(eval $(call NMF_RULE,$(TARGET),)) 69 $(eval $(call NMF_RULE,$(TARGET),))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698