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

Unified Diff: native_client_sdk/src/examples/hello_world/Makefile

Issue 11725003: Update make for hello examples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | native_client_sdk/src/examples/hello_world/example.dsc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/hello_world/Makefile
diff --git a/native_client_sdk/src/examples/hello_world_stdio/Makefile b/native_client_sdk/src/examples/hello_world/Makefile
similarity index 77%
copy from native_client_sdk/src/examples/hello_world_stdio/Makefile
copy to native_client_sdk/src/examples/hello_world/Makefile
index 1f644cd8f75bf0cc44a46e558467e97e8dfe4373..1c20829676e5e2d81f4676b999e2b66282d645e1 100644
--- a/native_client_sdk/src/examples/hello_world_stdio/Makefile
+++ b/native_client_sdk/src/examples/hello_world/Makefile
@@ -25,7 +25,7 @@ include common.mk
# The base name of the final NEXE, also the name of the NMF file containing
# the mapping between architecture and actual NEXE.
#
-TARGET=hello_world_stdio
+TARGET=hello_world
#
# List of sources to compile
@@ -39,11 +39,21 @@ SOURCES=hello_world.c
# order should be symbol reference followed by symbol definition, with direct
# sources to the link (object files) are left most. In this case:
# hello_world -> ppapi_main -> ppapi_cpp -> ppapi -> pthread -> libc
-# Notice that pthread and libc are implied and come last through standard
-# compiler/link switches, for example -pthread.
-#
-LIBS=ppapi_main nacl_mounts ppapi_cpp ppapi
+# Notice that libc is implied and come last through standard compiler/link
+# switches.
+#
+# We break this list down into two parts, the set we need to rebuild (DEPS)
+# and the set we do not. This example does not havea any additional library
+# dependencies.
+#
+DEPS=
+LIBS=$(DEPS) ppapi pthread
+
+#
+# Use the library dependency macro for each dependency
+#
+$(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
#
# Use the compile macro for each source.
« no previous file with comments | « no previous file | native_client_sdk/src/examples/hello_world/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698