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

Side by Side Diff: Makefile.standalone

Issue 1207823002: Add doxygen build target (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add docs to gitignore 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 | « Doxyfile ('k') | 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> 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 # Creates symbolic link so that testing is easier. Also runs 228 # Creates symbolic link so that testing is easier. Also runs
229 # pnacl-sz to verify that the defines flags have valid values, 229 # pnacl-sz to verify that the defines flags have valid values,
230 # as well as describe the corresponding build attributes. 230 # as well as describe the corresponding build attributes.
231 make_symlink: $(OBJDIR)/pnacl-sz 231 make_symlink: $(OBJDIR)/pnacl-sz
232 rm -rf pnacl-sz 232 rm -rf pnacl-sz
233 ln -s $(OBJDIR)/pnacl-sz 233 ln -s $(OBJDIR)/pnacl-sz
234 @echo "Build Attributes:" 234 @echo "Build Attributes:"
235 @$(OBJDIR)/pnacl-sz --build-atts 235 @$(OBJDIR)/pnacl-sz --build-atts
236 236
237 .PHONY: all make_symlink runtime bloat sb 237 .PHONY: all make_symlink runtime bloat sb docs
238 238
239 $(OBJDIR)/pnacl-sz: $(OBJS) 239 $(OBJDIR)/pnacl-sz: $(OBJS)
240 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \ 240 $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) \
241 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib) 241 -Wl,-rpath=$(abspath $(LIBCXX_INSTALL_PATH)/lib)
242 242
243 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS) 243 $(SB_OBJDIR)/pnacl-sz.x86-32.nexe: $(SB_OBJS)
244 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@)) 244 $(eval PNACL_SZ_BASE := $(patsubst %.nexe, %, $@))
245 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \ 245 $(SB_CXX) $(SB_LDFLAGS) -o $(PNACL_SZ_BASE).nonfinal.pexe $^ \
246 $(SB_LLVM_LDFLAGS) 246 $(SB_LLVM_LDFLAGS)
247 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \ 247 $(SB_TRANSLATE) -arch x86-32 $(PNACL_SZ_BASE).nonfinal.pexe -o $@ \
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 git diff -U0 `git merge-base HEAD master` | \ 331 git diff -U0 `git merge-base HEAD master` | \
332 PATH=$(PNACL_BIN_PATH):$(PATH) \ 332 PATH=$(PNACL_BIN_PATH):$(PATH) \
333 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ 333 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \
334 -p1 -style=LLVM -i 334 -p1 -style=LLVM -i
335 335
336 bloat: make_symlink 336 bloat: make_symlink
337 nm -C -S -l pnacl-sz | \ 337 nm -C -S -l pnacl-sz | \
338 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json 338 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json
339 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html 339 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html
340 340
341 docs:
Jim Stichnoth 2015/06/26 00:56:18 Seems like this should still depend on the Doxyfil
ascull 2015/06/29 17:05:11 As it is a PHONY target it is always out of date s
342 doxygen Doxyfile
343 @echo See file://`pwd`/docs/html/index.html
344
341 clean: 345 clean:
342 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json 346 rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json
343 347
344 clean-all: clean 348 clean-all: clean
345 » rm -rf build/ 349 » rm -rf build/ docs/
OLDNEW
« no previous file with comments | « Doxyfile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698