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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ | 318 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ |
319 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) | 319 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) |
320 | 320 |
321 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS) | 321 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS) |
322 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@)) | 322 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@)) |
323 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \ | 323 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \ |
324 $(SB_LLVM_LDFLAGS) | 324 $(SB_LLVM_LDFLAGS) |
325 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \ | 325 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \ |
326 --allow-llvm-bitcode-input | 326 --allow-llvm-bitcode-input |
327 | 327 |
328 src/IceRegistersARM32.def: pydir/gen_arm32_reg_tables.py | |
329 echo "IceRegistersARM32.def is out-of-date. Please regenerate it with " \ | |
Jim Stichnoth
2015/12/11 18:47:41
80-col, thanks tab characters!
Could this makefil
Jim Stichnoth
2015/12/11 20:15:24
Answering a question posed offline...
We can assu
John
2015/12/11 20:23:32
Done.
| |
330 "pydir/gen_arm32_reg_tables.py" | |
331 exit 1 | |
332 | |
328 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. | 333 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. |
329 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 334 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
330 $(CXX) -c $(CXXFLAGS) $< -o $@ | 335 $(CXX) -c $(CXXFLAGS) $< -o $@ |
331 | 336 |
332 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def | 337 $(SB_OBJS): $(SB_OBJDIR)/%.o: src/%.cpp src/*.h src/*.def |
333 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@ | 338 $(SB_CXX) -c $(SB_CXXFLAGS) $< -o $@ |
334 | 339 |
335 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) | 340 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) |
336 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ | 341 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ |
337 -lgtest -lgtest_main -ldl \ | 342 -lgtest -lgtest_main -ldl \ |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 | 503 |
499 docs: | 504 docs: |
500 doxygen Doxyfile | 505 doxygen Doxyfile |
501 @echo See file://`pwd`/docs/html/index.html | 506 @echo See file://`pwd`/docs/html/index.html |
502 | 507 |
503 clean: | 508 clean: |
504 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 509 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
505 | 510 |
506 clean-all: clean | 511 clean-all: clean |
507 rm -rf build/ docs/ | 512 rm -rf build/ docs/ |
OLD | NEW |