| 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 15 matching lines...) Expand all Loading... |
| 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 | 28 |
| 29 # Variable default definitions. Override them by exporting them in your shell. | 29 # Variable default definitions. Override them by exporting them in your shell. |
| 30 OUTDIR ?= out | 30 OUTDIR ?= out |
| 31 TESTJOBS ?= | 31 TESTJOBS ?= |
| 32 GYPFLAGS ?= | 32 GYPFLAGS ?= |
| 33 TESTFLAGS ?= | 33 TESTFLAGS ?= |
| 34 ANDROID_NDK_HOST_ARCH ?= | 34 ANDROID_NDK_HOST_ARCH ?= |
| 35 ANDROID_V8 ?= /data/local/tmp/v8 | 35 ANDROID_V8 ?= /data/local/tmp/v8 |
| 36 NACL_SDK_ROOT ?= | |
| 37 | 36 |
| 38 # Special build flags. Use them like this: "make library=shared" | 37 # Special build flags. Use them like this: "make library=shared" |
| 39 | 38 |
| 40 # library=shared || component=shared_library | 39 # library=shared || component=shared_library |
| 41 ifeq ($(library), shared) | 40 ifeq ($(library), shared) |
| 42 GYPFLAGS += -Dcomponent=shared_library | 41 GYPFLAGS += -Dcomponent=shared_library |
| 43 endif | 42 endif |
| 44 ifdef component | 43 ifdef component |
| 45 GYPFLAGS += -Dcomponent=$(component) | 44 GYPFLAGS += -Dcomponent=$(component) |
| 46 endif | 45 endif |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 endif | 228 endif |
| 230 | 229 |
| 231 # ----------------- available targets: -------------------- | 230 # ----------------- available targets: -------------------- |
| 232 # - "grokdump": rebuilds heap constants lists used by grokdump | 231 # - "grokdump": rebuilds heap constants lists used by grokdump |
| 233 # - any arch listed in ARCHES (see below) | 232 # - any arch listed in ARCHES (see below) |
| 234 # - any mode listed in MODES | 233 # - any mode listed in MODES |
| 235 # - every combination <arch>.<mode>, e.g. "ia32.release" | 234 # - every combination <arch>.<mode>, e.g. "ia32.release" |
| 236 # - "native": current host's architecture, release mode | 235 # - "native": current host's architecture, release mode |
| 237 # - any of the above with .check appended, e.g. "ia32.release.check" | 236 # - any of the above with .check appended, e.g. "ia32.release.check" |
| 238 # - "android": cross-compile for Android/ARM | 237 # - "android": cross-compile for Android/ARM |
| 239 # - "nacl" : cross-compile for Native Client (ia32 and x64) | |
| 240 # - default (no target specified): build all DEFAULT_ARCHES and MODES | 238 # - default (no target specified): build all DEFAULT_ARCHES and MODES |
| 241 # - "check": build all targets and run all tests | 239 # - "check": build all targets and run all tests |
| 242 # - "<arch>.clean" for any <arch> in ARCHES | 240 # - "<arch>.clean" for any <arch> in ARCHES |
| 243 # - "clean": clean all ARCHES | 241 # - "clean": clean all ARCHES |
| 244 | 242 |
| 245 # ----------------- internal stuff ------------------------ | 243 # ----------------- internal stuff ------------------------ |
| 246 | 244 |
| 247 # Architectures and modes to be compiled. Consider these to be internal | 245 # Architectures and modes to be compiled. Consider these to be internal |
| 248 # variables, don't override them (use the targets instead). | 246 # variables, don't override them (use the targets instead). |
| 249 ARCHES = ia32 x64 arm arm64 mips mipsel mips64 mips64el x87 ppc ppc64 s390 \ | 247 ARCHES = ia32 x64 arm arm64 mips mipsel mips64 mips64el x87 ppc ppc64 s390 \ |
| 250 s390x | 248 s390x |
| 251 ARCHES32 = ia32 arm mips mipsel x87 ppc s390 | 249 ARCHES32 = ia32 arm mips mipsel x87 ppc s390 |
| 252 DEFAULT_ARCHES = ia32 x64 arm | 250 DEFAULT_ARCHES = ia32 x64 arm |
| 253 MODES = release debug optdebug | 251 MODES = release debug optdebug |
| 254 DEFAULT_MODES = release debug | 252 DEFAULT_MODES = release debug |
| 255 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ | 253 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ |
| 256 android_mipsel android_x87 | 254 android_mipsel android_x87 |
| 257 NACL_ARCHES = nacl_ia32 nacl_x64 | |
| 258 | 255 |
| 259 # List of files that trigger Makefile regeneration: | 256 # List of files that trigger Makefile regeneration: |
| 260 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ | 257 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ |
| 261 gypfiles/shim_headers.gypi gypfiles/features.gypi \ | 258 gypfiles/shim_headers.gypi gypfiles/features.gypi \ |
| 262 gypfiles/standalone.gypi \ | 259 gypfiles/standalone.gypi \ |
| 263 gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \ | 260 gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \ |
| 264 test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \ | 261 test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \ |
| 265 test/unittests/unittests.gyp src/v8.gyp \ | 262 test/unittests/unittests.gyp src/v8.gyp \ |
| 266 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ | 263 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ |
| 267 buildtools/third_party/libc++abi/libc++abi.gyp \ | 264 buildtools/third_party/libc++abi/libc++abi.gyp \ |
| 268 buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ | 265 buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ |
| 269 src/third_party/vtune/v8vtune.gyp src/d8.gyp | 266 src/third_party/vtune/v8vtune.gyp src/d8.gyp |
| 270 | 267 |
| 271 # If vtunejit=on, the v8vtune.gyp will be appended. | 268 # If vtunejit=on, the v8vtune.gyp will be appended. |
| 272 ifeq ($(vtunejit), on) | 269 ifeq ($(vtunejit), on) |
| 273 GYPFILES += src/third_party/vtune/v8vtune.gyp | 270 GYPFILES += src/third_party/vtune/v8vtune.gyp |
| 274 endif | 271 endif |
| 275 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". | 272 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". |
| 276 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) | 273 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) |
| 277 ANDROID_BUILDS = $(foreach mode,$(MODES), \ | 274 ANDROID_BUILDS = $(foreach mode,$(MODES), \ |
| 278 $(addsuffix .$(mode),$(ANDROID_ARCHES))) | 275 $(addsuffix .$(mode),$(ANDROID_ARCHES))) |
| 279 NACL_BUILDS = $(foreach mode,$(MODES), \ | |
| 280 $(addsuffix .$(mode),$(NACL_ARCHES))) | |
| 281 # Generates corresponding test targets, e.g. "ia32.release.check". | 276 # Generates corresponding test targets, e.g. "ia32.release.check". |
| 282 CHECKS = $(addsuffix .check,$(BUILDS)) | 277 CHECKS = $(addsuffix .check,$(BUILDS)) |
| 283 QUICKCHECKS = $(addsuffix .quickcheck,$(BUILDS)) | 278 QUICKCHECKS = $(addsuffix .quickcheck,$(BUILDS)) |
| 284 ANDROID_CHECKS = $(addsuffix .check,$(ANDROID_BUILDS)) | 279 ANDROID_CHECKS = $(addsuffix .check,$(ANDROID_BUILDS)) |
| 285 NACL_CHECKS = $(addsuffix .check,$(NACL_BUILDS)) | |
| 286 # File where previously used GYPFLAGS are stored. | 280 # File where previously used GYPFLAGS are stored. |
| 287 ENVFILE = $(OUTDIR)/environment | 281 ENVFILE = $(OUTDIR)/environment |
| 288 | 282 |
| 289 .PHONY: all check clean builddeps dependencies $(ENVFILE).new native \ | 283 .PHONY: all check clean builddeps dependencies $(ENVFILE).new native \ |
| 290 qc quickcheck $(QUICKCHECKS) turbocheck \ | 284 qc quickcheck $(QUICKCHECKS) turbocheck \ |
| 291 $(addsuffix .quickcheck,$(MODES)) $(addsuffix .quickcheck,$(ARCHES)) \ | 285 $(addsuffix .quickcheck,$(MODES)) $(addsuffix .quickcheck,$(ARCHES)) \ |
| 292 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ | 286 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ |
| 293 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \ | 287 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \ |
| 294 $(ANDROID_ARCHES) $(ANDROID_BUILDS) $(ANDROID_CHECKS) \ | 288 $(ANDROID_ARCHES) $(ANDROID_BUILDS) $(ANDROID_CHECKS) |
| 295 $(NACL_ARCHES) $(NACL_BUILDS) $(NACL_CHECKS) \ | |
| 296 must-set-NACL_SDK_ROOT | |
| 297 | 289 |
| 298 # Target definitions. "all" is the default. | 290 # Target definitions. "all" is the default. |
| 299 all: $(DEFAULT_MODES) | 291 all: $(DEFAULT_MODES) |
| 300 | 292 |
| 301 # Special target for the buildbots to use. Depends on $(OUTDIR)/Makefile | 293 # Special target for the buildbots to use. Depends on $(OUTDIR)/Makefile |
| 302 # having been created before. | 294 # having been created before. |
| 303 buildbot: | 295 buildbot: |
| 304 $(MAKE) -C "$(OUTDIR)" BUILDTYPE=$(BUILDTYPE) \ | 296 $(MAKE) -C "$(OUTDIR)" BUILDTYPE=$(BUILDTYPE) \ |
| 305 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" | 297 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" |
| 306 | 298 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 325 | 317 |
| 326 $(ANDROID_ARCHES): $(addprefix $$@.,$(MODES)) | 318 $(ANDROID_ARCHES): $(addprefix $$@.,$(MODES)) |
| 327 | 319 |
| 328 $(ANDROID_BUILDS): $(GYPFILES) $(ENVFILE) Makefile.android | 320 $(ANDROID_BUILDS): $(GYPFILES) $(ENVFILE) Makefile.android |
| 329 @$(MAKE) -f Makefile.android $@ \ | 321 @$(MAKE) -f Makefile.android $@ \ |
| 330 ARCH="$(basename $@)" \ | 322 ARCH="$(basename $@)" \ |
| 331 MODE="$(subst .,,$(suffix $@))" \ | 323 MODE="$(subst .,,$(suffix $@))" \ |
| 332 OUTDIR="$(OUTDIR)" \ | 324 OUTDIR="$(OUTDIR)" \ |
| 333 GYPFLAGS="$(GYPFLAGS)" | 325 GYPFLAGS="$(GYPFLAGS)" |
| 334 | 326 |
| 335 $(NACL_ARCHES): $(addprefix $$@.,$(MODES)) | |
| 336 | |
| 337 $(NACL_BUILDS): $(GYPFILES) $(ENVFILE) \ | |
| 338 Makefile.nacl must-set-NACL_SDK_ROOT | |
| 339 @$(MAKE) -f Makefile.nacl $@ \ | |
| 340 ARCH="$(basename $@)" \ | |
| 341 MODE="$(subst .,,$(suffix $@))" \ | |
| 342 OUTDIR="$(OUTDIR)" \ | |
| 343 GYPFLAGS="$(GYPFLAGS)" | |
| 344 | |
| 345 # Test targets. | 327 # Test targets. |
| 346 check: all | 328 check: all |
| 347 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 329 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 348 --arch=$(shell echo $(DEFAULT_ARCHES) | sed -e 's/ /,/g') \ | 330 --arch=$(shell echo $(DEFAULT_ARCHES) | sed -e 's/ /,/g') \ |
| 349 $(TESTFLAGS) | 331 $(TESTFLAGS) |
| 350 | 332 |
| 351 $(addsuffix .check,$(MODES)): $$(basename $$@) | 333 $(addsuffix .check,$(MODES)): $$(basename $$@) |
| 352 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 334 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 353 --mode=$(basename $@) $(TESTFLAGS) | 335 --mode=$(basename $@) $(TESTFLAGS) |
| 354 | 336 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 378 | 360 |
| 379 $(addsuffix .check, $(ANDROID_BUILDS)): $$(basename $$@).sync | 361 $(addsuffix .check, $(ANDROID_BUILDS)): $$(basename $$@).sync |
| 380 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 362 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 381 --arch-and-mode=$(basename $@) \ | 363 --arch-and-mode=$(basename $@) \ |
| 382 --timeout=600 \ | 364 --timeout=600 \ |
| 383 --command-prefix="tools/android-run.py" $(TESTFLAGS) | 365 --command-prefix="tools/android-run.py" $(TESTFLAGS) |
| 384 | 366 |
| 385 $(addsuffix .check, $(ANDROID_ARCHES)): \ | 367 $(addsuffix .check, $(ANDROID_ARCHES)): \ |
| 386 $(addprefix $$(basename $$@).,$(MODES)).check | 368 $(addprefix $$(basename $$@).,$(MODES)).check |
| 387 | 369 |
| 388 $(addsuffix .check, $(NACL_BUILDS)): $$(basename $$@) | |
| 389 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | |
| 390 --arch-and-mode=$(basename $@) \ | |
| 391 --timeout=600 --noi18n \ | |
| 392 --command-prefix="tools/nacl-run.py" | |
| 393 | |
| 394 $(addsuffix .check, $(NACL_ARCHES)): \ | |
| 395 $(addprefix $$(basename $$@).,$(MODES)).check | |
| 396 | |
| 397 native.check: native | 370 native.check: native |
| 398 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR)/native \ | 371 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR)/native \ |
| 399 --arch-and-mode=. $(TESTFLAGS) | 372 --arch-and-mode=. $(TESTFLAGS) |
| 400 | 373 |
| 401 SUPERFASTTESTMODES = ia32.release | 374 SUPERFASTTESTMODES = ia32.release |
| 402 FASTTESTMODES = $(SUPERFASTTESTMODES),x64.release,ia32.optdebug,x64.optdebug,arm
.optdebug,arm64.release | 375 FASTTESTMODES = $(SUPERFASTTESTMODES),x64.release,ia32.optdebug,x64.optdebug,arm
.optdebug,arm64.release |
| 403 FASTCOMPILEMODES = $(FASTTESTMODES),arm64.optdebug | 376 FASTCOMPILEMODES = $(FASTTESTMODES),arm64.optdebug |
| 404 | 377 |
| 405 COMMA = , | 378 COMMA = , |
| 406 EMPTY = | 379 EMPTY = |
| 407 SPACE = $(EMPTY) $(EMPTY) | 380 SPACE = $(EMPTY) $(EMPTY) |
| 408 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTCOMPILEMODES)) | 381 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTCOMPILEMODES)) |
| 409 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 382 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 410 --arch-and-mode=$(SUPERFASTTESTMODES) $(TESTFLAGS) --quickcheck \ | 383 --arch-and-mode=$(SUPERFASTTESTMODES) $(TESTFLAGS) --quickcheck \ |
| 411 --download-data mozilla webkit | 384 --download-data mozilla webkit |
| 412 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 385 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 413 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck | 386 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck |
| 414 qc: quickcheck | 387 qc: quickcheck |
| 415 | 388 |
| 416 turbocheck: $(subst $(COMMA),$(SPACE),$(FASTCOMPILEMODES)) | 389 turbocheck: $(subst $(COMMA),$(SPACE),$(FASTCOMPILEMODES)) |
| 417 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 390 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 418 --arch-and-mode=$(SUPERFASTTESTMODES) $(TESTFLAGS) \ | 391 --arch-and-mode=$(SUPERFASTTESTMODES) $(TESTFLAGS) \ |
| 419 --quickcheck --variants=turbofan --download-data mozilla webkit | 392 --quickcheck --variants=turbofan --download-data mozilla webkit |
| 420 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 393 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 421 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) \ | 394 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) \ |
| 422 --quickcheck --variants=turbofan | 395 --quickcheck --variants=turbofan |
| 423 tc: turbocheck | 396 tc: turbocheck |
| 424 | 397 |
| 425 # Clean targets. You can clean each architecture individually, or everything. | 398 # Clean targets. You can clean each architecture individually, or everything. |
| 426 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)): | 399 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES)): |
| 427 rm -f $(OUTDIR)/Makefile.$(basename $@)* | 400 rm -f $(OUTDIR)/Makefile.$(basename $@)* |
| 428 rm -rf $(OUTDIR)/$(basename $@).release | 401 rm -rf $(OUTDIR)/$(basename $@).release |
| 429 rm -rf $(OUTDIR)/$(basename $@).debug | 402 rm -rf $(OUTDIR)/$(basename $@).debug |
| 430 rm -rf $(OUTDIR)/$(basename $@).optdebug | 403 rm -rf $(OUTDIR)/$(basename $@).optdebug |
| 431 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete | 404 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete |
| 432 | 405 |
| 433 native.clean: | 406 native.clean: |
| 434 rm -f $(OUTDIR)/Makefile.native | 407 rm -f $(OUTDIR)/Makefile.native |
| 435 rm -rf $(OUTDIR)/native | 408 rm -rf $(OUTDIR)/native |
| 436 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete | 409 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete |
| 437 | 410 |
| 438 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean tags.clean | 411 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES)) native.clean gtags.clean
tags.clean |
| 439 | 412 |
| 440 # GYP file generation targets. | 413 # GYP file generation targets. |
| 441 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 414 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
| 442 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 415 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
| 443 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 416 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
| 444 cut -f 2 -d " " | cut -f 1 -d "-" )) | 417 cut -f 2 -d " " | cut -f 1 -d "-" )) |
| 445 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 418 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
| 446 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) | 419 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
| 447 $(eval CXX_TARGET_ARCH:=$(subst s390x,s390,$(CXX_TARGET_ARCH))) | 420 $(eval CXX_TARGET_ARCH:=$(subst s390x,s390,$(CXX_TARGET_ARCH))) |
| 448 $(eval CXX_TARGET_ARCH:=$(subst powerpc,ppc,$(CXX_TARGET_ARCH))) | 421 $(eval CXX_TARGET_ARCH:=$(subst powerpc,ppc,$(CXX_TARGET_ARCH))) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 460 -Dtarget_arch=ia32,)) \ | 433 -Dtarget_arch=ia32,)) \ |
| 461 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ | 434 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ |
| 462 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) | 435 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) |
| 463 | 436 |
| 464 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) | 437 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
| 465 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil
es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ | 438 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil
es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ |
| 466 GYP_GENERATORS=make \ | 439 GYP_GENERATORS=make \ |
| 467 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ | 440 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ |
| 468 -Igypfiles/standalone.gypi --depth=. -S.native $(GYPFLAGS) | 441 -Igypfiles/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
| 469 | 442 |
| 470 # Note that NACL_SDK_ROOT must be set to point to an appropriate | |
| 471 # Native Client SDK before using this makefile. You can download | |
| 472 # an SDK here: | |
| 473 # https://developers.google.com/native-client/sdk/download | |
| 474 # The path indicated by NACL_SDK_ROOT will typically end with | |
| 475 # a folder for a pepper version such as "pepper_25" that should | |
| 476 # have "tools" and "toolchain" subdirectories. | |
| 477 must-set-NACL_SDK_ROOT: | |
| 478 ifndef NACL_SDK_ROOT | |
| 479 $(error NACL_SDK_ROOT must be set) | |
| 480 endif | |
| 481 | |
| 482 # Replaces the old with the new environment file if they're different, which | 443 # Replaces the old with the new environment file if they're different, which |
| 483 # will trigger GYP to regenerate Makefiles. | 444 # will trigger GYP to regenerate Makefiles. |
| 484 $(ENVFILE): $(ENVFILE).new | 445 $(ENVFILE): $(ENVFILE).new |
| 485 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ | 446 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ |
| 486 then rm $(ENVFILE).new; \ | 447 then rm $(ENVFILE).new; \ |
| 487 else mv $(ENVFILE).new $(ENVFILE); fi | 448 else mv $(ENVFILE).new $(ENVFILE); fi |
| 488 | 449 |
| 489 # Stores current GYPFLAGS in a file. | 450 # Stores current GYPFLAGS in a file. |
| 490 $(ENVFILE).new: | 451 $(ENVFILE).new: |
| 491 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 452 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 517 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) | 478 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) |
| 518 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ | 479 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ |
| 519 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) | 480 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) |
| 520 ctags --fields=+l -L $< | 481 ctags --fields=+l -L $< |
| 521 | 482 |
| 522 tags.clean: | 483 tags.clean: |
| 523 rm -r tags | 484 rm -r tags |
| 524 | 485 |
| 525 dependencies builddeps: | 486 dependencies builddeps: |
| 526 $(error Use 'gclient sync' instead) | 487 $(error Use 'gclient sync' instead) |
| OLD | NEW |