зеркало из https://github.com/mozilla/pjs.git
98 строки
3.1 KiB
Makefile
98 строки
3.1 KiB
Makefile
#
|
|
# 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@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
ifeq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
|
LOADABLE_ROOT_MODULE = nssckbi$(DLL_SUFFIX)
|
|
else
|
|
LOADABLE_ROOT_MODULE = libnssckbi$(DLL_SUFFIX)
|
|
endif
|
|
FREEBL_PURE32_MODULE = libfreebl_pure32_3$(DLL_SUFFIX)
|
|
FREEBL_HYBRID_MODULE = libfreebl_hybrid_3$(DLL_SUFFIX)
|
|
|
|
# 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
|
|
|
|
SUBMAKEFILES = boot/Makefile ssl/Makefile pki/Makefile
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
depend dependclean export::
|
|
$(MAKE) -C boot $@
|
|
$(MAKE) -C ssl $@
|
|
$(MAKE) -C pki $@
|
|
|
|
libs::
|
|
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS)
|
|
cd $(DIST)/lib; cp -f libmozdbm_s.$(LIB_SUFFIX) libdbm.$(LIB_SUFFIX)
|
|
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS)
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(LOADABLE_ROOT_MODULE) $(DIST)/bin
|
|
ifneq (,$(filter SunOS HP-UX,$(OS_ARCH)))
|
|
ifneq ($(OS_TEST),i86pc)
|
|
ifndef HAVE_64BIT_OS
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_PURE32_MODULE) $(DIST)/bin
|
|
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_HYBRID_MODULE) $(DIST)/bin
|
|
endif
|
|
endif
|
|
endif
|
|
$(MAKE) -C boot $@
|
|
$(MAKE) -C ssl $@
|
|
$(MAKE) -C pki $@
|
|
|
|
clean clobber clobber_all realclean distclean::
|
|
$(MAKE) -C boot $@
|
|
$(MAKE) -C ssl $@
|
|
$(MAKE) -C pki $@
|
|
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
|
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|