Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1103)

Side by Side Diff: native_client_sdk/src/tools/nacl_gcc.mk

Issue 118553007: [NaCl SDK] Use nacl_config.py in common.mk build system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « native_client_sdk/src/tools/nacl_config.py ('k') | native_client_sdk/src/tools/nacl_llvm.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Macros for TOOLS 11 # Macros for TOOLS
12 # 12 #
13 # We always link with the C++ compiler but include -Wl,-as-needed flag 13 # We always link with the C++ compiler but include -Wl,-as-needed flag
14 # in LDFLAGS so the linker should drop libc++ unless it's actually needed. 14 # in LDFLAGS so the linker should drop libc++ unless it's actually needed.
15 # 15 #
16 X86_TC_BIN ?= $(TC_PATH)/$(OSNAME)_x86_$(TOOLCHAIN)/bin 16 X86_32_CC ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x 86_32 --tool=cc)
17 ARM_TC_BIN ?= $(TC_PATH)/$(OSNAME)_arm_$(TOOLCHAIN)/bin 17 X86_32_CXX ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_32 --tool=c++)
18 X86_32_LINK ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_32 --tool=c++)
19 X86_32_LIB ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_32 --tool=ar)
20 X86_32_STRIP ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_32 --tool=strip)
21 X86_32_NM ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_32 --tool=nm)
18 22
19 X86_32_CC ?= $(NACL_COMPILER_PREFIX) $(X86_TC_BIN)/i686-nacl-gcc 23 X86_64_CC ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x 86_64 --tool=cc)
20 X86_32_CXX ?= $(NACL_COMPILER_PREFIX) $(X86_TC_BIN)/i686-nacl-g++ 24 X86_64_CXX ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_64 --tool=c++)
21 X86_32_LINK ?= $(X86_TC_BIN)/i686-nacl-g++ 25 X86_64_LINK ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_64 --tool=c++)
22 X86_32_LIB ?= $(X86_TC_BIN)/i686-nacl-ar 26 X86_64_LIB ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_64 --tool=ar)
23 X86_32_STRIP ?= $(X86_TC_BIN)/i686-nacl-strip 27 X86_64_STRIP ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_64 --tool=strip)
24 X86_32_NM ?= $(X86_TC_BIN)/i686-nacl-nm 28 X86_64_NM ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a x86_64 --tool=nm)
25 29
26 X86_64_CC ?= $(NACL_COMPILER_PREFIX) $(X86_TC_BIN)/x86_64-nacl-gcc 30 ifneq ($(TOOLCHAIN),glibc)
27 X86_64_CXX ?= $(NACL_COMPILER_PREFIX) $(X86_TC_BIN)/x86_64-nacl-g++ 31 ARM_CC ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=cc)
28 X86_64_LINK ?= $(X86_TC_BIN)/x86_64-nacl-g++ 32 ARM_CXX ?= $(NACL_COMPILER_PREFIX) $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=c++)
29 X86_64_LIB ?= $(X86_TC_BIN)/x86_64-nacl-ar 33 ARM_LINK ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=c++)
30 X86_64_STRIP ?= $(X86_TC_BIN)/x86_64-nacl-strip 34 ARM_LIB ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=ar)
31 X86_64_NM ?= $(X86_TC_BIN)/x86_64-nacl-nm 35 ARM_STRIP ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=strip)
32 36 ARM_NM ?= $(shell $(NACL_CONFIG) -t $(TOOLCHAIN) -a arm --tool=nm)
33 ARM_CC ?= $(NACL_COMPILER_PREFIX) $(ARM_TC_BIN)/arm-nacl-gcc 37 endif
34 ARM_CXX ?= $(NACL_COMPILER_PREFIX) $(ARM_TC_BIN)/arm-nacl-g++
35 ARM_LINK ?= $(ARM_TC_BIN)/arm-nacl-g++
36 ARM_LIB ?= $(ARM_TC_BIN)/arm-nacl-ar
37 ARM_STRIP ?= $(ARM_TC_BIN)/arm-nacl-strip
38 ARM_NM ?= $(ARM_TC_BIN)/arm-nacl-nm
39 38
40 NCVAL ?= python $(NACL_SDK_ROOT)/tools/ncval.py 39 NCVAL ?= python $(NACL_SDK_ROOT)/tools/ncval.py
41 40
42 # Architecture-specific flags 41 # Architecture-specific flags
43 X86_32_CFLAGS ?= 42 X86_32_CFLAGS ?=
44 X86_64_CFLAGS ?= 43 X86_64_CFLAGS ?=
45 ARM_CFLAGS ?= 44 ARM_CFLAGS ?=
46 45
47 X86_32_CXXFLAGS ?= 46 X86_32_CXXFLAGS ?=
48 X86_64_CXXFLAGS ?= 47 X86_64_CXXFLAGS ?=
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 470 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
472 endif 471 endif
473 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 472 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
474 473
475 debug: all 474 debug: all
476 ifndef NACL_ARCH 475 ifndef NACL_ARCH
477 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 476 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
478 endif 477 endif
479 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 478 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
480 endif 479 endif
OLDNEW
« no previous file with comments | « native_client_sdk/src/tools/nacl_config.py ('k') | native_client_sdk/src/tools/nacl_llvm.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698