js/src/shell/Makefile.in

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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)

mercurial