| OLD | NEW |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 matrix_x86_64.nexe: $(OBJECTS_X86_64) | 47 matrix_x86_64.nexe: $(OBJECTS_X86_64) |
| 48 $(CPP) $^ $(LDFLAGS) -m64 -o $@ | 48 $(CPP) $^ $(LDFLAGS) -m64 -o $@ |
| 49 | 49 |
| 50 clean: | 50 clean: |
| 51 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \ | 51 -$(RM) $(OBJECTS_X86_32) $(OBJECTS_X86_64) \ |
| 52 matrix_x86_32.nexe matrix_x86_64.nexe | 52 matrix_x86_32.nexe matrix_x86_64.nexe |
| 53 | 53 |
| 54 # Build the required packages. | 54 # Build the required packages. |
| 55 $(BOOST_UBLAS_32): | 55 $(BOOST_UBLAS_32): |
| 56 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ | 56 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ |
| 57 » export NACL_PACKAGES_BITSIZE=32; \ | 57 » export NACL_ARCH=i686; \ |
| 58 ./nacl-boost_1_43_0.sh) | 58 ./nacl-boost_1_43_0.sh) |
| 59 | 59 |
| 60 $(BOOST_UBLAS_64): | 60 $(BOOST_UBLAS_64): |
| 61 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ | 61 (cd $(NACLPORTS_ROOT)/packages/scripts/boost_1_43_0; \ |
| 62 » export NACL_PACKAGES_BITSIZE=64; \ | 62 » export NACL_ARCH=x86_64; \ |
| 63 ./nacl-boost_1_43_0.sh) | 63 ./nacl-boost_1_43_0.sh) |
| 64 | 64 |
| OLD | NEW |