Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # -*- Mode: makefile -*- |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | LIBS = $(NSPR_LIBS) $(EDITLINE_LIBS) ../$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(MOZ_ZLIB_LIBS) |
michael@0 | 8 | ifdef MOZ_NATIVE_FFI |
michael@0 | 9 | EXTRA_LIBS += $(MOZ_FFI_LIBS) |
michael@0 | 10 | endif |
michael@0 | 11 | ifdef MOZ_SHARED_ICU |
michael@0 | 12 | EXTRA_LIBS += $(MOZ_ICU_LIBS) |
michael@0 | 13 | endif |
michael@0 | 14 | |
michael@0 | 15 | ifeq ($(OS_ARCH),Darwin) |
michael@0 | 16 | ifeq ($(TARGET_CPU),x86_64) |
michael@0 | 17 | DARWIN_EXE_LDFLAGS += -pagezero_size 10000 -image_base 100000000 |
michael@0 | 18 | endif |
michael@0 | 19 | endif |
michael@0 | 20 | |
michael@0 | 21 | ifdef QEMU_EXE |
michael@0 | 22 | MOZ_POST_PROGRAM_COMMAND = $(topsrcdir)/build/qemu-wrap --qemu $(QEMU_EXE) --libdir $(CROSS_LIB) |
michael@0 | 23 | endif |
michael@0 | 24 | |
michael@0 | 25 | # Place a GDB Python auto-load file next to the shell executable, both in |
michael@0 | 26 | # the build directory and in the dist/bin directory. |
michael@0 | 27 | PP_TARGETS += SHELL_AUTOLOAD |
michael@0 | 28 | SHELL_AUTOLOAD := js-gdb.py.in |
michael@0 | 29 | SHELL_AUTOLOAD_FLAGS := -Dtopsrcdir=$(abspath $(srcdir)/..) |
michael@0 | 30 | |
michael@0 | 31 | INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD |
michael@0 | 32 | SHELL_INSTALL_AUTOLOAD_FILES := $(CURDIR)/js-gdb.py |
michael@0 | 33 | SHELL_INSTALL_AUTOLOAD_DEST := $(DIST)/bin |
michael@0 | 34 | |
michael@0 | 35 | INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD_SCRIPT |
michael@0 | 36 | SHELL_INSTALL_AUTOLOAD_SCRIPT_FILES := js-gdb.gdb |
michael@0 | 37 | SHELL_INSTALL_AUTOLOAD_SCRIPT_DEST := $(CURDIR) |
michael@0 | 38 | |
michael@0 | 39 | include $(topsrcdir)/config/rules.mk |
michael@0 | 40 | |
michael@0 | 41 | # People expect the js shell to wind up in the top-level JS dir. |
michael@0 | 42 | libs:: |
michael@0 | 43 | $(INSTALL) $(IFLAGS2) $(PROGRAM) .. |
michael@0 | 44 | |
michael@0 | 45 | GARBAGE += ../$(PROGRAM) |
michael@0 | 46 | |
michael@0 | 47 | install:: $(PROGRAM) |
michael@0 | 48 | $(SYSINSTALL) $^ $(DESTDIR)$(bindir) |