| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 endif | 319 endif |
| 320 | 320 |
| 321 | 321 |
| 322 # | 322 # |
| 323 # Common Compile Options | 323 # Common Compile Options |
| 324 # | 324 # |
| 325 # For example, -DNDEBUG is added to release builds by default | 325 # For example, -DNDEBUG is added to release builds by default |
| 326 # so that calls to assert(3) are not included in the build. | 326 # so that calls to assert(3) are not included in the build. |
| 327 # | 327 # |
| 328 ifeq ($(CONFIG),Release) | 328 ifeq ($(CONFIG),Release) |
| 329 POSIX_FLAGS ?= -g -O2 -pthread -MMD -DNDEBUG | 329 POSIX_CFLAGS ?= -g -O2 -pthread -MMD -DNDEBUG |
| 330 NACL_LDFLAGS ?= -O2 | 330 NACL_LDFLAGS ?= -O2 |
| 331 PNACL_LDFLAGS ?= -O2 | 331 PNACL_LDFLAGS ?= -O2 |
| 332 else | 332 else |
| 333 POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG | 333 POSIX_CFLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG |
| 334 endif | 334 endif |
| 335 | 335 |
| 336 NACL_CFLAGS ?= -Wno-long-long -Werror | 336 NACL_CFLAGS ?= -Wno-long-long -Werror |
| 337 NACL_CXXFLAGS ?= -Wno-long-long -Werror | 337 NACL_CXXFLAGS ?= -Wno-long-long -Werror |
| 338 NACL_LDFLAGS += -Wl,-as-needed -pthread | 338 NACL_LDFLAGS += -Wl,-as-needed -pthread |
| 339 | 339 |
| 340 # | 340 # |
| 341 # Default Paths | 341 # Default Paths |
| 342 # | 342 # |
| 343 INC_PATHS := $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --include-dirs) $(EXTRA_INC_
PATHS) | 343 INC_PATHS := $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --include-dirs) $(EXTRA_INC_
PATHS) |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 # uppercase aliases (for backward compatibility) | 536 # uppercase aliases (for backward compatibility) |
| 537 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 537 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
| 538 CHECK_FOR_CHROME: check_for_chrome | 538 CHECK_FOR_CHROME: check_for_chrome |
| 539 DEBUG: debug | 539 DEBUG: debug |
| 540 LAUNCH: run | 540 LAUNCH: run |
| 541 RUN: run | 541 RUN: run |
| 542 | 542 |
| 543 endif # TOOLCHAIN is valid... | 543 endif # TOOLCHAIN is valid... |
| 544 | 544 |
| 545 endif # TOOLCHAIN=all | 545 endif # TOOLCHAIN=all |
| OLD | NEW |