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

Side by Side Diff: Makefile.standalone

Issue 1149423011: Clean up unit munging unit tests using common NaCl API. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 6 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 | unittest/BitcodeMunge.h » ('j') | 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> 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS) 252 $(OBJDIR)/run_unittests: $(UNITTEST_OBJS) $(UNITTEST_LIB_OBJS)
253 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ 253 $(CXX) $(GTEST_LIB_PATH) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \
254 -lgtest -lgtest_main -ldl \ 254 -lgtest -lgtest_main -ldl \
255 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) 255 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib)
256 256
257 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \ 257 $(UNITTEST_OBJS): $(OBJDIR)/unittest/%.o: unittest/%.cpp \
258 unittest/*.h src/*.h src/*.def 258 unittest/*.h src/*.h src/*.def
259 $(CXX) -c $(CXXFLAGS) \ 259 $(CXX) -c $(CXXFLAGS) \
260 -Isrc/ \ 260 -Isrc/ \
261 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \ 261 -I$(LLVM_SRC_PATH)/utils/unittest/googletest/include \
262 -I$(LLVM_SRC_PATH) \
262 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \ 263 -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE \
263 $< -o $@ 264 $< -o $@
264 265
265 $(OBJS): | $(OBJDIR) 266 $(OBJS): | $(OBJDIR)
266 $(SB_OBJS): | $(SB_OBJDIR) 267 $(SB_OBJS): | $(SB_OBJDIR)
267 268
268 $(UNITTEST_OBJS): | $(OBJDIR)/unittest 269 $(UNITTEST_OBJS): | $(OBJDIR)/unittest
269 270
270 $(OBJDIR): 271 $(OBJDIR):
271 @mkdir -p $@ 272 @mkdir -p $@
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 bloat: make_symlink 328 bloat: make_symlink
328 nm -C -S -l pnacl-sz | \ 329 nm -C -S -l pnacl-sz | \
329 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
330 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html 331 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html
331 332
332 clean: 333 clean:
333 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
334 335
335 clean-all: clean 336 clean-all: clean
336 rm -rf build/ 337 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | unittest/BitcodeMunge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698