toolkit/library/Makefile.in
author Nathan Froyd <froydnj@mozilla.com>
Thu, 24 Jul 2014 11:55:33 -0400
changeset 197053 6c0cfdafc568627e7deabaa129a0b79df5ec0e65
parent 196405 e46b6092eb196d3f678e8bec85de7500ab174177
child 198272 6b285759568cb0b743cb9497e021f6552cc7e349
permissions -rw-r--r--
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium

# 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
# Please don't remove the following comment, because it does some magic:
# libxul.mk adds FT2_LIBS, NSS_LIBS and NSPR_LIBS, but we want to have the
# string in this file to trigger a dependency on freetype2, nss and nspr.

ifeq (WINNT_1,$(OS_TARGET)_$(MOZ_PROFILE_USE))
# Wrap linker to measure peak virtual memory usage.
LD := $(PYTHON) $(topsrcdir)/build/link.py linker-vsize $(LD)
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