| 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 # |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 # have a preference for POSIX style command-line arguments. | 135 # have a preference for POSIX style command-line arguments. |
| 136 # | 136 # |
| 137 # Keep in mind however that the shell is responsible for command-line escaping, | 137 # Keep in mind however that the shell is responsible for command-line escaping, |
| 138 # globbing, and variable expansion, so those may change based on which shell | 138 # globbing, and variable expansion, so those may change based on which shell |
| 139 # is used. For Cygwin shells this can include automatic and incorrect expansion | 139 # is used. For Cygwin shells this can include automatic and incorrect expansion |
| 140 # of response files (files starting with '@'). | 140 # of response files (files starting with '@'). |
| 141 # | 141 # |
| 142 # Disable DOS PATH warning when using Cygwin based NaCl tools on Windows. | 142 # Disable DOS PATH warning when using Cygwin based NaCl tools on Windows. |
| 143 # | 143 # |
| 144 ifeq ($(OSNAME),win) | 144 ifeq ($(OSNAME),win) |
| 145 CYGWIN?=nodosfilewarning | 145 # Always use cmd.exe as the shell on Windows. Otherwise Make may try to |
| 146 # search the path for sh.exe. If it is found in a path with a space, the |
| 147 # command will fail. |
| 148 SHELL := cmd.exe |
| 149 CYGWIN ?= nodosfilewarning |
| 146 export CYGWIN | 150 export CYGWIN |
| 147 endif | 151 endif |
| 148 | 152 |
| 149 | 153 |
| 150 # | 154 # |
| 151 # If NACL_SDK_ROOT is not already set, then set it relative to this makefile. | 155 # If NACL_SDK_ROOT is not already set, then set it relative to this makefile. |
| 152 # | 156 # |
| 153 THIS_MAKEFILE := $(CURDIR)/$(lastword $(MAKEFILE_LIST)) | 157 THIS_MAKEFILE := $(CURDIR)/$(lastword $(MAKEFILE_LIST)) |
| 154 NACL_SDK_ROOT ?= $(realpath $(dir $(THIS_MAKEFILE))/..) | 158 NACL_SDK_ROOT ?= $(realpath $(dir $(THIS_MAKEFILE))/..) |
| 155 | 159 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 # uppercase aliases (for backward compatibility) | 536 # uppercase aliases (for backward compatibility) |
| 533 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 537 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
| 534 CHECK_FOR_CHROME: check_for_chrome | 538 CHECK_FOR_CHROME: check_for_chrome |
| 535 DEBUG: debug | 539 DEBUG: debug |
| 536 LAUNCH: run | 540 LAUNCH: run |
| 537 RUN: run | 541 RUN: run |
| 538 | 542 |
| 539 endif # TOOLCHAIN is valid... | 543 endif # TOOLCHAIN is valid... |
| 540 | 544 |
| 541 endif # TOOLCHAIN=all | 545 endif # TOOLCHAIN=all |
| OLD | NEW |