# # 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/.
####################################################################### ### ### ### R U L E S O F E N G A G E M E N T ### ### ### #######################################################################
####################################################################### # Dont't use double-colon rules! # #######################################################################
ifndef HAVE_ALL_TARGET all: libs endif
autobuild: ifeq ($(AUTOCLEAN),1)
$(MAKE) clean endif
$(MAKE) all
$(MAKE) install
# For whatever reason, "." can't be handled using make conditionals. # Based on automake's SUBDIRS "." handling.
ifdef DIRS
ifndef IGNORE_DIRS ifneq (,$(filter .,$(DIRS)))
TARGETS = $(NULL)
ALL_TRASH = $(NULL) endif
else # Windows ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET)))
NEED_ABSOLUTE_PATH := 1 # CURDIR is always an absolute path. If it doesn't start with a /, it's a # Windows path meaning we're running under MINGW make (as opposed to MSYS # make), or pymake. In both cases, it's preferable to use a Windows path, # so use $(CURDIR) as is. ifeq (,$(filter /%,$(CURDIR)))
PWD := $(CURDIR) else
PWD := $(shell pwd) ifeq (,$(findstring ;,$(PATH)))
ifndef USE_MSYS
PWD := $(subst \,/,$(shell cygpath -w $(PWD))) endif endif endif
########################################################################## ### RULES FOR RUNNING REGRESSION SUITE TESTS ### REQUIRES 'REGRESSION_SPEC' TO BE SET TO THE NAME OF A REGRESSION SPECFILE ### AND RESULTS_SUBDIR TO BE SET TO SOMETHING LIKE SECURITY/PKCS5 ##########################################################################
# # HACK ALERT # # The only purpose of this rule is to pass Mozilla's Tinderbox depend # builds (http://tinderbox.mozilla.org/showbuilds.cgi). Mozilla's # Tinderbox builds NSS continuously as part of the Mozilla client. # Because NSS's make depend is not implemented, whenever we change # an NSS header file, the depend build does not recompile the NSS # files that depend on the header. # # This rule makes all the objects depend on a dummy header file. # Check in a change to this dummy header file to force the depend # build to recompile everything. # # This rule should be removed when make depend is implemented. #
################################################################################ # Special gmake rules. ################################################################################
# # Re-define the list of default suffixes, so gmake won't have to churn through # hundreds of built-in suffix rules for stuff we don't need. #
.SUFFIXES:
.SUFFIXES: .out .a .ln .o .obj .c .cc .C .cpp .y .l .s .S .h .sh .i .pl .html .asm .dep
# # Fake targets. Always run these rules, even if a file/directory with that # name already exists. #
.PHONY: all all_platforms alltags boot clean clobber clobber_all export install libs program realclean release $(DIRS)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.