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, clang-newlib and glibc. | 13 # By default the VALID_TOOLCHAINS list contains pnacl, clang-newlib and glibc. |
14 # If your project only builds in one or the other then this should be overridden | 14 # If 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 glibc clang-newlib bionic |
| 19 else |
17 ALL_TOOLCHAINS ?= pnacl glibc clang-newlib | 20 ALL_TOOLCHAINS ?= pnacl glibc clang-newlib |
| 21 endif |
18 | 22 |
19 VALID_TOOLCHAINS ?= $(ALL_TOOLCHAINS) | 23 VALID_TOOLCHAINS ?= $(ALL_TOOLCHAINS) |
20 TOOLCHAIN ?= $(word 1,$(VALID_TOOLCHAINS)) | 24 TOOLCHAIN ?= $(word 1,$(VALID_TOOLCHAINS)) |
21 | 25 |
22 # | 26 # |
23 # 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 |
24 # | 28 # |
25 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) | 29 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) |
26 | 30 |
27 | 31 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 # macros and targets. | 421 # macros and targets. |
418 # | 422 # |
419 ifneq (,$(findstring $(TOOLCHAIN),linux mac)) | 423 ifneq (,$(findstring $(TOOLCHAIN),linux mac)) |
420 include $(NACL_SDK_ROOT)/tools/host_gcc.mk | 424 include $(NACL_SDK_ROOT)/tools/host_gcc.mk |
421 endif | 425 endif |
422 | 426 |
423 ifneq (,$(findstring $(TOOLCHAIN),win)) | 427 ifneq (,$(findstring $(TOOLCHAIN),win)) |
424 include $(NACL_SDK_ROOT)/tools/host_vc.mk | 428 include $(NACL_SDK_ROOT)/tools/host_vc.mk |
425 endif | 429 endif |
426 | 430 |
427 ifneq (,$(findstring $(TOOLCHAIN),glibc clang-newlib)) | 431 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic clang-newlib)) |
428 include $(NACL_SDK_ROOT)/tools/nacl_gcc.mk | 432 include $(NACL_SDK_ROOT)/tools/nacl_gcc.mk |
429 endif | 433 endif |
430 | 434 |
431 ifneq (,$(findstring $(TOOLCHAIN),pnacl)) | 435 ifneq (,$(findstring $(TOOLCHAIN),pnacl)) |
432 include $(NACL_SDK_ROOT)/tools/nacl_llvm.mk | 436 include $(NACL_SDK_ROOT)/tools/nacl_llvm.mk |
433 endif | 437 endif |
434 | 438 |
435 # | 439 # |
436 # File to redirect to to in order to hide output. | 440 # File to redirect to to in order to hide output. |
437 # | 441 # |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 # uppercase aliases (for backward compatibility) | 537 # uppercase aliases (for backward compatibility) |
534 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 538 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
535 CHECK_FOR_CHROME: check_for_chrome | 539 CHECK_FOR_CHROME: check_for_chrome |
536 DEBUG: debug | 540 DEBUG: debug |
537 LAUNCH: run | 541 LAUNCH: run |
538 RUN: run | 542 RUN: run |
539 | 543 |
540 endif # TOOLCHAIN is valid... | 544 endif # TOOLCHAIN is valid... |
541 | 545 |
542 endif # TOOLCHAIN=all | 546 endif # TOOLCHAIN=all |
OLD | NEW |