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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | examples/srpc/duality/duality.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/srpc/duality/Makefile
===================================================================
--- examples/srpc/duality/Makefile (revision 0)
+++ examples/srpc/duality/Makefile (revision 0)
@@ -0,0 +1,45 @@
+# Copyright 2010, The Native Client SDK Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can
+# be found in the LICENSE file.
+
+# Makefile for the Duality (IMC) example.
+
+CCFILES = duality.cc \
+ npp_gate.cc \
+ loader.cc \
+ scripting_bridge.cc \
+ scriptable.cc
+
+OBJECTS_X86_32 = $(CCFILES:%.cc=%_x86_32.o)
+OBJECTS_X86_64 = $(CCFILES:%.cc=%_x86_64.o)
+
+NACL_SDK_ROOT = ../../..
+
+CFLAGS = -Wall -Wno-long-long -pthread -DXP_UNIX -Werror
+INCLUDES = -I$(NACL_SDK_ROOT) -I$(NACL_ROOT)
+LDFLAGS = -lgoogle_nacl_npruntime \
+ -lpthread \
+ -lsrpc \
+ -lgoogle_nacl_imc \
+$(ARCH_FLAGS)
+OPT_FLAGS = -O2
+
+all: duality_x86_32.nexe duality_x86_64.nexe
+
+# common.mk has rules to build .o files from .cc files.
+-include nacl_build.mk
+
+duality_x86_32.nexe: $(OBJECTS_X86_32)
+ $(CPP) $^ $(LDFLAGS) -m32 -o $@
+
+duality_x86_64.nexe: $(OBJECTS_X86_64)
+ $(CPP) $^ $(LDFLAGS) -m64 -o $@
+
+clean:
+ -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \
+ duality_x86_32.nexe duality_x86_64.nexe
+
+# This target is used by the SDK build system to produce a pre-built version
+# of the .nexe. You do not need to call this target.
+install_prebuilt: duality_x86_32.nexe duality_x86_64.nexe
+ -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64)
« 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