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
|
|
|
|
|
2003-04-23 04:54:38 +04:00
|
|
|
LOADABLE_ROOT_MODULE = $(DLL_PREFIX)nssckbi$(DLL_SUFFIX)
|
2002-01-10 03:47:07 +03:00
|
|
|
|
2003-04-23 04:54:38 +04:00
|
|
|
NSS3_LIB = $(DLL_PREFIX)nss3$(DLL_SUFFIX)
|
|
|
|
SMIME3_LIB = $(DLL_PREFIX)smime3$(DLL_SUFFIX)
|
|
|
|
SSL3_LIB = $(DLL_PREFIX)ssl3$(DLL_SUFFIX)
|
|
|
|
SOFTOKEN3_LIB = $(DLL_PREFIX)softokn3$(DLL_SUFFIX)
|
|
|
|
SOFTOKEN3_CHK = $(DLL_PREFIX)softokn3.chk
|
2002-01-10 03:47:07 +03:00
|
|
|
|
2002-10-01 18:42:41 +04:00
|
|
|
ifneq (,$(filter SunOS HP-UX,$(OS_ARCH)))
|
|
|
|
ifeq (,$(filter i86pc ia64,$(OS_TEST)))
|
|
|
|
ifndef HAVE_64BIT_OS
|
|
|
|
HAVE_FREEBL_MODULES = 1
|
2001-05-23 01:11:57 +04:00
|
|
|
FREEBL_PURE32_MODULE = libfreebl_pure32_3$(DLL_SUFFIX)
|
2003-03-20 21:03:22 +03:00
|
|
|
FREEBL_PURE32_CHK = libfreebl_pure32_3.chk
|
2001-05-23 01:11:57 +04:00
|
|
|
FREEBL_HYBRID_MODULE = libfreebl_hybrid_3$(DLL_SUFFIX)
|
2003-03-20 21:03:22 +03:00
|
|
|
FREEBL_HYBRID_CHK = libfreebl_hybrid_3.chk
|
2002-10-01 18:42:41 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2001-01-10 04:32:29 +03:00
|
|
|
|
2001-05-23 01:11:57 +04:00
|
|
|
# NSS makefiles are not safe for parallel execution.
|
|
|
|
DEFAULT_GMAKE_FLAGS = MAKE="$(MAKE) -j1" -j1
|
2001-05-24 04:31:26 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += MOZILLA_INCLUDES="-I$(MOZ_BUILD_ROOT)/dist/include/nspr -I$(MOZ_BUILD_ROOT)/dist/include/dbm"
|
2001-05-23 01:11:57 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += SOURCE_MD_DIR=$(MOZ_BUILD_ROOT)/dist
|
|
|
|
DEFAULT_GMAKE_FLAGS += DIST=$(MOZ_BUILD_ROOT)/dist
|
|
|
|
DEFAULT_GMAKE_FLAGS += MOZILLA_CLIENT=1
|
|
|
|
DEFAULT_GMAKE_FLAGS += NO_MDUPDATE=1
|
2001-06-14 04:08:16 +04:00
|
|
|
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
|
|
|
|
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
|
|
|
DEFAULT_GMAKE_FLAGS += BUILD_TREE=$(MOZ_BUILD_ROOT)
|
|
|
|
endif
|
2001-04-11 04:11:47 +04:00
|
|
|
ifndef MOZ_DEBUG
|
2001-05-23 01:11:57 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += BUILD_OPT=1
|
2001-04-11 04:11:47 +04:00
|
|
|
endif
|
2001-05-23 01:11:57 +04:00
|
|
|
ifdef GNU_CC
|
|
|
|
DEFAULT_GMAKE_FLAGS += NS_USE_GCC=1 NS_USE_NATIVE=
|
2001-01-10 04:32:29 +03:00
|
|
|
else
|
2001-05-23 01:11:57 +04:00
|
|
|
DEFAULT_GMAKE_FLAGS += NS_USE_GCC= NS_USE_NATIVE=1
|
2001-01-10 04:32:29 +03:00
|
|
|
endif
|
2001-05-23 01:11:57 +04:00
|
|
|
ifdef USE_N32
|
|
|
|
# It is not really necessary to specify USE_PTHREADS=1. USE_PTHREADS
|
|
|
|
# merely adds _PTH to coreconf's OBJDIR name.
|
|
|
|
DEFAULT_GMAKE_FLAGS += USE_N32=1 USE_PTHREADS=1
|
2001-05-09 14:08:34 +04:00
|
|
|
endif
|
2001-08-09 05:38:08 +04:00
|
|
|
ifdef HAVE_64BIT_OS
|
|
|
|
DEFAULT_GMAKE_FLAGS += USE_64=1
|
|
|
|
endif
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
DEFAULT_GMAKE_FLAGS += OS_TARGET=WIN95
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifndef MOZ_NO_DEBUG_RTL
|
|
|
|
DEFAULT_GMAKE_FLAGS += USE_DEBUG_RTL=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif # WINNT
|
2003-04-01 19:07:41 +04:00
|
|
|
# OS_CFLAGS needs to be passed on down.
|
|
|
|
ifeq ($(OS_ARCH),OpenVMS)
|
|
|
|
DEFAULT_GMAKE_FLAGS += XCFLAGS="$(OS_CFLAGS)"
|
|
|
|
endif
|
2001-05-09 14:08:34 +04:00
|
|
|
|
2001-11-30 02:36:34 +03:00
|
|
|
SUBMAKEFILES = boot/Makefile ssl/Makefile pki/Makefile
|
2001-01-10 04:32:29 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2002-09-20 12:46:21 +04:00
|
|
|
# Attempt to properly handle NSS' refusal to implement a dependency system
|
2003-05-22 00:13:24 +04:00
|
|
|
export:: .nss.cleaned
|
|
|
|
|
|
|
|
.nss.cleaned: .nss.checkout
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
.nss.checkout:
|
|
|
|
touch $(srcdir)/$@
|
2002-09-20 12:46:21 +04:00
|
|
|
|
2002-03-05 18:22:48 +03:00
|
|
|
dependclean export::
|
2001-11-30 02:36:34 +03:00
|
|
|
$(MAKE) -C boot $@
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
2003-04-11 04:56:27 +04:00
|
|
|
ifdef MOZ_XUL
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C pki $@
|
2003-04-11 04:56:27 +04:00
|
|
|
endif
|
2001-03-05 01:55:18 +03:00
|
|
|
|
2001-11-21 11:55:59 +03:00
|
|
|
libs::
|
2001-06-14 04:08:16 +04:00
|
|
|
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS)
|
2002-01-16 08:10:09 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2002-02-14 18:29:22 +03:00
|
|
|
cd $(DIST)/lib; cp -f $(LIB_PREFIX)dbm$(MOZ_BITS).$(LIB_SUFFIX) $(LIB_PREFIX)dbm.$(LIB_SUFFIX)
|
2002-01-16 08:10:09 +03:00
|
|
|
else
|
2002-02-14 18:29:22 +03:00
|
|
|
cd $(DIST)/lib; cp -f $(LIB_PREFIX)mozdbm_s.$(LIB_SUFFIX) $(LIB_PREFIX)dbm.$(LIB_SUFFIX); $(RANLIB) $(LIB_PREFIX)dbm.$(LIB_SUFFIX)
|
2002-01-16 08:10:09 +03:00
|
|
|
endif
|
2001-06-14 04:08:16 +04:00
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS)
|
2003-03-20 21:03:22 +03:00
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS)
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS)
|
2002-12-28 04:15:07 +03:00
|
|
|
ifndef DISABLE_DIST_GRE
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(LOADABLE_ROOT_MODULE) $(GRE_DIST)
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(SOFTOKEN3_CHK) $(GRE_DIST)
|
2002-12-28 04:15:07 +03:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SOFTOKEN3_LIB) $(GRE_DIST)
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(NSS3_LIB) $(GRE_DIST)
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SSL3_LIB) $(GRE_DIST)
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SMIME3_LIB) $(GRE_DIST)
|
|
|
|
ifdef HAVE_FREEBL_MODULES
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(FREEBL_PURE32_CHK) $(GRE_DIST)
|
2002-12-28 04:15:07 +03:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_PURE32_MODULE) $(GRE_DIST)
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(FREEBL_HYBRID_CHK) $(GRE_DIST)
|
2002-12-28 04:15:07 +03:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_HYBRID_MODULE) $(GRE_DIST)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifndef _SKIP_OLD_GRE_INSTALL
|
2001-05-23 01:11:57 +04:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(LOADABLE_ROOT_MODULE) $(DIST)/bin
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(SOFTOKEN3_CHK) $(DIST)/bin
|
2002-01-10 03:47:07 +03:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SOFTOKEN3_LIB) $(DIST)/bin
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(NSS3_LIB) $(DIST)/bin
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SSL3_LIB) $(DIST)/bin
|
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(SMIME3_LIB) $(DIST)/bin
|
2002-10-01 18:42:41 +04:00
|
|
|
ifdef HAVE_FREEBL_MODULES
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(FREEBL_PURE32_CHK) $(DIST)/bin
|
2001-05-23 01:11:57 +04:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_PURE32_MODULE) $(DIST)/bin
|
2003-03-20 21:03:22 +03:00
|
|
|
$(INSTALL) -m 644 $(DIST)/lib/$(FREEBL_HYBRID_CHK) $(DIST)/bin
|
2001-05-23 01:11:57 +04:00
|
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_HYBRID_MODULE) $(DIST)/bin
|
2002-12-28 04:15:07 +03:00
|
|
|
endif
|
2001-05-09 14:08:34 +04:00
|
|
|
endif
|
2001-11-30 02:36:34 +03:00
|
|
|
$(MAKE) -C boot $@
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
2003-04-11 04:56:27 +04:00
|
|
|
ifdef MOZ_XUL
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C pki $@
|
2003-04-11 04:56:27 +04:00
|
|
|
endif
|
2001-01-10 04:32:29 +03:00
|
|
|
|
2002-04-25 06:52:44 +04:00
|
|
|
install::
|
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(LOADABLE_ROOT_MODULE) $(DESTDIR)$(mozappdir)
|
2003-03-20 21:03:22 +03:00
|
|
|
$(SYSINSTALL) -m 644 $(DIST)/lib/$(SOFTOKEN3_CHK) $(DESTDIR)$(mozappdir)
|
2002-04-25 06:52:44 +04:00
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(SOFTOKEN3_LIB) $(DESTDIR)$(mozappdir)
|
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(NSS3_LIB) $(DESTDIR)$(mozappdir)
|
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(SSL3_LIB) $(DESTDIR)$(mozappdir)
|
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(SMIME3_LIB) $(DESTDIR)$(mozappdir)
|
2002-10-01 18:42:41 +04:00
|
|
|
ifdef HAVE_FREEBL_MODULES
|
2003-03-20 21:03:22 +03:00
|
|
|
$(SYSINSTALL) -m 644 $(DIST)/lib/$(FREEBL_PURE32_CHK) $(DESTDIR)$(mozappdir)
|
2002-04-25 06:52:44 +04:00
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(FREEBL_PURE32_MODULE) $(DESTDIR)$(mozappdir)
|
2003-03-20 21:03:22 +03:00
|
|
|
$(SYSINSTALL) -m 644 $(DIST)/lib/$(FREEBL_HYBRID_CHK) $(DESTDIR)$(mozappdir)
|
2002-04-25 06:52:44 +04:00
|
|
|
$(SYSINSTALL) -m 755 $(DIST)/lib/$(FREEBL_HYBRID_MODULE) $(DESTDIR)$(mozappdir)
|
|
|
|
endif
|
|
|
|
$(MAKE) -C boot $@
|
|
|
|
$(MAKE) -C ssl $@
|
2003-04-11 04:56:27 +04:00
|
|
|
ifdef MOZ_XUL
|
2002-04-25 06:52:44 +04:00
|
|
|
$(MAKE) -C pki $@
|
2003-04-11 04:56:27 +04:00
|
|
|
endif
|
2002-09-20 12:46:21 +04:00
|
|
|
|
2002-03-05 18:22:48 +03:00
|
|
|
clean clobber clobber_all realclean distclean depend::
|
2001-11-30 02:36:34 +03:00
|
|
|
$(MAKE) -C boot $@
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C ssl $@
|
2003-04-11 04:56:27 +04:00
|
|
|
ifdef MOZ_XUL
|
2001-03-05 01:55:18 +03:00
|
|
|
$(MAKE) -C pki $@
|
2003-04-11 04:56:27 +04:00
|
|
|
endif
|
2001-06-14 04:08:16 +04:00
|
|
|
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|
2003-03-20 21:03:22 +03:00
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
|
|
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
|
2003-06-06 23:21:57 +04:00
|
|
|
|
|
|
|
echo-requires-recursive::
|
|
|
|
$(MAKE) -C boot $@
|
|
|
|
$(MAKE) -C ssl $@
|
|
|
|
$(MAKE) -C pki $@
|