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 # Paths to Tools | 11 # Paths to Tools |
12 # | 12 # |
13 PNACL_BIN = $(TC_PATH)/$(OSNAME)_$(TOOLCHAIN)/bin | 13 PNACL_CC ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=cc) |
14 PNACL_CC ?= $(PNACL_BIN)/pnacl-clang -c | 14 PNACL_CXX ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=c++) |
15 PNACL_CXX ?= $(PNACL_BIN)/pnacl-clang++ -c | 15 PNACL_LINK ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=c++) |
16 PNACL_LINK ?= $(PNACL_BIN)/pnacl-clang++ | 16 PNACL_LIB ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=ar) |
17 PNACL_LIB ?= $(PNACL_BIN)/pnacl-ar | 17 PNACL_STRIP ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=strip) |
18 PNACL_STRIP ?= $(PNACL_BIN)/pnacl-strip | 18 PNACL_FINALIZE ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=finalize) |
19 PNACL_FINALIZE ?= $(PNACL_BIN)/pnacl-finalize | 19 PNACL_TRANSLATE ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) --tool=translate) |
20 PNACL_TRANSLATE ?= $(PNACL_BIN)/pnacl-translate | |
21 | 20 |
22 # | 21 # |
23 # Compile Macro | 22 # Compile Macro |
24 # | 23 # |
25 # $1 = Source Name | 24 # $1 = Source Name |
26 # $2 = Compile Flags | 25 # $2 = Compile Flags |
27 # $3 = Include Directories | 26 # $3 = Include Directories |
28 # | 27 # |
29 define C_COMPILER_RULE | 28 define C_COMPILER_RULE |
30 -include $(call SRC_TO_DEP,$(1)) | 29 -include $(call SRC_TO_DEP,$(1)) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 $(OUTDIR)/$(1).html: $(EXECUTABLES) | 186 $(OUTDIR)/$(1).html: $(EXECUTABLES) |
188 $(call LOG,CREATE_HTML,$$@,$(CREATE_HTML) -o $$@ $$^) | 187 $(call LOG,CREATE_HTML,$$@,$(CREATE_HTML) -o $$@ $$^) |
189 endef | 188 endef |
190 | 189 |
191 | 190 |
192 # | 191 # |
193 # Determine which executable to pass into the debugger. For pnacl, this is | 192 # Determine which executable to pass into the debugger. For pnacl, this is |
194 # the .bc -> .nexe translated app. | 193 # the .bc -> .nexe translated app. |
195 # | 194 # |
196 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(TARGET)_$(SYSARCH).nexe | 195 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(TARGET)_$(SYSARCH).nexe |
OLD | NEW |