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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 # SZTARGET=ARM32 | 104 # SZTARGET=ARM32 |
105 # SZTARGET=MIPS32 | 105 # SZTARGET=MIPS32 |
106 # SZTARGET=X8632 | 106 # SZTARGET=X8632 |
107 # SZTARGET=X8664 | 107 # SZTARGET=X8664 |
108 ifdef SZTARGET | 108 ifdef SZTARGET |
109 OBJDIR := $(OBJDIR)+T_$(SZTARGET) | 109 OBJDIR := $(OBJDIR)+T_$(SZTARGET) |
110 BASE_CXX_DEFINES += -DSZTARGET=$(SZTARGET) | 110 BASE_CXX_DEFINES += -DSZTARGET=$(SZTARGET) |
111 endif | 111 endif |
112 | 112 |
113 BASE_CXX_DEFINES += -DPNACL_LLVM | 113 BASE_CXX_DEFINES += -DPNACL_LLVM |
114 BASE_CXX_DEFINES += -DSUBZERO_REVISION=$(shell git rev-parse HEAD) | 114 SZ_COMMIT_COUNT := $(shell git rev-list --count HEAD) |
| 115 SZ_GIT_HASH := $(shell git rev-parse HEAD) |
| 116 BASE_CXX_DEFINES += -DSUBZERO_REVISION=$(SZ_COMMIT_COUNT)_$(SZ_GIT_HASH) |
115 | 117 |
116 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 | 118 CXX_DEFINES := $(BASE_CXX_DEFINES) -DPNACL_BROWSER_TRANSLATOR=0 |
117 | 119 |
118 ifdef NOASSERT | 120 ifdef NOASSERT |
119 ASSERTIONS = -DNDEBUG | 121 ASSERTIONS = -DNDEBUG |
120 else | 122 else |
121 ASSERTIONS = | 123 ASSERTIONS = |
122 OBJDIR := $(OBJDIR)+Asserts | 124 OBJDIR := $(OBJDIR)+Asserts |
123 endif | 125 endif |
124 | 126 |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 | 793 |
792 help-check-xtest: | 794 help-check-xtest: |
793 @cat Makefile.standalone-help/check-xtest.txt | 795 @cat Makefile.standalone-help/check-xtest.txt |
794 | 796 |
795 clean: | 797 clean: |
796 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ | 798 rm -rf pnacl-sz *.o $(foreach nexe,$(NEXES),$(notdir $(nexe))) \ |
797 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json | 799 $(OBJDIR) $(SB_OBJDIR) $(SBB_OBJDIR) build/*.bloat.json |
798 | 800 |
799 clean-all: clean | 801 clean-all: clean |
800 rm -rf build/ crosstest/Output/ | 802 rm -rf build/ crosstest/Output/ |
OLD | NEW |