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 file, michael@0: # You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Enforce that the clean/distclean rules removes everything that needs michael@0: # to be removed from this directory. michael@0: ifneq (,$(filter clean distclean,$(MAKECMDGOALS))) michael@0: LINK_GTEST = 1 michael@0: endif michael@0: michael@0: ifndef LINK_GTEST michael@0: # Force to not include backend.mk unless LINK_GTEST is defined. michael@0: # Not including backend.mk makes traversing this directory do nothing. michael@0: STANDALONE_MAKEFILE = 1 michael@0: michael@0: else michael@0: michael@0: include $(topsrcdir)/toolkit/library/libxul.mk michael@0: michael@0: ifdef COMPILE_ENVIRONMENT michael@0: libs:: $(DIST)/bin/dependentlibs.list.gtest michael@0: endif michael@0: michael@0: $(DIST)/bin/dependentlibs.list.gtest: $(DIST)/bin/dependentlibs.list michael@0: sed -e 's|$(SHARED_LIBRARY)|gtest/$(SHARED_LIBRARY)|' $< > $@ michael@0: michael@0: LINK_PDBFILE = xul-gtest.pdb michael@0: michael@0: endif