| 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 | 11 |
| 12 # | 12 # |
| 13 # Macros for TOOLS | 13 # Macros for TOOLS |
| 14 # | 14 # |
| 15 # We use the C++ compiler for everything and then use the -Wl,-as-needed flag | 15 # We use the C++ compiler for everything and then use the -Wl,-as-needed flag |
| 16 # in the linker to drop libc++ unless it's actually needed. | 16 # in the linker to drop libc++ unless it's actually needed. |
| 17 # | 17 # |
| 18 HOST_CC?=cl.exe /nologo | 18 HOST_CC?=cl.exe /nologo |
| 19 HOST_CXX?=cl.exe /nologo /EHsc | 19 HOST_CXX?=cl.exe /nologo /EHsc |
| 20 HOST_LINK?=link.exe /nologo | 20 HOST_LINK?=link.exe /nologo |
| 21 HOST_LIB?=lib.exe /nologo | 21 HOST_LIB?=lib.exe /nologo |
| 22 | 22 |
| 23 ifeq (,$(findstring cl.exe,$(shell $(WHICH) cl.exe))) |
| 24 $(warning To skip the host build use:) |
| 25 $(warning "make NO_HOST_BUILDS=1") |
| 26 $(error Unable to find cl.exe in PATH while building Windows host build) |
| 27 endif |
| 28 |
| 23 | 29 |
| 24 ifeq ('Debug','$(CONFIG)') | 30 ifeq ('Debug','$(CONFIG)') |
| 25 WIN_OPT_FLAGS?=/Od /MTd /Z7 | 31 WIN_OPT_FLAGS?=/Od /MTd /Z7 |
| 26 else | 32 else |
| 27 WIN_OPT_FLAGS?=/O2 /MT /Z7 | 33 WIN_OPT_FLAGS?=/O2 /MT /Z7 |
| 28 endif | 34 endif |
| 29 | 35 |
| 30 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB | 36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB |
| 31 | 37 |
| 32 | 38 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py | 127 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py |
| 122 | 128 |
| 123 define NMF_RULE | 129 define NMF_RULE |
| 124 NMF_LIST+=$(OUTDIR)/$(1).nmf | 130 NMF_LIST+=$(OUTDIR)/$(1).nmf |
| 125 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) | 131 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) |
| 126 @echo "Host Toolchain" > $$@ | 132 @echo "Host Toolchain" > $$@ |
| 127 endef | 133 endef |
| 128 | 134 |
| 129 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) | 135 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) |
| 130 | 136 |
| OLD | NEW |