| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 SRCS += IceConverter.cpp \ | 205 SRCS += IceConverter.cpp \ |
| 206 IceTypeConverter.cpp | 206 IceTypeConverter.cpp |
| 207 endif | 207 endif |
| 208 | 208 |
| 209 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) | 209 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) |
| 210 SB_OBJS=$(patsubst %.cpp, $(SB_OBJDIR)/%.o, $(SRCS)) | 210 SB_OBJS=$(patsubst %.cpp, $(SB_OBJDIR)/%.o, $(SRCS)) |
| 211 | 211 |
| 212 UNITTEST_SRCS = \ | 212 UNITTEST_SRCS = \ |
| 213 BitcodeMunge.cpp \ | 213 BitcodeMunge.cpp \ |
| 214 IceELFSectionTest.cpp \ | 214 IceELFSectionTest.cpp \ |
| 215 » IceParseInstsTest.cpp \ | 215 » IceParseInstsTest.cpp |
| 216 AssemblerX8632/LowLevel.cpp \ | 216 |
| 217 # The X86 assembler tests take too long to compile. Given how infrequently the |
| 218 # assembler will change, we disable them. |
| 219 ifdef CHECK_X86_ASM |
| 220 UNITTEST_SRCS += AssemblerX8632/LowLevel.cpp \ |
| 217 AssemblerX8632/DataMov.cpp \ | 221 AssemblerX8632/DataMov.cpp \ |
| 218 AssemblerX8632/Locked.cpp \ | 222 AssemblerX8632/Locked.cpp \ |
| 219 AssemblerX8632/GPRArith.cpp \ | 223 AssemblerX8632/GPRArith.cpp \ |
| 220 AssemblerX8632/XmmArith.cpp \ | 224 AssemblerX8632/XmmArith.cpp \ |
| 221 AssemblerX8632/ControlFlow.cpp \ | 225 AssemblerX8632/ControlFlow.cpp \ |
| 222 AssemblerX8632/Other.cpp \ | 226 AssemblerX8632/Other.cpp \ |
| 223 AssemblerX8632/X87.cpp \ | 227 AssemblerX8632/X87.cpp \ |
| 224 AssemblerX8664/LowLevel.cpp \ | 228 AssemblerX8664/LowLevel.cpp \ |
| 225 AssemblerX8664/DataMov.cpp \ | 229 AssemblerX8664/DataMov.cpp \ |
| 226 AssemblerX8664/Locked.cpp \ | 230 AssemblerX8664/Locked.cpp \ |
| 227 AssemblerX8664/GPRArith.cpp \ | 231 AssemblerX8664/GPRArith.cpp \ |
| 228 AssemblerX8664/XmmArith.cpp \ | 232 AssemblerX8664/XmmArith.cpp \ |
| 229 AssemblerX8664/ControlFlow.cpp \ | 233 AssemblerX8664/ControlFlow.cpp \ |
| 230 AssemblerX8664/Other.cpp | 234 AssemblerX8664/Other.cpp |
| 231 | 235 endif |
| 232 | 236 |
| 233 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) | 237 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) |
| 234 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/main.o,$(OBJS)) | 238 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/main.o,$(OBJS)) |
| 235 | 239 |
| 236 # Keep all the first target so it's the default. | 240 # Keep all the first target so it's the default. |
| 237 all: $(OBJDIR)/pnacl-sz make_symlink runtime | 241 all: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 238 | 242 |
| 239 ifdef TSAN | 243 ifdef TSAN |
| 240 sb: | 244 sb: |
| 241 @echo "Skipping pnacl-sz.*.nexe: TSAN isn't supported under NaCl." | 245 @echo "Skipping pnacl-sz.*.nexe: TSAN isn't supported under NaCl." |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 376 |
| 373 docs: | 377 docs: |
| 374 doxygen Doxyfile | 378 doxygen Doxyfile |
| 375 @echo See file://`pwd`/docs/html/index.html | 379 @echo See file://`pwd`/docs/html/index.html |
| 376 | 380 |
| 377 clean: | 381 clean: |
| 378 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 382 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 379 | 383 |
| 380 clean-all: clean | 384 clean-all: clean |
| 381 rm -rf build/ docs/ | 385 rm -rf build/ docs/ |
| OLD | NEW |