| 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> LLVM_BIN_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> \ |
| 6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> ... | 6 # LIBCXX_INSTALL_PATH=<path> CLANG_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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) | 158 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) |
| 159 | 159 |
| 160 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. | 160 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. |
| 161 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 161 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
| 162 $(CXX) -c $(CXXFLAGS) $< -o $@ | 162 $(CXX) -c $(CXXFLAGS) $< -o $@ |
| 163 | 163 |
| 164 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) | 164 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) |
| 165 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -lgtest -lgtest_main -ldl \ | 165 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -lgtest -lgtest_main -ldl \ |
| 166 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) | 166 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) |
| 167 | 167 |
| 168 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp | 168 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \ |
| 169 » » unittest/*.h src/*.h src/*.def |
| 169 $(CXX) -c $(CXXFLAGS) \ | 170 $(CXX) -c $(CXXFLAGS) \ |
| 170 -Isrc/ \ | 171 -Isrc/ \ |
| 171 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ | 172 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ |
| 172 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ | 173 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ |
| 173 $< -o $@ | 174 $< -o $@ |
| 174 | 175 |
| 175 $(OBJS): | $(OBJDIR) | 176 $(OBJS): | $(OBJDIR) |
| 176 | 177 |
| 177 $(UNITTEST_OBJS): | $(OBJDIR)/unittest | 178 $(UNITTEST_OBJS): | $(OBJDIR)/unittest |
| 178 | 179 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 208 git diff -U0 `git merge-base HEAD master` | \ | 209 git diff -U0 `git merge-base HEAD master` | \ |
| 209 PATH=$(LLVM_BIN_PATH):$(PATH) \ | 210 PATH=$(LLVM_BIN_PATH):$(PATH) \ |
| 210 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ | 211 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ |
| 211 -p1 -style=LLVM -i | 212 -p1 -style=LLVM -i |
| 212 | 213 |
| 213 clean: | 214 clean: |
| 214 rm -rf llvm2ice *.o $(OBJDIR) | 215 rm -rf llvm2ice *.o $(OBJDIR) |
| 215 | 216 |
| 216 clean-all: clean | 217 clean-all: clean |
| 217 rm -rf build/ | 218 rm -rf build/ |
| OLD | NEW |