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

Side by Side 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, 10 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
« no previous file with comments | « no previous file | examples/graphics/life/dragger.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2010, The Native Client SDK Authors. All rights reserved. 1 # Copyright 2010, The Native Client SDK Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can 2 # Use of this source code is governed by a BSD-style license that can
3 # be found in the LICENSE file. 3 # be found in the LICENSE file.
4 4
5 # Makefile for the Life example. 5 # Makefile for the Life example.
6 6
7 NACLPORTS_ROOT ?= ../../.. 7 NACLPORTS_ROOT ?= ../../..
8 INSTALL_DIR ?= $$HOME/Sites/life
8 9
9 CCFILES = life.cc 10 CCFILES = life_module.cc life.cc
10 11
11 CFLAGS = -Wall -Wno-long-long -pthread -DXP_UNIX -Werror 12 CFLAGS = -Wall -Wno-long-long -pthread -Werror
12 INCLUDES = -I$(NACL_SDK_ROOT) -I$(NACLPORTS_ROOT) 13 INCLUDES = -I$(NACL_SDK_ROOT) -I$(NACLPORTS_ROOT)
13 LDFLAGS = -lgoogle_nacl_imc \ 14 LDFLAGS = -lppruntime \
14 -lgoogle_nacl_npruntime \ 15 -lppapi_cpp \
16 -lgoogle_nacl_platform \
17 -lgio \
15 -lpthread \ 18 -lpthread \
16 -lsrpc 19 -lsrpc \
20 $(ARCH_FLAGS)
21
22 RELEASE_MODULES = life_x86_32.nexe life_x86_64.nexe
23 DEBUG_MODULES = life_x86_32_dbg.nexe life_x86_64_dbg.nexe
24 ALL_MODULES = $(RELEASE_MODULES) $(DEBUG_MODULES)
25
26 APPLICATION_FILES = life.html \
27 life.css \
28 life.nmf \
29 dragger.js \
30 life.js \
31 $(RELEASE_MODULES)
17 32
18 # The check_variables target is in nacl_build.mk. 33 # The check_variables target is in nacl_build.mk.
19 all: check_variables life_x86_32.nexe life_x86_64.nexe life_x86_32_dbg.nexe life _x86_64_dbg.nexe 34 all: check_variables $(ALL_MODULES)
20 35
21 # nacl_build.mk has rules to build .o files from .cc files. 36 # nacl_build.mk has rules to build .o files from .cc files.
22 -include $(NACLPORTS_ROOT)/common_build_scripts/nacl_build.mk 37 -include $(NACLPORTS_ROOT)/common_build_scripts/nacl_build.mk
23 38
39 $(OBJECTS_X86_32) $(OBJECTS_X86_64) \
40 $(OBJECTS_X86_32_DBG) $(OBJECTS_X86_64_DBG):: life.h
41
24 life_x86_32.nexe: $(OBJECTS_X86_32) 42 life_x86_32.nexe: $(OBJECTS_X86_32)
25 $(CPP) $^ $(LDFLAGS) -m32 -o $@ 43 $(CPP) $^ $(LDFLAGS) -m32 -o $@
26 $(NACL_STRIP) $@ -o $@ 44 $(NACL_STRIP) $@ -o $@
27 45
28 life_x86_64.nexe: $(OBJECTS_X86_64) 46 life_x86_64.nexe: $(OBJECTS_X86_64)
29 $(CPP) $^ $(LDFLAGS) -m64 -o $@ 47 $(CPP) $^ $(LDFLAGS) -m64 -o $@
30 $(NACL_STRIP) $@ -o $@ 48 $(NACL_STRIP) $@ -o $@
31 49
32 life_x86_32_dbg.nexe: $(OBJECTS_X86_32_DBG) 50 life_x86_32_dbg.nexe: $(OBJECTS_X86_32_DBG)
33 $(CPP) $^ $(LDFLAGS) -m32 -o $@ 51 $(CPP) $^ $(LDFLAGS) -m32 -o $@
34 52
35 life_x86_64_dbg.nexe: $(OBJECTS_X86_64_DBG) 53 life_x86_64_dbg.nexe: $(OBJECTS_X86_64_DBG)
36 $(CPP) $^ $(LDFLAGS) -m64 -o $@ 54 $(CPP) $^ $(LDFLAGS) -m64 -o $@
37 55
56 install: $(APPLICATION_FILES) $(INSTALL_DIR)
57 install $(APPLICATION_FILES) $(INSTALL_DIR)
58
59 $(INSTALL_DIR):
60 mkdir -p $@
38 61
39 clean: 62 clean:
40 -$(RM) *.o *.obj *.nexe 63 -$(RM) *.o *.obj *.nexe
OLDNEW
« 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