| 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 10 matching lines...) Expand all Loading... |
| 21 HOST_LIB?=lib.exe /nologo | 21 HOST_LIB?=lib.exe /nologo |
| 22 | 22 |
| 23 ifeq (,$(findstring cl.exe,$(shell $(WHICH) cl.exe))) | 23 ifeq (,$(findstring cl.exe,$(shell $(WHICH) cl.exe))) |
| 24 $(warning To skip the host build use:) | 24 $(warning To skip the host build use:) |
| 25 $(warning "make NO_HOST_BUILDS=1") | 25 $(warning "make NO_HOST_BUILDS=1") |
| 26 $(error Unable to find cl.exe in PATH while building Windows host build) | 26 $(error Unable to find cl.exe in PATH while building Windows host build) |
| 27 endif | 27 endif |
| 28 | 28 |
| 29 | 29 |
| 30 ifeq ('Debug','$(CONFIG)') | 30 ifeq ('Debug','$(CONFIG)') |
| 31 WIN_OPT_FLAGS?=/Od /MTd /Z7 | 31 WIN_OPT_FLAGS?=/Od /MTd /Z7 -D NACL_SDK_DEBUG |
| 32 else | 32 else |
| 33 WIN_OPT_FLAGS?=/O2 /MT /Z7 | 33 WIN_OPT_FLAGS?=/O2 /MT /Z7 |
| 34 endif | 34 endif |
| 35 | 35 |
| 36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB | 36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB |
| 37 | 37 |
| 38 | 38 |
| 39 # | 39 # |
| 40 # Individual Macros | 40 # Individual Macros |
| 41 # | 41 # |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 # $3 = List of LIBS | 109 # $3 = List of LIBS |
| 110 # $4 = List of DEPS | 110 # $4 = List of DEPS |
| 111 # $5 = POSIX Linker Switches | 111 # $5 = POSIX Linker Switches |
| 112 # $6 = VC Linker Switches | 112 # $6 = VC Linker Switches |
| 113 # | 113 # |
| 114 define LINK_RULE | 114 define LINK_RULE |
| 115 $(call LINKER_RULE,$(OUTDIR)/$(1)$(HOST_EXT),$(foreach src,$(2),$(OUTDIR)/$(base
name $(src)).o),$(3),$(4),$(LIB_PATHS),$(6)) | 115 $(call LINKER_RULE,$(OUTDIR)/$(1)$(HOST_EXT),$(foreach src,$(2),$(OUTDIR)/$(base
name $(src)).o),$(3),$(4),$(LIB_PATHS),$(6)) |
| 116 endef | 116 endef |
| 117 | 117 |
| 118 all : $(LIB_LIST) $(DEPS_LIST) | 118 all : $(LIB_LIST) $(DEPS_LIST) |
| OLD | NEW |