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 # |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 endef | 572 endef |
573 | 573 |
574 | 574 |
575 # | 575 # |
576 # Determine which executable to pass into the debugger. | 576 # Determine which executable to pass into the debugger. |
577 # For glibc, runnable-ld.so is the executable, and the "app" is an .so that | 577 # For glibc, runnable-ld.so is the executable, and the "app" is an .so that |
578 # it loads. | 578 # it loads. |
579 # | 579 # |
580 ifeq (x86_32,$(SYSARCH)) | 580 ifeq (x86_32,$(SYSARCH)) |
581 LIB_NAME = lib32 | 581 LIB_NAME = lib32 |
| 582 else |
582 ifeq (x86_64,$(SYSARCH)) | 583 ifeq (x86_64,$(SYSARCH)) |
583 LIB_NAME = lib64 | 584 LIB_NAME = lib64 |
584 else | 585 else |
585 LIB_NAME = lib | 586 LIB_NAME = lib |
586 endif | 587 endif |
587 endif | 588 endif |
588 | 589 |
589 | 590 |
590 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(LIB_NAME)/runnable-ld.so | 591 GDB_DEBUG_TARGET = $(abspath $(OUTDIR))/$(LIB_NAME)/runnable-ld.so |
591 | 592 |
592 ifdef STANDALONE | 593 ifdef STANDALONE |
593 run: all | 594 run: all |
594 ifndef NACL_ARCH | 595 ifndef NACL_ARCH |
595 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) | 596 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) |
596 endif | 597 endif |
597 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe --
$(EXE_ARGS) | 598 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe --
$(EXE_ARGS) |
598 | 599 |
599 debug: all | 600 debug: all |
600 ifndef NACL_ARCH | 601 ifndef NACL_ARCH |
601 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) | 602 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) |
602 endif | 603 endif |
603 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe
-- $(EXE_ARGS) | 604 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe
-- $(EXE_ARGS) |
604 endif | 605 endif |
OLD | NEW |