Chromium Code Reviews| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 411 TARGETFLAG=x8632 | 411 TARGETFLAG=x8632 |
| 412 SETUP=SetupGccX8632Opt | 412 SETUP=SetupGccX8632Opt |
| 413 SPEC := -O2 --filetype=obj | 413 SPEC := -O2 --filetype=obj |
| 414 endif | 414 endif |
| 415 ifeq ($(TARGET),arm32) | 415 ifeq ($(TARGET),arm32) |
| 416 TARGETFLAG=arm32 | 416 TARGETFLAG=arm32 |
| 417 SETUP=SetupGccArmOpt | 417 SETUP=SetupGccArmOpt |
| 418 SPEC := -O2 --filetype=asm | 418 SPEC := -O2 --filetype=asm |
| 419 endif | 419 endif |
| 420 | 420 |
| 421 %.spec2k: % $(OBJDIR)/pnacl-sz make_symlink runtime | 421 %.spec2k: % |
|
Jim Stichnoth
2015/11/11 18:55:04
As discussed offline, consider reverting this Make
John
2015/11/11 22:19:44
Done.
| |
| 422 ./pydir/szbuild_spec2k.py -v --force --target=$(TARGETFLAG) $(SPEC) $< | 422 ./pydir/szbuild_spec2k.py -v --force --target=$(TARGETFLAG) $(SPEC) $< |
| 423 ( cd ../../../tests/spec2k; \ | 423 ( cd ../../../tests/spec2k; \ |
| 424 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) | 424 ./run_all.sh RunTimedBenchmarks $(SETUP) train $< ) |
| 425 | 425 |
| 426 check-spec: $(ALLSPEC:=.spec2k) | 426 where-am-i = $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) |
| 427 check-spec: $(OBJDIR)/pnacl-sz | |
| 428 » +make -f $(call where-am-i) make_symlink | |
| 429 » +make -f $(call where-am-i) TARGETFLAG='$(TARGETFLAG)' SPEC='$(SPEC)' AL LSPEC='$(ALLSPEC)' $(ALLSPEC:=.spec2k) | |
|
Jim Stichnoth
2015/11/11 18:55:04
80-col
John
2015/11/11 22:19:44
N/A
| |
| 427 | 430 |
| 428 check: check-lit check-unit check-xtest | 431 check: check-lit check-unit check-xtest |
| 429 | 432 |
| 430 FORMAT_BLACKLIST = | 433 FORMAT_BLACKLIST = |
| 431 # Add one of the following lines for each source file to ignore. | 434 # Add one of the following lines for each source file to ignore. |
| 432 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 435 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
| 433 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp | 436 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp |
| 434 FORMAT_BLACKLIST += ! -name assembler_arm.h | 437 FORMAT_BLACKLIST += ! -name assembler_arm.h |
| 435 FORMAT_BLACKLIST += ! -name assembler_arm.cc | 438 FORMAT_BLACKLIST += ! -name assembler_arm.cc |
| 436 format: | 439 format: |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 450 | 453 |
| 451 docs: | 454 docs: |
| 452 doxygen Doxyfile | 455 doxygen Doxyfile |
| 453 @echo See file://`pwd`/docs/html/index.html | 456 @echo See file://`pwd`/docs/html/index.html |
| 454 | 457 |
| 455 clean: | 458 clean: |
| 456 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 459 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 457 | 460 |
| 458 clean-all: clean | 461 clean-all: clean |
| 459 rm -rf build/ docs/ | 462 rm -rf build/ docs/ |
| OLD | NEW |