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

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

Issue 1388503003: [NaCl SDK] Remove newlib toolchain from the SDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 CREATE_HTML := python $(NACL_SDK_ROOT)/tools/create_html.py 519 CREATE_HTML := python $(NACL_SDK_ROOT)/tools/create_html.py
520 520
521 define HTML_RULE 521 define HTML_RULE
522 all: $(OUTDIR)/$(1).html 522 all: $(OUTDIR)/$(1).html
523 $(OUTDIR)/$(1).html: $(EXECUTABLES) 523 $(OUTDIR)/$(1).html: $(EXECUTABLES)
524 $(call LOG,CREATE_HTML,$$@,$(CREATE_HTML) $(HTML_FLAGS) -o $$@ $$^) 524 $(call LOG,CREATE_HTML,$$@,$(CREATE_HTML) $(HTML_FLAGS) -o $$@ $$^)
525 endef 525 endef
526 526
527 527
528 # 528 #
529 # Determine which executable to pass into the debugger. For newlib 529 # Determine which executable to pass into the debugger.
530 # this is the NEXE which will actually be used. For glibc, runnable-ld.so 530 # For glibc, runnable-ld.so is the exectauble, and the "app" is a .so that
binji 2015/10/02 23:08:06 sp: executable also "an .so" is better, or "a shar
Sam Clegg 2015/10/02 23:42:51 Done.
531 # is the "app", and the "app" is actual an .so we load. 531 # it loads.
532 # 532 #
533 ifeq (x86_32,$(SYSARCH)) 533 ifeq (x86_32,$(SYSARCH))
534 LIB_NAME = lib32 534 LIB_NAME = lib32
535 ifeq (x86_64,$(SYSARCH)) 535 ifeq (x86_64,$(SYSARCH))
536 LIB_NAME = lib64 536 LIB_NAME = lib64
537 else 537 else
538 LIB_NAME = lib 538 LIB_NAME = lib
539 endif 539 endif
540 endif 540 endif
541 541
542 542
543 ifeq (newlib,$(TOOLCHAIN))
544 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(TARGET)_$(SYSARCH).nexe
545 else
546 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(LIB_NAME)/runnable-ld.so 543 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(LIB_NAME)/runnable-ld.so
547 endif
548 544
549 ifdef STANDALONE 545 ifdef STANDALONE
550 run: all 546 run: all
551 ifndef NACL_ARCH 547 ifndef NACL_ARCH
552 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 548 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
553 endif 549 endif
554 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 550 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
555 551
556 debug: all 552 debug: all
557 ifndef NACL_ARCH 553 ifndef NACL_ARCH
558 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) 554 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set)
559 endif 555 endif
560 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS) 556 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe -- $(EXE_ARGS)
561 endif 557 endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698