| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 430 |
| 431 | 431 |
| 432 # | 432 # |
| 433 # Generate ARCH_SUFFIXES, a list of suffixes for executables corresponding to al
l | 433 # Generate ARCH_SUFFIXES, a list of suffixes for executables corresponding to al
l |
| 434 # the architectures in the current build. | 434 # the architectures in the current build. |
| 435 # | 435 # |
| 436 ARCH_SUFFIXES := $(foreach arch,$(ARCHES),_$(arch).nexe) | 436 ARCH_SUFFIXES := $(foreach arch,$(ARCHES),_$(arch).nexe) |
| 437 | 437 |
| 438 | 438 |
| 439 # | 439 # |
| 440 # NMF Manifiest generation | 440 # NMF Manifest generation |
| 441 # | 441 # |
| 442 # Use the python script create_nmf to scan the binaries for dependencies using | 442 # Use the python script create_nmf to scan the binaries for dependencies using |
| 443 # objdump. Pass in the (-L) paths to the default library toolchains so that we | 443 # objdump. Pass in the (-L) paths to the default library toolchains so that we |
| 444 # can find those libraries and have it automatically copy the files (-s) to | 444 # can find those libraries and have it automatically copy the files (-s) to |
| 445 # the target directory for us. | 445 # the target directory for us. |
| 446 # | 446 # |
| 447 # $1 = Target Name (the basename of the nmf | 447 # $1 = Target Name (the basename of the nmf) |
| 448 # $2 = Additional create_nmf.py arguments | 448 # $2 = Additional create_nmf.py arguments |
| 449 # | 449 # |
| 450 NMF := python $(NACL_SDK_ROOT)/tools/create_nmf.py | 450 NMF := python $(NACL_SDK_ROOT)/tools/create_nmf.py |
| 451 ifeq ($(CONFIG),Debug) | 451 ifeq ($(CONFIG),Debug) |
| 452 NMF_FLAGS += --debug-libs | 452 NMF_FLAGS += --debug-libs |
| 453 HTML_FLAGS += --debug-libs | 453 HTML_FLAGS += --debug-libs |
| 454 endif | 454 endif |
| 455 | 455 |
| 456 EXECUTABLES=$(foreach arch,$(ARCH_SUFFIXES),$(OUTDIR)/$(1)$(arch)) $(GLIBC_SO_LI
ST) | 456 EXECUTABLES=$(foreach arch,$(ARCH_SUFFIXES),$(OUTDIR)/$(1)$(arch)) $(GLIBC_SO_LI
ST) |
| 457 | 457 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) | 497 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) |
| 498 endif | 498 endif |
| 499 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe --
$(EXE_ARGS) | 499 $(SEL_LDR_PATH) $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe --
$(EXE_ARGS) |
| 500 | 500 |
| 501 debug: all | 501 debug: all |
| 502 ifndef NACL_ARCH | 502 ifndef NACL_ARCH |
| 503 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) | 503 $(error Cannot run in sel_ldr unless $$NACL_ARCH is set) |
| 504 endif | 504 endif |
| 505 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe
-- $(EXE_ARGS) | 505 $(SEL_LDR_PATH) -d $(SEL_LDR_ARGS) $(OUTDIR)/$(TARGET)_$(NACL_ARCH).nexe
-- $(EXE_ARGS) |
| 506 endif | 506 endif |
| OLD | NEW |