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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 --allow-llvm-bitcode-input | 241 --allow-llvm-bitcode-input |
242 | 242 |
243 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. | 243 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. |
244 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 244 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
245 $(CXX) -c $(CXXFLAGS) $< -o $@ | 245 $(CXX) -c $(CXXFLAGS) $< -o $@ |
246 | 246 |
247 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 247 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
248 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@ | 248 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@ |
249 | 249 |
250 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) | 250 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) |
251 » $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ | 251 » $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ |
252 $(GTEST_LIB_PATH) -lgtest -lgtest_main -ldl \ | 252 -lgtest -lgtest_main -ldl \ |
253 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) | 253 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) |
254 | 254 |
255 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \ | 255 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \ |
256 unittest/*.h src/*.h src/*.def | 256 unittest/*.h src/*.h src/*.def |
257 $(CXX) -c $(CXXFLAGS) \ | 257 $(CXX) -c $(CXXFLAGS) \ |
258 -Isrc/ \ | 258 -Isrc/ \ |
259 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ | 259 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ |
260 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ | 260 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ |
261 $< -o $@ | 261 $< -o $@ |
262 | 262 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 bloat: make_symlink | 325 bloat: make_symlink |
326 nm -C -S -l pnacl-sz | \ | 326 nm -C -S -l pnacl-sz | \ |
327 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 327 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
328 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 328 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
329 | 329 |
330 clean: | 330 clean: |
331 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 331 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
332 | 332 |
333 clean-all: clean | 333 clean-all: clean |
334 rm -rf build/ | 334 rm -rf build/ |
OLD | NEW |