| Index: native_client_sdk/src/examples/hello_world_interactive/Makefile
|
| diff --git a/native_client_sdk/src/examples/hello_world_stdio/Makefile b/native_client_sdk/src/examples/hello_world_interactive/Makefile
|
| similarity index 77%
|
| copy from native_client_sdk/src/examples/hello_world_stdio/Makefile
|
| copy to native_client_sdk/src/examples/hello_world_interactive/Makefile
|
| index 1f644cd8f75bf0cc44a46e558467e97e8dfe4373..747d52c06a21e368f76d4acf764ea384b8cd3aa2 100644
|
| --- a/native_client_sdk/src/examples/hello_world_stdio/Makefile
|
| +++ b/native_client_sdk/src/examples/hello_world_interactive/Makefile
|
| @@ -25,12 +25,12 @@ 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_interactive
|
|
|
| #
|
| # List of sources to compile
|
| #
|
| -SOURCES=hello_world.c
|
| +SOURCES=hello_world.cc helper_functions.cc
|
|
|
|
|
| #
|
| @@ -39,11 +39,19 @@ 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.
|
| +#
|
| +LIBS=ppapi_cpp 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.
|
|
|