Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: Makefile.standalone

Issue 895143003: Subzero: Fix unittest build dependencies. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Also depend on unittest/*.h Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) 158 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib)
159 159
160 # TODO(stichnot): Be more precise than "*.h" here and elsewhere. 160 # TODO(stichnot): Be more precise than "*.h" here and elsewhere.
161 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def 161 $(OBJS): $(OBJDIR)/%.o: src/%.cpp src/*.h src/*.def
162 $(CXX) -c $(CXXFLAGS) $< -o $@ 162 $(CXX) -c $(CXXFLAGS) $< -o $@
163 163
164 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) 164 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS)
165 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -lgtest -lgtest_main -ldl \ 165 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -lgtest -lgtest_main -ldl \
166 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) 166 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib)
167 167
168 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp 168 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \
169 » » unittest/*.h src/*.h src/*.def
169 $(CXX) -c $(CXXFLAGS) \ 170 $(CXX) -c $(CXXFLAGS) \
170 -Isrc/ \ 171 -Isrc/ \
171 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ 172 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \
172 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ 173 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \
173 $< -o $@ 174 $< -o $@
174 175
175 $(OBJS): | $(OBJDIR) 176 $(OBJS): | $(OBJDIR)
176 177
177 $(UNITTEST_OBJS): | $(OBJDIR)/unittest 178 $(UNITTEST_OBJS): | $(OBJDIR)/unittest
178 179
(...skipping 29 matching lines...) Expand all
208 git diff -U0 `git merge-base HEAD master` | \ 209 git diff -U0 `git merge-base HEAD master` | \
209 PATH=$(LLVM_BIN_PATH):$(PATH) \ 210 PATH=$(LLVM_BIN_PATH):$(PATH) \
210 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ 211 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \
211 -p1 -style=LLVM -i 212 -p1 -style=LLVM -i
212 213
213 clean: 214 clean:
214 rm -rf llvm2ice *.o $(OBJDIR) 215 rm -rf llvm2ice *.o $(OBJDIR)
215 216
216 clean-all: clean 217 clean-all: clean
217 rm -rf build/ 218 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698