| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # | 5 # |
| 6 # GNU Make based build file. For details on GNU Make see: | 6 # GNU Make based build file. For details on GNU Make see: |
| 7 # http://www.gnu.org/software/make/manual/make.html | 7 # http://www.gnu.org/software/make/manual/make.html |
| 8 # | 8 # |
| 9 | 9 |
| 10 # | 10 # |
| 11 # Toolchain | 11 # Toolchain |
| 12 # | 12 # |
| 13 # By default the VALID_TOOLCHAINS list contains pnacl, newlib and glibc. If | 13 # By default the VALID_TOOLCHAINS list contains pnacl, newlib and glibc. If |
| 14 # your project only builds in one or the other then this should be overridden | 14 # your project only builds in one or the other then this should be overridden |
| 15 # accordingly. | 15 # accordingly. |
| 16 # | 16 # |
| 17 ifneq ($(ENABLE_BIONIC),) |
| 18 ALL_TOOLCHAINS ?= pnacl newlib glibc bionic |
| 19 else |
| 17 ALL_TOOLCHAINS ?= pnacl newlib glibc | 20 ALL_TOOLCHAINS ?= pnacl newlib glibc |
| 18 ifneq ($(ENABLE_BIONIC),) | |
| 19 ALL_TOOLCHAINS += bionic | |
| 20 endif | 21 endif |
| 21 | 22 |
| 22 VALID_TOOLCHAINS ?= $(ALL_TOOLCHAINS) | 23 VALID_TOOLCHAINS ?= $(ALL_TOOLCHAINS) |
| 23 TOOLCHAIN ?= $(word 1,$(VALID_TOOLCHAINS)) | 24 TOOLCHAIN ?= $(word 1,$(VALID_TOOLCHAINS)) |
| 24 | 25 |
| 25 # | 26 # |
| 26 # Top Make file, which we want to trigger a rebuild on if it changes | 27 # Top Make file, which we want to trigger a rebuild on if it changes |
| 27 # | 28 # |
| 28 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) | 29 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) |
| 29 | 30 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 # uppercase aliases (for backward compatibility) | 526 # uppercase aliases (for backward compatibility) |
| 526 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 527 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
| 527 CHECK_FOR_CHROME: check_for_chrome | 528 CHECK_FOR_CHROME: check_for_chrome |
| 528 DEBUG: debug | 529 DEBUG: debug |
| 529 LAUNCH: run | 530 LAUNCH: run |
| 530 RUN: run | 531 RUN: run |
| 531 | 532 |
| 532 endif # TOOLCHAIN is valid... | 533 endif # TOOLCHAIN is valid... |
| 533 | 534 |
| 534 endif # TOOLCHAIN=all | 535 endif # TOOLCHAIN=all |
| OLD | NEW |