OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 rm -rf $(OUTDIR)/$(basename $@).release | 402 rm -rf $(OUTDIR)/$(basename $@).release |
403 rm -rf $(OUTDIR)/$(basename $@).debug | 403 rm -rf $(OUTDIR)/$(basename $@).debug |
404 rm -rf $(OUTDIR)/$(basename $@).optdebug | 404 rm -rf $(OUTDIR)/$(basename $@).optdebug |
405 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete | 405 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete |
406 | 406 |
407 native.clean: | 407 native.clean: |
408 rm -f $(OUTDIR)/Makefile.native | 408 rm -f $(OUTDIR)/Makefile.native |
409 rm -rf $(OUTDIR)/native | 409 rm -rf $(OUTDIR)/native |
410 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete | 410 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete |
411 | 411 |
412 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean | 412 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean |
413 | 413 |
414 # GYP file generation targets. | 414 # GYP file generation targets. |
415 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 415 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
416 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 416 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
417 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ | 417 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ |
418 PYTHONPATH="$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ | 418 PYTHONPATH="$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ |
419 GYP_GENERATORS=make \ | 419 GYP_GENERATORS=make \ |
420 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 420 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
421 -Ibuild/standalone.gypi --depth=. \ | 421 -Ibuild/standalone.gypi --depth=. \ |
422 -Dv8_target_arch=$(subst .,,$(suffix $(basename $@))) \ | 422 -Dv8_target_arch=$(subst .,,$(suffix $(basename $@))) \ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 $(ENVFILE).new: | 460 $(ENVFILE).new: |
461 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 461 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
462 echo "CXX=$(CXX)" >> $(ENVFILE).new | 462 echo "CXX=$(CXX)" >> $(ENVFILE).new |
463 | 463 |
464 # Heap constants for grokdump. | 464 # Heap constants for grokdump. |
465 DUMP_FILE = tools/v8heapconst.py | 465 DUMP_FILE = tools/v8heapconst.py |
466 grokdump: ia32.release | 466 grokdump: ia32.release |
467 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) | 467 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) |
468 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) | 468 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) |
469 | 469 |
| 470 # Support for the GNU GLOBAL Source Code Tag System. |
| 471 gtags.files: $(GYPFILES) $(ENVFILE) |
| 472 @find include src test -name '*.h' -o -name '*.cc' -o -name '*.c' > $@ |
| 473 |
| 474 GTAGS GRTAGS GPATH: gtags.files |
| 475 @GTAGSFORCECPP=yes gtags -i -q |
| 476 |
| 477 gtags.clean: |
| 478 rm -f GTAGS GRTAGS GPATH gtags.files |
| 479 |
470 # Dependencies. | 480 # Dependencies. |
471 # Remember to keep these in sync with the DEPS file. | 481 # Remember to keep these in sync with the DEPS file. |
472 dependencies: | 482 dependencies: |
473 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 483 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
474 --revision 1831 | 484 --revision 1831 |
475 svn checkout --force \ | 485 svn checkout --force \ |
476 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ | 486 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ |
477 third_party/icu --revision 258359 | 487 third_party/icu --revision 258359 |
OLD | NEW |