| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 $(UNITTEST_OBJS): | $(OBJDIR)/unittest | 269 $(UNITTEST_OBJS): | $(OBJDIR)/unittest |
| 270 | 270 |
| 271 $(OBJDIR): | 271 $(OBJDIR): |
| 272 @mkdir -p $@ | 272 @mkdir -p $@ |
| 273 $(SB_OBJDIR): | 273 $(SB_OBJDIR): |
| 274 @mkdir -p $@ | 274 @mkdir -p $@ |
| 275 | 275 |
| 276 $(OBJDIR)/unittest: $(OBJDIR) | 276 $(OBJDIR)/unittest: $(OBJDIR) |
| 277 @mkdir -p $@ | 277 @mkdir -p $@ |
| 278 | 278 |
| 279 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll | 279 RT_SRC := runtime/szrt.c runtime/szrt_ll.ll runtime/szrt_profiler.c |
| 280 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o | 280 RT_OBJ := build/runtime/szrt_native_x8632.o build/runtime/szrt_sb_x8632.o |
| 281 | 281 |
| 282 runtime: $(RT_OBJ) | 282 runtime: $(RT_OBJ) |
| 283 | 283 |
| 284 # Use runtime.is.built so that build-runtime.py is invoked only once | 284 # Use runtime.is.built so that build-runtime.py is invoked only once |
| 285 # even in a parallel build. | 285 # even in a parallel build. |
| 286 .INTERMEDIATE: runtime.is.built | 286 .INTERMEDIATE: runtime.is.built |
| 287 $(RT_OBJ): runtime.is.built | 287 $(RT_OBJ): runtime.is.built |
| 288 runtime.is.built: $(RT_SRC) | 288 runtime.is.built: $(RT_SRC) pydir/build-runtime.py |
| 289 @echo ================ Building Subzero runtime ================ | 289 @echo ================ Building Subzero runtime ================ |
| 290 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) | 290 ./pydir/build-runtime.py -v --pnacl-root $(PNACL_TOOLCHAIN_ROOT) |
| 291 | 291 |
| 292 check-lit: $(OBJDIR)/pnacl-sz make_symlink | 292 check-lit: $(OBJDIR)/pnacl-sz make_symlink |
| 293 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ | 293 PNACL_BIN_PATH=$(PNACL_BIN_PATH) \ |
| 294 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit | 294 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |
| 295 | 295 |
| 296 ifdef MINIMAL | 296 ifdef MINIMAL |
| 297 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime | 297 check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 298 @echo "Crosstests disabled, minimal build" | 298 @echo "Crosstests disabled, minimal build" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 328 bloat: make_symlink | 328 bloat: make_symlink |
| 329 nm -C -S -l pnacl-sz | \ | 329 nm -C -S -l pnacl-sz | \ |
| 330 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json | 330 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json |
| 331 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html | 331 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html |
| 332 | 332 |
| 333 clean: | 333 clean: |
| 334 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 334 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 335 | 335 |
| 336 clean-all: clean | 336 clean-all: clean |
| 337 rm -rf build/ | 337 rm -rf build/ |
| OLD | NEW |