michael@0: # -*- Mode: makefile -*- michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: LIBS = $(NSPR_LIBS) $(EDITLINE_LIBS) ../$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(MOZ_ZLIB_LIBS) michael@0: ifdef MOZ_NATIVE_FFI michael@0: EXTRA_LIBS += $(MOZ_FFI_LIBS) michael@0: endif michael@0: ifdef MOZ_SHARED_ICU michael@0: EXTRA_LIBS += $(MOZ_ICU_LIBS) michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH),Darwin) michael@0: ifeq ($(TARGET_CPU),x86_64) michael@0: DARWIN_EXE_LDFLAGS += -pagezero_size 10000 -image_base 100000000 michael@0: endif michael@0: endif michael@0: michael@0: ifdef QEMU_EXE michael@0: MOZ_POST_PROGRAM_COMMAND = $(topsrcdir)/build/qemu-wrap --qemu $(QEMU_EXE) --libdir $(CROSS_LIB) michael@0: endif michael@0: michael@0: # Place a GDB Python auto-load file next to the shell executable, both in michael@0: # the build directory and in the dist/bin directory. michael@0: PP_TARGETS += SHELL_AUTOLOAD michael@0: SHELL_AUTOLOAD := js-gdb.py.in michael@0: SHELL_AUTOLOAD_FLAGS := -Dtopsrcdir=$(abspath $(srcdir)/..) michael@0: michael@0: INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD michael@0: SHELL_INSTALL_AUTOLOAD_FILES := $(CURDIR)/js-gdb.py michael@0: SHELL_INSTALL_AUTOLOAD_DEST := $(DIST)/bin michael@0: michael@0: INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD_SCRIPT michael@0: SHELL_INSTALL_AUTOLOAD_SCRIPT_FILES := js-gdb.gdb michael@0: SHELL_INSTALL_AUTOLOAD_SCRIPT_DEST := $(CURDIR) michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: # People expect the js shell to wind up in the top-level JS dir. michael@0: libs:: michael@0: $(INSTALL) $(IFLAGS2) $(PROGRAM) .. michael@0: michael@0: GARBAGE += ../$(PROGRAM) michael@0: michael@0: install:: $(PROGRAM) michael@0: $(SYSINSTALL) $^ $(DESTDIR)$(bindir)