| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 $(STDLIB_FLAGS) | 168 $(STDLIB_FLAGS) |
| 169 SB_CXXFLAGS := $(SB_LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(SB_CXX_DEFINES) | 169 SB_CXXFLAGS := $(SB_LLVM_CXXFLAGS) $(BASE_CXXFLAGS) $(SB_CXX_DEFINES) |
| 170 | 170 |
| 171 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ | 171 LDFLAGS := $(HOST_FLAGS) -L$(LIBCXX_INSTALL_PATH)/lib -Wl,--gc-sections \ |
| 172 $(LD_EXTRA) $(STDLIB_FLAGS) | 172 $(LD_EXTRA) $(STDLIB_FLAGS) |
| 173 # Not specifying -Wl,--gc-sections but instead doing bitcode linking GC w/ LTO. | 173 # Not specifying -Wl,--gc-sections but instead doing bitcode linking GC w/ LTO. |
| 174 SB_LDFLAGS := $(LINKOPTLEVEL) $(LD_EXTRA) | 174 SB_LDFLAGS := $(LINKOPTLEVEL) $(LD_EXTRA) |
| 175 | 175 |
| 176 SRCS = \ | 176 SRCS = \ |
| 177 IceAssembler.cpp \ | 177 IceAssembler.cpp \ |
| 178 IceAssemblerX8664.cpp \ | |
| 179 IceBrowserCompileServer.cpp \ | 178 IceBrowserCompileServer.cpp \ |
| 180 IceCfg.cpp \ | 179 IceCfg.cpp \ |
| 181 IceCfgNode.cpp \ | 180 IceCfgNode.cpp \ |
| 182 IceClFlags.cpp \ | 181 IceClFlags.cpp \ |
| 183 IceCompiler.cpp \ | 182 IceCompiler.cpp \ |
| 184 IceCompileServer.cpp \ | 183 IceCompileServer.cpp \ |
| 185 IceELFObjectWriter.cpp \ | 184 IceELFObjectWriter.cpp \ |
| 186 IceELFSection.cpp \ | 185 IceELFSection.cpp \ |
| 187 IceFixups.cpp \ | 186 IceFixups.cpp \ |
| 188 IceGlobalContext.cpp \ | 187 IceGlobalContext.cpp \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 213 SRCS += IceConverter.cpp \ | 212 SRCS += IceConverter.cpp \ |
| 214 IceTypeConverter.cpp | 213 IceTypeConverter.cpp |
| 215 endif | 214 endif |
| 216 | 215 |
| 217 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) | 216 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) |
| 218 SB_OBJS=$(patsubst %.cpp, $(SB_OBJDIR)/%.o, $(SRCS)) | 217 SB_OBJS=$(patsubst %.cpp, $(SB_OBJDIR)/%.o, $(SRCS)) |
| 219 | 218 |
| 220 UNITTEST_SRCS = \ | 219 UNITTEST_SRCS = \ |
| 221 BitcodeMunge.cpp \ | 220 BitcodeMunge.cpp \ |
| 222 IceAssemblerX8632Test.cpp \ | 221 IceAssemblerX8632Test.cpp \ |
| 222 IceAssemblerX8664Test.cpp \ |
| 223 IceELFSectionTest.cpp \ | 223 IceELFSectionTest.cpp \ |
| 224 IceParseInstsTest.cpp | 224 IceParseInstsTest.cpp |
| 225 | 225 |
| 226 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) | 226 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) |
| 227 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/main.o,$(OBJS)) | 227 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/main.o,$(OBJS)) |
| 228 | 228 |
| 229 # Keep all the first target so it's the default. | 229 # Keep all the first target so it's the default. |
| 230 all: $(OBJDIR)/pnacl-sz make_symlink runtime | 230 all: $(OBJDIR)/pnacl-sz make_symlink runtime |
| 231 | 231 |
| 232 ifdef TSAN | 232 ifdef TSAN |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 363 |
| 364 docs: | 364 docs: |
| 365 doxygen Doxyfile | 365 doxygen Doxyfile |
| 366 @echo See file://`pwd`/docs/html/index.html | 366 @echo See file://`pwd`/docs/html/index.html |
| 367 | 367 |
| 368 clean: | 368 clean: |
| 369 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json | 369 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json |
| 370 | 370 |
| 371 clean-all: clean | 371 clean-all: clean |
| 372 rm -rf build/ docs/ | 372 rm -rf build/ docs/ |
| OLD | NEW |