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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 391 |
392 check-unit: $(OBJDIR)/run_unittests | 392 check-unit: $(OBJDIR)/run_unittests |
393 $(OBJDIR)/run_unittests | 393 $(OBJDIR)/run_unittests |
394 | 394 |
395 check: check-lit check-unit check-xtest | 395 check: check-lit check-unit check-xtest |
396 | 396 |
397 FORMAT_BLACKLIST = | 397 FORMAT_BLACKLIST = |
398 # Add one of the following lines for each source file to ignore. | 398 # Add one of the following lines for each source file to ignore. |
399 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp | 399 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp |
400 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp | 400 FORMAT_BLACKLIST += ! -name IceParseTypesTest.cpp |
| 401 FORMAT_BLACKLIST += ! -name assembler_arm.h |
| 402 FORMAT_BLACKLIST += ! -name assembler_arm.cc |
401 format: | 403 format: |
402 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ | 404 $(CLANG_FORMAT_PATH)/clang-format -style=LLVM -i \ |
403 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` | 405 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` |
404 | 406 |
405 format-diff: | 407 format-diff: |
406 git diff -U0 `git merge-base HEAD master` | \ | 408 git diff -U0 `git merge-base HEAD master` | \ |
407 PATH=$(PNACL_BIN_PATH):$(PATH) \ | 409 PATH=$(PNACL_BIN_PATH):$(PATH) \ |
408 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ | 410 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
409 -p1 -style=LLVM -i | 411 -p1 -style=LLVM -i |
410 | 412 |
411 bloat: make_symlink | 413 bloat: make_symlink |
412 nm -C -S -l pnacl-sz | \ | 414 nm -C -S -l pnacl-sz | \ |
413 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 415 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
414 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 416 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
415 | 417 |
416 docs: | 418 docs: |
417 doxygen Doxyfile | 419 doxygen Doxyfile |
418 @echo See file://`pwd`/docs/html/index.html | 420 @echo See file://`pwd`/docs/html/index.html |
419 | 421 |
420 clean: | 422 clean: |
421 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 423 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
422 | 424 |
423 clean-all: clean | 425 clean-all: clean |
424 rm -rf build/ docs/ | 426 rm -rf build/ docs/ |
OLD | NEW |