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> LLVM_BIN_PATH=<path> \ | 5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> \ |
6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> ... | 6 # LIBCXX_INSTALL_PATH=<path> CLANG_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 IceTargetLowering.cpp \ | 107 IceTargetLowering.cpp \ |
108 IceTargetLoweringX8632.cpp \ | 108 IceTargetLoweringX8632.cpp \ |
109 IceTimerTree.cpp \ | 109 IceTimerTree.cpp \ |
110 IceTranslator.cpp \ | 110 IceTranslator.cpp \ |
111 IceTypes.cpp \ | 111 IceTypes.cpp \ |
112 llvm2ice.cpp \ | 112 llvm2ice.cpp \ |
113 PNaClTranslator.cpp | 113 PNaClTranslator.cpp |
114 | 114 |
115 ifndef MINIMAL | 115 ifndef MINIMAL |
116 SRCS += IceConverter.cpp \ | 116 SRCS += IceConverter.cpp \ |
117 » IceTypeConverter.cpp | 117 » IceTypeConverter.cpp \ |
118 » BitcodeMunge.cpp | |
jvoung (off chromium)
2015/01/07 22:24:34
Could this be under the unittest directory, and th
Karl
2015/01/08 21:35:05
Done. Added CL flag GenerateUnitTestMessages, and
| |
118 endif | 119 endif |
119 | 120 |
120 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) | 121 OBJS=$(patsubst %.cpp, $(OBJDIR)/%.o, $(SRCS)) |
121 | 122 |
122 UNITTEST_SRCS = \ | 123 UNITTEST_SRCS = \ |
123 IceELFSectionTest.cpp | 124 IceELFSectionTest.cpp |
124 | 125 |
126 ifndef MINIMAL | |
127 UNITTEST_SRCS += IceParseInstsTest.cpp | |
128 endif | |
129 | |
125 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) | 130 UNITTEST_OBJS = $(patsubst %.cpp, $(OBJDIR)/unittest/%.o, $(UNITTEST_SRCS)) |
126 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/llvm2ice.o,$(OBJS)) | 131 UNITTEST_LIB_OBJS = $(filter-out $(OBJDIR)/llvm2ice.o,$(OBJS)) |
127 | 132 |
128 # Keep all the first target so it's the default. | 133 # Keep all the first target so it's the default. |
129 all: $(OBJDIR)/llvm2ice make_symlink | 134 all: $(OBJDIR)/llvm2ice make_symlink |
130 | 135 |
131 # Creates symbolic link so that testing is easier. Also runs | 136 # Creates symbolic link so that testing is easier. Also runs |
132 # llvm2ice to verify that the defines flags have valid values, | 137 # llvm2ice to verify that the defines flags have valid values, |
133 # as well as describe the corresponding build attributes. | 138 # as well as describe the corresponding build attributes. |
134 make_symlink: $(OBJDIR)/llvm2ice | 139 make_symlink: $(OBJDIR)/llvm2ice |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 endif | 207 endif |
203 format-diff: | 208 format-diff: |
204 git diff -U0 `git merge-base HEAD master` | \ | 209 git diff -U0 `git merge-base HEAD master` | \ |
205 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i | 210 $(CLANG_FORMAT_DIFF) -p1 -style=LLVM -i |
206 | 211 |
207 clean: | 212 clean: |
208 rm -rf llvm2ice *.o $(OBJDIR) | 213 rm -rf llvm2ice *.o $(OBJDIR) |
209 | 214 |
210 clean-all: clean | 215 clean-all: clean |
211 rm -rf build/ | 216 rm -rf build/ |
OLD | NEW |