toolkit/library/Makefile.in
author Mike Shal <mshal@mozilla.com>
Wed, 13 Aug 2014 14:24:15 -0400
changeset 199704 ff64d9bbc03cd14dcd05d94f54a0e9c14f57b787
parent 199703 552170c05e9f1a06d0ac8b6ea3485611d1ffc84b
child 221103 30e90f290a88fac90162395ee8085e61f09779c6
permissions -rw-r--r--
Bug 1047621 - Have link.py import and call expandlibs_exec.py; r=gps

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

include $(topsrcdir)/toolkit/library/libxul.mk

include $(topsrcdir)/config/config.mk

ifeq (WINNT_1,$(OS_TARGET)_$(MOZ_PROFILE_USE))
# Wrap linker to measure peak virtual memory usage.
EXPAND_LIBS_EXEC := $(PYTHON) $(topsrcdir)/config/link.py linker-vsize
endif

include $(topsrcdir)/config/rules.mk

ifdef COMPILE_ENVIRONMENT
libs:: $(FINAL_TARGET)/dependentlibs.list
endif

$(FINAL_TARGET)/dependentlibs.list: $(topsrcdir)/toolkit/library/dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
	$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@

.PHONY: gtestxul
gtestxul:
	$(MAKE) -C gtest target LINK_GTEST=1