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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean tags.clean | 441 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean tags.clean |
442 | 442 |
443 # GYP file generation targets. | 443 # GYP file generation targets. |
444 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 444 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
445 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 445 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
446 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 446 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
447 cut -f 2 -d " " | cut -f 1 -d "-" )) | 447 cut -f 2 -d " " | cut -f 1 -d "-" )) |
448 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 448 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
449 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) | 449 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
450 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) | 450 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) |
451 » PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ | 451 » PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil
es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ |
452 GYP_GENERATORS=make \ | 452 GYP_GENERATORS=make \ |
453 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ | 453 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ |
454 -Igypfiles/standalone.gypi --depth=. \ | 454 -Igypfiles/standalone.gypi --depth=. \ |
455 -Dv8_target_arch=$(V8_TARGET_ARCH) \ | 455 -Dv8_target_arch=$(V8_TARGET_ARCH) \ |
456 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ | 456 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ |
457 -Dtarget_arch=$(V8_TARGET_ARCH),) \ | 457 -Dtarget_arch=$(V8_TARGET_ARCH),) \ |
458 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ | 458 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ |
459 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) | 459 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) |
460 | 460 |
461 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) | 461 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) | 514 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) |
515 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ | 515 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ |
516 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) | 516 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) |
517 ctags --fields=+l -L $< | 517 ctags --fields=+l -L $< |
518 | 518 |
519 tags.clean: | 519 tags.clean: |
520 rm -r tags | 520 rm -r tags |
521 | 521 |
522 dependencies builddeps: | 522 dependencies builddeps: |
523 $(error Use 'gclient sync' instead) | 523 $(error Use 'gclient sync' instead) |
OLD | NEW |