| OLD | NEW |
| 1 # Copyright 2011 The Native Client Authors. All rights reserved. | 1 # Copyright 2011 The Native Client 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 | 5 |
| 6 # simple example that tries to build a mostly sandboxed shared lib | 6 # simple example that tries to build a mostly sandboxed shared lib |
| 7 # which is then loaded by a regular (non-sandboxed) images | 7 # which is then loaded by a regular (non-sandboxed) images |
| 8 | 8 |
| 9 PNACL_CC=../../toolchain/linux_arm-untrusted/bin/pnacl-gcc | 9 PNACL_ROOT=../../toolchain/pnacl_linux_x86_64 |
| 10 PNACL_LD=../../toolchain/linux_arm-untrusted/bin/pnacl-ld | 10 PNACL_CC=$(PNACL_ROOT)/bin/pnacl-gcc |
| 11 PNACL_LD=$(PNACL_ROOT)/bin/pnacl-ld |
| 11 ELF_PATCHER=../../tools/elf_patcher.py | 12 ELF_PATCHER=../../tools/elf_patcher.py |
| 12 | 13 |
| 13 ARM_CC=../../toolchain/linux_arm-trusted/arm-2009q3/bin/arm-none-linux-gnueabi-g
cc | 14 ARM_CC=../../toolchain/linux_arm-trusted/arm-2009q3/bin/arm-none-linux-gnueabi-g
cc |
| 14 QEMU= ../../toolchain/linux_arm-trusted/qemu_tool.sh run | 15 QEMU= ../../toolchain/linux_arm-trusted/qemu_tool.sh run |
| 15 | 16 |
| 16 NCVAL_X86_32=../../scons-out/opt-linux-x86-32/staging/ncval | 17 NCVAL_X86_32=../../scons-out/opt-linux-x86-32/staging/ncval |
| 17 NCVAL_ARM=../../scons-out/opt-linux-x86-64-to-arm/staging/arm-ncval-core | 18 NCVAL_ARM=../../scons-out/opt-linux-x86-64-to-arm/staging/arm-ncval-core |
| 18 #DEBUG_FLAGS= --pnacl-driver-verbose --pnacl-driver-debug | 19 #DEBUG_FLAGS= --pnacl-driver-verbose --pnacl-driver-debug |
| 19 DEBUG_FLAGS= | 20 DEBUG_FLAGS= |
| 20 | 21 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 $(ARM_CC) -Wl,-Ttext-segment=20000 -o $@ -L. -lsimple.arm main.c | 67 $(ARM_CC) -Wl,-Ttext-segment=20000 -o $@ -L. -lsimple.arm main.c |
| 67 | 68 |
| 68 run.arm: main.arm | 69 run.arm: main.arm |
| 69 LD_LIBRARY_PATH=. $(QEMU) ./main.arm | 70 LD_LIBRARY_PATH=. $(QEMU) ./main.arm |
| 70 | 71 |
| 71 ###################################################################### | 72 ###################################################################### |
| 72 | 73 |
| 73 clean: | 74 clean: |
| 74 rm -f *.bc *.o *.ll *.so main | 75 rm -f *.bc *.o *.ll *.so main |
| 75 | 76 |
| OLD | NEW |