OLD | NEW |
(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) |
OLD | NEW |