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

Side by Side Diff: examples/srpc/duality/Makefile

Issue 2856050: Adding srpc example to naclports. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 10 years, 5 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/srpc/duality/duality.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # be found in the LICENSE file.
4
5 # Makefile for the Duality (IMC) example.
6
7 CCFILES = duality.cc \
8 npp_gate.cc \
9 loader.cc \
10 scripting_bridge.cc \
11 scriptable.cc
12
13 OBJECTS_X86_32 = $(CCFILES:%.cc=%_x86_32.o)
14 OBJECTS_X86_64 = $(CCFILES:%.cc=%_x86_64.o)
15
16 NACL_SDK_ROOT = ../../..
17
18 CFLAGS = -Wall -Wno-long-long -pthread -DXP_UNIX -Werror
19 INCLUDES = -I$(NACL_SDK_ROOT) -I$(NACL_ROOT)
20 LDFLAGS = -lgoogle_nacl_npruntime \
21 -lpthread \
22 -lsrpc \
23 -lgoogle_nacl_imc \
24 $(ARCH_FLAGS)
25 OPT_FLAGS = -O2
26
27 all: duality_x86_32.nexe duality_x86_64.nexe
28
29 # common.mk has rules to build .o files from .cc files.
30 -include nacl_build.mk
31
32 duality_x86_32.nexe: $(OBJECTS_X86_32)
33 $(CPP) $^ $(LDFLAGS) -m32 -o $@
34
35 duality_x86_64.nexe: $(OBJECTS_X86_64)
36 $(CPP) $^ $(LDFLAGS) -m64 -o $@
37
38 clean:
39 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \
40 duality_x86_32.nexe duality_x86_64.nexe
41
42 # This target is used by the SDK build system to produce a pre-built version
43 # of the .nexe. You do not need to call this target.
44 install_prebuilt: duality_x86_32.nexe duality_x86_64.nexe
45 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64)
OLDNEW
« no previous file with comments | « no previous file | examples/srpc/duality/duality.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698