| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 ifeq ($(TOOLCHAIN),win) | 277 ifeq ($(TOOLCHAIN),win) |
| 278 HOST_EXT = .dll | 278 HOST_EXT = .dll |
| 279 else | 279 else |
| 280 HOST_EXT = .so | 280 HOST_EXT = .so |
| 281 endif | 281 endif |
| 282 | 282 |
| 283 | 283 |
| 284 # | 284 # |
| 285 # Common Compile Options | 285 # Common Compile Options |
| 286 # | 286 # |
| 287 # For example, -DNDEBUG is added to release builds by default |
| 288 # so that calls to assert(3) are not included in the build. |
| 289 # |
| 287 ifeq ($(CONFIG),Release) | 290 ifeq ($(CONFIG),Release) |
| 288 POSIX_FLAGS ?= -g -O2 -pthread -MMD | 291 POSIX_FLAGS ?= -g -O2 -pthread -MMD -DNDEBUG |
| 289 else | 292 else |
| 290 POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG | 293 POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG |
| 291 endif | 294 endif |
| 292 | 295 |
| 293 ifdef SEL_LDR | 296 ifdef SEL_LDR |
| 294 POSIX_FLAGS += -DSEL_LDR=1 | 297 POSIX_FLAGS += -DSEL_LDR=1 |
| 295 endif | 298 endif |
| 296 | 299 |
| 297 NACL_CFLAGS ?= -Wno-long-long -Werror | 300 NACL_CFLAGS ?= -Wno-long-long -Werror |
| 298 NACL_CXXFLAGS ?= -Wno-long-long -Werror | 301 NACL_CXXFLAGS ?= -Wno-long-long -Werror |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 # uppercase aliases (for backward compatibility) | 496 # uppercase aliases (for backward compatibility) |
| 494 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 497 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
| 495 CHECK_FOR_CHROME: check_for_chrome | 498 CHECK_FOR_CHROME: check_for_chrome |
| 496 DEBUG: debug | 499 DEBUG: debug |
| 497 LAUNCH: run | 500 LAUNCH: run |
| 498 RUN: run | 501 RUN: run |
| 499 | 502 |
| 500 endif # TOOLCHAIN is valid... | 503 endif # TOOLCHAIN is valid... |
| 501 | 504 |
| 502 endif # TOOLCHAIN=all | 505 endif # TOOLCHAIN=all |
| OLD | NEW |