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

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

Issue 886583004: [NaCl SDK] Allow dsc files to omit TOOLS setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « native_client_sdk/src/tools/nacl_gcc.mk ('k') | no next file » | 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 #
(...skipping 10 matching lines...) Expand all
21 # 21 #
22 # Compile Macro 22 # Compile Macro
23 # 23 #
24 # $1 = Source Name 24 # $1 = Source Name
25 # $2 = Compile Flags 25 # $2 = Compile Flags
26 # $3 = Include Directories 26 # $3 = Include Directories
27 # 27 #
28 define C_COMPILER_RULE 28 define C_COMPILER_RULE
29 -include $(call SRC_TO_DEP,$(1)) 29 -include $(call SRC_TO_DEP,$(1))
30 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp 30 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp
31 » $(call LOG,CC ,$$@,$(PNACL_CC) -o $$@ -c $$< $(POSIX_FLAGS) $(2) $(NACL _CFLAGS)) 31 » $(call LOG,CC ,$$@,$(PNACL_CC) -o $$@ -c $$< $(POSIX_CFLAGS) $(2) $(NAC L_CFLAGS))
32 @$(FIXDEPS) $(call SRC_TO_DEP_PRE_FIXUP,$(1)) 32 @$(FIXDEPS) $(call SRC_TO_DEP_PRE_FIXUP,$(1))
33 endef 33 endef
34 34
35 define CXX_COMPILER_RULE 35 define CXX_COMPILER_RULE
36 -include $(call SRC_TO_DEP,$(1)) 36 -include $(call SRC_TO_DEP,$(1))
37 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp 37 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp
38 » $(call LOG,CXX ,$$@,$(PNACL_CXX) -o $$@ -c $$< $(POSIX_FLAGS) $(2) $(NAC L_CFLAGS)) 38 » $(call LOG,CXX ,$$@,$(PNACL_CXX) -o $$@ -c $$< $(POSIX_CFLAGS) $(2) $(NA CL_CFLAGS))
39 @$(FIXDEPS) $(call SRC_TO_DEP_PRE_FIXUP,$(1)) 39 @$(FIXDEPS) $(call SRC_TO_DEP_PRE_FIXUP,$(1))
40 endef 40 endef
41 41
42 42
43 # $1 = Source Name 43 # $1 = Source Name
44 # $2 = POSIX Compile Flags 44 # $2 = POSIX Compile Flags
45 # $3 = Include Directories 45 # $3 = Include Directories
46 # $4 = VC Flags (unused) 46 # $4 = VC Flags (unused)
47 define COMPILE_RULE 47 define COMPILE_RULE
48 ifeq ($(suffix $(1)),.c) 48 ifeq ($(suffix $(1)),.c)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 192 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
193 endif 193 endif
194 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 194 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
195 195
196 debug: $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe 196 debug: $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe
197 ifndef NACL_ARCH 197 ifndef NACL_ARCH
198 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 198 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
199 endif 199 endif
200 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 200 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
201 endif 201 endif
OLDNEW
« no previous file with comments | « native_client_sdk/src/tools/nacl_gcc.mk ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698