2001-01-10 04:32:29 +03:00
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Brian Ryner <bryner@netscape.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2001-04-16 04:50:16 +04:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2001-04-11 13:12:20 +04:00
|
|
|
ifndef MOZ_NSS_AUTOCONF
|
|
|
|
|
2001-01-10 04:32:29 +03:00
|
|
|
CORE_DEPTH=$(topsrcdir)/security
|
|
|
|
|
2001-04-11 04:11:47 +04:00
|
|
|
ifndef MOZ_DEBUG
|
|
|
|
OPT_GMAKE_FLAGS = BUILD_OPT=1
|
|
|
|
BUILD_OPT=1
|
|
|
|
OBJDIR_TAG=_OPT
|
|
|
|
endif
|
|
|
|
|
2001-01-10 04:32:29 +03:00
|
|
|
include $(CORE_DEPTH)/coreconf/arch.mk
|
2001-04-11 07:26:10 +04:00
|
|
|
ifeq (,$(filter-out FreeBSD NetBSD,$(OS_TARGET)))
|
2001-01-10 04:32:29 +03:00
|
|
|
include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
|
|
|
|
else
|
|
|
|
include $(CORE_DEPTH)/coreconf/$(OS_CONFIG).mk
|
|
|
|
endif
|
|
|
|
include $(CORE_DEPTH)/coreconf/prefix.mk
|
2001-05-09 14:08:34 +04:00
|
|
|
#
|
|
|
|
# Set CPU_TAG (cut and pasted from mozilla/security/coreconf/ruleset.mk)
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# At this time, the CPU_TAG value is actually assigned
|
|
|
|
#
|
|
|
|
|
|
|
|
CPU_TAG:=
|
|
|
|
|
|
|
|
#
|
|
|
|
# When the process is not 386-based on Windows NT, override the
|
|
|
|
# value of $(CPU_TAG).
|
|
|
|
#
|
|
|
|
ifeq ($(OS_ARCH), WINNT)
|
|
|
|
ifneq ($(CPU_ARCH),x386)
|
|
|
|
CPU_TAG:=_$(CPU_ARCH)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Always set CPU_TAG on Linux & OpenVMS
|
|
|
|
#
|
|
|
|
ifneq (,$(filter Linux OpenVMS,$(OS_ARCH)))
|
|
|
|
CPU_TAG:=_$(CPU_ARCH)
|
|
|
|
endif
|
|
|
|
|
2001-04-11 04:11:47 +04:00
|
|
|
LOADABLE_ROOT_MODULE := $(DLL_PREFIX)nssckbi.$(DLL_SUFFIX)
|
|
|
|
CORECONF_OBJDIR:=$(OBJDIR_NAME)
|
2001-05-09 14:08:34 +04:00
|
|
|
FREEBL_PURE_MODULE := $(DLL_PREFIX)freebl_pure32_3.$(DLL_SUFFIX)
|
|
|
|
FREEBL_HYBRID_MODULE := $(DLL_PREFIX)freebl_hybrid_3.$(DLL_SUFFIX)
|
2001-01-10 04:32:29 +03:00
|
|
|
|
2001-04-11 13:12:20 +04:00
|
|
|
endif # MOZ_NSS_AUTOCONF
|
|
|
|
|
2001-01-10 04:32:29 +03:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2001-04-11 13:12:20 +04:00
|
|
|
ifndef MOZ_NSS_AUTOCONF
|
2001-05-10 06:52:16 +04:00
|
|
|
# NSS makefiles are not safe for parallel execution.
|
|
|
|
DEFAULT_GMAKE_FLAGS = -j1 $(OPT_GMAKE_FLAGS)
|
2001-04-11 04:11:47 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += SOURCE_MDHEADERS_DIR=$(MOZ_BUILD_ROOT)/dist/include/nspr
|
|
|
|
DEFAULT_GMAKE_FLAGS += MOZILLA_CLIENT=1
|
2001-05-11 17:29:40 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += NO_MDUPDATE=1
|
2001-01-10 04:32:29 +03:00
|
|
|
CORECONF_INSTALL = $(DIST)/$(CORECONF_OBJDIR)
|
2001-03-05 06:51:58 +03:00
|
|
|
SUBMAKEFILES = ssl/Makefile pki/Makefile
|
2001-04-11 13:12:20 +04:00
|
|
|
else
|
|
|
|
DIRS = ssl pki
|
|
|
|
endif
|
2001-01-10 04:32:29 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2001-04-11 13:12:20 +04:00
|
|
|
ifndef MOZ_NSS_AUTOCONF
|
2001-01-10 04:32:29 +03:00
|
|
|
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
|
|
|
|
|
|
|
|
export::
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
|
|
|
$(MAKE) -C pki $@
|
|
|
|
|
|
|
|
install::
|
2001-01-10 04:32:29 +03:00
|
|
|
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
|
|
|
if test ! -d $(MOZ_BUILD_ROOT)/security/nss; then \
|
|
|
|
cp -r $(topsrcdir)/security/nss $(MOZ_BUILD_ROOT)/security; \
|
|
|
|
fi;
|
|
|
|
if test ! -d $(MOZ_BUILD_ROOT)/security/coreconf; then \
|
|
|
|
cp -r $(topsrcdir)/security/coreconf $(MOZ_BUILD_ROOT)/security; \
|
|
|
|
fi;
|
|
|
|
endif
|
2001-03-05 01:55:18 +03:00
|
|
|
cd $(MOZ_BUILD_ROOT)/security/coreconf; $(MAKE) $(DEFAULT_GMAKE_FLAGS)
|
|
|
|
cd $(MOZ_BUILD_ROOT)/security/nss; $(MAKE) $(DEFAULT_GMAKE_FLAGS) moz_import
|
2001-04-11 04:11:47 +04:00
|
|
|
cd $(MOZ_BUILD_ROOT)/security/nss; $(INSTALL) $(DIST)/include $(DIST)/public/dbm
|
2001-03-05 01:55:18 +03:00
|
|
|
cd $(MOZ_BUILD_ROOT)/security/nss/lib; $(MAKE) $(DEFAULT_GMAKE_FLAGS)
|
2001-01-10 04:32:29 +03:00
|
|
|
$(INSTALL) -m 755 $(CORECONF_INSTALL)/lib/$(LOADABLE_ROOT_MODULE) $(DIST)/bin
|
2001-05-09 14:08:34 +04:00
|
|
|
ifneq (,$(filter SunOS HP-UX,$(OS_ARCH)))
|
|
|
|
ifneq ($(OS_TEST),i86pc)
|
|
|
|
$(INSTALL) -m 755 $(CORECONF_INSTALL)/lib/$(FREEBL_PURE_MODULE) $(DIST)/bin
|
|
|
|
$(INSTALL) -m 755 $(CORECONF_INSTALL)/lib/$(FREEBL_HYBRID_MODULE) $(DIST)/bin
|
|
|
|
endif
|
|
|
|
endif
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
|
|
|
$(MAKE) -C pki $@
|
2001-01-10 04:32:29 +03:00
|
|
|
|
|
|
|
clean clobber clobber_all realclean distclean::
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
|
|
|
$(MAKE) -C pki $@
|
2001-01-10 04:32:29 +03:00
|
|
|
ifeq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
2001-03-05 01:55:18 +03:00
|
|
|
cd $(MOZ_BUILD_ROOT)/security/coreconf; $(MAKE) $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
cd $(MOZ_BUILD_ROOT)/security/nss; $(MAKE) $(DEFAULT_GMAKE_FLAGS) clean
|
2001-01-10 04:32:29 +03:00
|
|
|
else
|
|
|
|
if test -d $(MOZ_BUILD_ROOT)/security/nss; then \
|
|
|
|
rm -rf $(MOZ_BUILD_ROOT)/security/nss; \
|
|
|
|
fi;
|
|
|
|
if test -d $(MOZ_BUILD_ROOT)/security/coreconf; then \
|
|
|
|
rm -rf $(MOZ_BUILD_ROOT)/security/coreconf; \
|
|
|
|
fi;
|
|
|
|
if test -d $(MOZ_BUILD_ROOT)/dist/$(CORECONF_OBJDIR); then \
|
|
|
|
rm -rf $(MOZ_BUILD_ROOT)/dist/$(CORECONF_OBJDIR); \
|
|
|
|
fi;
|
|
|
|
endif
|
|
|
|
|
2001-04-11 13:12:20 +04:00
|
|
|
endif # MOZ_NSS_AUTOCONF
|