OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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 ###################################################################### | 5 ###################################################################### |
6 # CONFIG | 6 # CONFIG |
7 ###################################################################### | 7 ###################################################################### |
8 | 8 |
9 # NOTE: we assume you have a symlink "CLIENT" in this directory pointing | 9 # NOTE: we assume you have a symlink "CLIENT" in this directory pointing |
10 # to your .../native_client directory | 10 # to your .../native_client directory |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 --em-config $(WASM_INSTALL_DIR)/emscripten_config_vanilla \ | 170 --em-config $(WASM_INSTALL_DIR)/emscripten_config_vanilla \ |
171 $(CFLAGS) -s TOTAL_MEMORY=268435456 \ | 171 $(CFLAGS) -s TOTAL_MEMORY=268435456 \ |
172 -Wno-implicit-function-declaration -O2 \ | 172 -Wno-implicit-function-declaration -O2 \ |
173 $(shell python ../prepare_input.py --gen-emcc-embed --config \ | 173 $(shell python ../prepare_input.py --gen-emcc-embed --config \ |
174 $(SPEC_COMPONENT) train) | 174 $(SPEC_COMPONENT) train) |
175 $(WASM_INSTALL_DIR)/bin/emscripten/emcc $^ -o $(IT).ref.js \ | 175 $(WASM_INSTALL_DIR)/bin/emscripten/emcc $^ -o $(IT).ref.js \ |
176 -s BINARYEN=1 -s 'BINARYEN_METHOD="native-wasm"' \ | 176 -s BINARYEN=1 -s 'BINARYEN_METHOD="native-wasm"' \ |
177 --em-config $(WASM_INSTALL_DIR)/emscripten_config_vanilla \ | 177 --em-config $(WASM_INSTALL_DIR)/emscripten_config_vanilla \ |
178 $(CFLAGS) -s TOTAL_MEMORY=268435456 \ | 178 $(CFLAGS) -s TOTAL_MEMORY=268435456 \ |
179 -Wno-implicit-function-declaration -O2 \ | 179 -Wno-implicit-function-declaration -O2 \ |
180 » » $(shell python ../prepare_input.py --gen-emcc-embed- --config \ | 180 » » $(shell python ../prepare_input.py --gen-emcc-embed --config \ |
181 $(SPEC_COMPONENT) ref) | 181 $(SPEC_COMPONENT) ref) |
182 touch $@ | 182 touch $@ |
183 | 183 |
184 ###################################################################### | 184 ###################################################################### |
185 ## NON-SANDBOXING LLVM TOOLCHAINS | 185 ## NON-SANDBOXING LLVM TOOLCHAINS |
186 ###################################################################### | 186 ###################################################################### |
187 LOCAL_LLVM=clang++ | 187 LOCAL_LLVM=clang++ |
188 | 188 |
189 # straight x86-32 llvm | 189 # straight x86-32 llvm |
190 $(IT).llvm.x8632: $(SRC) $(CPPSRC) | 190 $(IT).llvm.x8632: $(SRC) $(CPPSRC) |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe | 531 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe |
532 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ | 532 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ |
533 $^ -o $@ -arch x86-64 -threads=seq | 533 $^ -o $@ -arch x86-64 -threads=seq |
534 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 534 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
535 | 535 |
536 $(IT).pnacl_translator_fast_1thread.opt.sz.x8664: $(IT).opt.stripped.pexe | 536 $(IT).pnacl_translator_fast_1thread.opt.sz.x8664: $(IT).opt.stripped.pexe |
537 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) \ | 537 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) \ |
538 $^ -o $@ -arch x86-64 -threads=seq | 538 $^ -o $@ -arch x86-64 -threads=seq |
539 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 539 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
OLD | NEW |