| OLD | NEW |
| 1 # The following variables will likely need to be modified, depending on where | 1 # The following variables will likely need to be modified, depending on where |
| 2 # and how you built LLVM & Clang. They can be overridden in a command-line | 2 # and how you built LLVM & Clang. They can be overridden in a command-line |
| 3 # invocation of make, like: | 3 # invocation of make, like: |
| 4 # | 4 # |
| 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ |
| 6 # PNACL_BIN_PATH=<path> ... | 6 # PNACL_BIN_PATH=<path> ... |
| 7 # | 7 # |
| 8 | 8 |
| 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This | 9 # LLVM_SRC_PATH is the path to the root of the checked out source code. This |
| 10 # directory should contain the configure script, the include/ and lib/ | 10 # directory should contain the configure script, the include/ and lib/ |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 @mkdir -p $@ | 360 @mkdir -p $@ |
| 361 | 361 |
| 362 $(OBJDIR)/unittest: $(OBJDIR) | 362 $(OBJDIR)/unittest: $(OBJDIR) |
| 363 @mkdir -p $@ | 363 @mkdir -p $@ |
| 364 | 364 |
| 365 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest | 365 $(OBJDIR)/unittest/AssemblerX8632: $(OBJDIR)/unittest |
| 366 @mkdir -p $@ | 366 @mkdir -p $@ |
| 367 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest | 367 $(OBJDIR)/unittest/AssemblerX8664: $(OBJDIR)/unittest |
| 368 @mkdir -p $@ | 368 @mkdir -p $@ |
| 369 | 369 |
| 370 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c | 370 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c \ |
| 371 runtime/szrt_asm_x8632.s runtime/szrt_asm_x8664.s \ |
| 372 runtime/szrt_asm_arm32.s |
| 371 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ | 373 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o \ |
| 374 build/runtime/szrt_nonsfi_x8632.o \ |
| 372 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ | 375 build/runtime/szrt_native_x8664.o build/runtime/szrt_sb_x8664.o \ |
| 373 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o | 376 build/runtime/szrt_nonsfi_x8664.o \ |
| 377 build/runtime/szrt_native_arm32.o build/runtime/szrt_sb_arm32.o \ |
| 378 build/runtime/szrt_nonsfi_arm32.o |
| 374 | 379 |
| 375 runtime: $(RT_OBJ) | 380 runtime: $(RT_OBJ) |
| 376 | 381 |
| 377 # Use runtime.is.built so that build-runtime.py is invoked only once | 382 # Use runtime.is.built so that build-runtime.py is invoked only once |
| 378 # even in a parallel build. | 383 # even in a parallel build. |
| 379 .INTERMEDIATE: runtime.is.built | 384 .INTERMEDIATE: runtime.is.built |
| 380 $(RT_OBJ): runtime.is.built | 385 $(RT_OBJ): runtime.is.built |
| 381 runtime.is.built: $(RT_SRC) pydir/build-runtime.py | 386 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
| 382 @echo ================ Building Subzero runtime ================ | 387 @echo ================ Building Subzero runtime ================ |
| 383 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 388 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) |
| 384 | 389 |
| 385 check-lit: $(OBJDIR)/pnacl-sz make_symlink | 390 check-lit: $(OBJDIR)/pnacl-sz make_symlink |
| 386 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 391 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 387 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit | 392 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |
| 388 | 393 |
| 389 ifdef MINIMAL | 394 ifdef MINIMAL |
| 390 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 395 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 391 @echo "Crosstests disabled, minimal build" | 396 @echo "Crosstests disabled, minimal build" |
| 392 else | 397 else |
| 393 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 398 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 394 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. | 399 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1. |
| 395 # For (slow) sandboxed tests, limit to Om1/sse4.1. | 400 # For (slow) sandboxed tests, limit to Om1/sse4.1. |
| 396 # TODO(jpp): implement x8664 sandbox, then enable xtests. | 401 # TODO(jpp): implement x8664 sandbox, then enable xtests. |
| 397 # TODO(jpp): reenable the x86-64 tests. | 402 # TODO(jpp): reenable the x86-64 tests. |
| 398 ./pydir/crosstest_generator.py -v --lit \ | 403 ./pydir/crosstest_generator.py -v --lit \ |
| 399 --toolchain-root $(TOOLCHAIN_ROOT) \ | 404 --toolchain-root $(TOOLCHAIN_ROOT) \ |
| 400 -i x8632,native,sse2 \ | 405 -i x8632,native,sse2 \ |
| 401 -i x8632,native,sse4.1,test_vector_ops \ | 406 -i x8632,native,sse4.1,test_vector_ops \ |
| 402 -i x8632,sandbox,sse4.1,Om1 \ | 407 -i x8632,sandbox,sse4.1,Om1 \ |
| 408 -i x8632,nonsfi,sse2,O2 -e x8632,nonsfi,test_select \ |
| 403 -i x8664,native,sse2 \ | 409 -i x8664,native,sse2 \ |
| 404 -i x8664,native,sse4.1,test_vector_ops \ | 410 -i x8664,native,sse4.1,test_vector_ops \ |
| 405 -e x8664,sandbox,sse4.1,Om1 \ | 411 -e x8664,sandbox,sse4.1,Om1 \ |
| 406 -i arm32,neon \ | 412 -i arm32,neon \ |
| 413 -e arm32,nonsfi \ |
| 407 -e arm32,neon,test_vector_ops \ | 414 -e arm32,neon,test_vector_ops \ |
| 408 -e arm32,neon,test_select | 415 -e arm32,neon,test_select |
| 409 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 416 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 410 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output | 417 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output |
| 411 endif | 418 endif |
| 412 | 419 |
| 413 check-unit: $(OBJDIR)/run_unittests | 420 check-unit: $(OBJDIR)/run_unittests |
| 414 $(OBJDIR)/run_unittests | 421 $(OBJDIR)/run_unittests |
| 415 | 422 |
| 416 # List the spec2k components in roughly reverse order of runtime, to help with | 423 # List the spec2k components in roughly reverse order of runtime, to help with |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 511 |
| 505 docs: | 512 docs: |
| 506 doxygen Doxyfile | 513 doxygen Doxyfile |
| 507 @echo See file://`pwd`/docs/html/index.html | 514 @echo See file://`pwd`/docs/html/index.html |
| 508 | 515 |
| 509 clean: | 516 clean: |
| 510 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 517 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 511 | 518 |
| 512 clean-all: clean | 519 clean-all: clean |
| 513 rm -rf build/ docs/ | 520 rm -rf build/ docs/ |
| OLD | NEW |