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

Unified Diff: examples/graphics/life/Makefile

Issue 6286025: Port the Life example to Pepper 2. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 9 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 | examples/graphics/life/dragger.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/graphics/life/Makefile
===================================================================
--- examples/graphics/life/Makefile (revision 158)
+++ examples/graphics/life/Makefile (working copy)
@@ -5,22 +5,40 @@
# Makefile for the Life example.
NACLPORTS_ROOT ?= ../../..
+INSTALL_DIR ?= $$HOME/Sites/life
-CCFILES = life.cc
+CCFILES = life_module.cc life.cc
-CFLAGS = -Wall -Wno-long-long -pthread -DXP_UNIX -Werror
+CFLAGS = -Wall -Wno-long-long -pthread -Werror
INCLUDES = -I$(NACL_SDK_ROOT) -I$(NACLPORTS_ROOT)
-LDFLAGS = -lgoogle_nacl_imc \
- -lgoogle_nacl_npruntime \
+LDFLAGS = -lppruntime \
+ -lppapi_cpp \
+ -lgoogle_nacl_platform \
+ -lgio \
-lpthread \
- -lsrpc
+ -lsrpc \
+ $(ARCH_FLAGS)
+RELEASE_MODULES = life_x86_32.nexe life_x86_64.nexe
+DEBUG_MODULES = life_x86_32_dbg.nexe life_x86_64_dbg.nexe
+ALL_MODULES = $(RELEASE_MODULES) $(DEBUG_MODULES)
+
+APPLICATION_FILES = life.html \
+ life.css \
+ life.nmf \
+ dragger.js \
+ life.js \
+ $(RELEASE_MODULES)
+
# The check_variables target is in nacl_build.mk.
-all: check_variables life_x86_32.nexe life_x86_64.nexe life_x86_32_dbg.nexe life_x86_64_dbg.nexe
+all: check_variables $(ALL_MODULES)
# nacl_build.mk has rules to build .o files from .cc files.
-include $(NACLPORTS_ROOT)/common_build_scripts/nacl_build.mk
+$(OBJECTS_X86_32) $(OBJECTS_X86_64) \
+$(OBJECTS_X86_32_DBG) $(OBJECTS_X86_64_DBG):: life.h
+
life_x86_32.nexe: $(OBJECTS_X86_32)
$(CPP) $^ $(LDFLAGS) -m32 -o $@
$(NACL_STRIP) $@ -o $@
@@ -35,6 +53,11 @@
life_x86_64_dbg.nexe: $(OBJECTS_X86_64_DBG)
$(CPP) $^ $(LDFLAGS) -m64 -o $@
+install: $(APPLICATION_FILES) $(INSTALL_DIR)
+ install $(APPLICATION_FILES) $(INSTALL_DIR)
+$(INSTALL_DIR):
+ mkdir -p $@
+
clean:
-$(RM) *.o *.obj *.nexe
« no previous file with comments | « no previous file | examples/graphics/life/dragger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698