# # 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 # DEPTH = ../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = psm PACKAGE_FILE = psm.pkg PACKAGE_VARS += \ NSS3_LIB \ SMIME3_LIB \ SSL3_LIB \ SOFTOKEN3_LIB \ SOFTOKEN3_CHK \ HAVE_FREEBL_MODULES \ $(NULL) ifneq (,$(filter SunOS HP-UX,$(OS_ARCH))) ifeq (,$(filter i86pc ia64,$(OS_TEST))) ifndef HAVE_64BIT_OS HAVE_FREEBL_MODULES = 1 FREEBL_PURE32_MODULE = libfreebl_pure32_3$(DLL_SUFFIX) FREEBL_PURE32_CHK = libfreebl_pure32_3.chk FREEBL_HYBRID_MODULE = libfreebl_hybrid_3$(DLL_SUFFIX) FREEBL_HYBRID_CHK = libfreebl_hybrid_3.chk endif endif endif # NSS makefiles are not safe for parallel execution. DEFAULT_GMAKE_FLAGS = MAKE="$(MAKE) -j1" -j1 DEFAULT_GMAKE_FLAGS += MOZILLA_INCLUDES="-I$(MOZ_BUILD_ROOT)/dist/include/nspr -I$(MOZ_BUILD_ROOT)/dist/include/dbm" 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 ABS_topsrcdir := $(shell cd $(topsrcdir); pwd) ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT)) DEFAULT_GMAKE_FLAGS += BUILD_TREE=$(MOZ_BUILD_ROOT) endif ifndef MOZ_DEBUG DEFAULT_GMAKE_FLAGS += BUILD_OPT=1 endif ifdef GNU_CC DEFAULT_GMAKE_FLAGS += NS_USE_GCC=1 NS_USE_NATIVE= else DEFAULT_GMAKE_FLAGS += NS_USE_GCC= NS_USE_NATIVE=1 endif 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 endif ifdef HAVE_64BIT_OS DEFAULT_GMAKE_FLAGS += USE_64=1 endif 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 # OS_CFLAGS needs to be passed on down. ifeq ($(OS_ARCH),OpenVMS) DEFAULT_GMAKE_FLAGS += XCFLAGS="$(OS_CFLAGS)" endif ifdef CROSS_COMPILE DEFAULT_GMAKE_FLAGS += \ NSINSTALL="$(NSINSTALL)" \ NATIVE_CC="$(HOST_CC)" \ CC="$(CC)" \ CCC="$(CXX)" \ LINK="$(LD)" \ AS="$(AS)" \ AR='$(AR) $(AR_FLAGS:$@=$$@)' \ RANLIB="$(RANLIB)" \ RC="$(RC) $(RCFLAGS)" \ OS_ARCH="$(OS_ARCH)" \ CPU_ARCH="$(TARGET_CPU)" \ $(NULL) SKIP_CHK=1 endif SUBMAKEFILES = boot/Makefile ssl/Makefile pki/Makefile include $(topsrcdir)/config/rules.mk # Attempt to properly handle NSS' refusal to implement a dependency system export:: .nss.cleaned .nss.cleaned: .nss.checkout $(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean touch $@ .nss.checkout: touch $(srcdir)/$@ dependclean export packages chrome:: $(MAKE) -C boot $@ $(MAKE) -C ssl $@ ifdef MOZ_XUL $(MAKE) -C pki $@ endif libs:: $(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) ifeq ($(OS_ARCH),WINNT) cd $(DIST)/lib; cp -f $(LIB_PREFIX)dbm$(MOZ_BITS).$(LIB_SUFFIX) $(LIB_PREFIX)dbm.$(LIB_SUFFIX) endif $(MAKE) -C boot $@ $(MAKE) -C ssl $@ ifdef MOZ_XUL $(MAKE) -C pki $@ endif install:: $(MAKE) -C boot $@ $(MAKE) -C ssl $@ ifdef MOZ_XUL $(MAKE) -C pki $@ endif clean clobber clobber_all realclean distclean depend:: $(MAKE) -C boot $@ $(MAKE) -C ssl $@ ifdef MOZ_XUL $(MAKE) -C pki $@ endif $(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean echo-requires-recursive:: $(MAKE) -C boot $@ $(MAKE) -C ssl $@ $(MAKE) -C pki $@