OLD | NEW |
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 Matrix example. | 5 # Makefile for the Matrix example. |
6 | 6 |
7 .PHONY: all clean | 7 .PHONY: all clean |
8 | 8 |
9 NACLPORTS_ROOT = ../../.. | 9 NACLPORTS_ROOT = ../../.. |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 matrix_x86_64.nexe: $(OBJECTS_X86_64) | 51 matrix_x86_64.nexe: $(OBJECTS_X86_64) |
52 $(CPP) $^ $(LDFLAGS) -m64 -o $@ | 52 $(CPP) $^ $(LDFLAGS) -m64 -o $@ |
53 | 53 |
54 clean: | 54 clean: |
55 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \ | 55 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \ |
56 matrix_x86_32.nexe matrix_x86_64.nexe | 56 matrix_x86_32.nexe matrix_x86_64.nexe |
57 | 57 |
58 # Build the required packages. | 58 # Build the required packages. |
59 $(BOOST_UBLAS_32): | 59 $(BOOST_UBLAS_32): |
60 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ | 60 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ |
61 » export NACL_PACKAGES_BITSIZE=32; \ | 61 » export NACL_ARCH=i686; \ |
62 ./nacl-boost_1_43_0.sh) | 62 ./nacl-boost_1_43_0.sh) |
63 | 63 |
64 $(BOOST_UBLAS_64): | 64 $(BOOST_UBLAS_64): |
65 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ | 65 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ |
66 » export NACL_PACKAGES_BITSIZE=64; \ | 66 » export NACL_ARCH=x86_64; \ |
67 ./nacl-boost_1_43_0.sh) | 67 ./nacl-boost_1_43_0.sh) |
68 | 68 |
OLD | NEW |