security/nss/coreconf/UNIX.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/coreconf/UNIX.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +XP_DEFINE  += -DXP_UNIX
    1.10 +LIB_SUFFIX  = a
    1.11 +DLL_SUFFIX  = so
    1.12 +AR          = ar cr $@
    1.13 +LDOPTS     += -L$(SOURCE_LIB_DIR)
    1.14 +
    1.15 +ifdef BUILD_OPT
    1.16 +	OPTIMIZER  += -O
    1.17 +	DEFINES    += -UDEBUG -DNDEBUG
    1.18 +else
    1.19 +	OPTIMIZER  += -g
    1.20 +	USERNAME   := $(shell whoami)
    1.21 +	USERNAME   := $(subst -,_,$(USERNAME))
    1.22 +	DEFINES    += -DDEBUG -UNDEBUG -DDEBUG_$(USERNAME)
    1.23 +endif
    1.24 +
    1.25 +ifdef BUILD_TREE
    1.26 +NSINSTALL_DIR  = $(BUILD_TREE)/nss
    1.27 +NSINSTALL      = $(BUILD_TREE)/nss/nsinstall
    1.28 +else
    1.29 +NSINSTALL_DIR  = $(CORE_DEPTH)/coreconf/nsinstall
    1.30 +NSINSTALL      = $(NSINSTALL_DIR)/$(OBJDIR_NAME)/nsinstall
    1.31 +endif
    1.32 +
    1.33 +MKDEPEND_DIR    = $(CORE_DEPTH)/coreconf/mkdepend
    1.34 +MKDEPEND        = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
    1.35 +MKDEPENDENCIES  = $(OBJDIR_NAME)/depend.mk
    1.36 +
    1.37 +####################################################################
    1.38 +#
    1.39 +# One can define the makefile variable NSDISTMODE to control
    1.40 +# how files are published to the 'dist' directory.  If not
    1.41 +# defined, the default is "install using relative symbolic
    1.42 +# links".  The two possible values are "copy", which copies files
    1.43 +# but preserves source mtime, and "absolute_symlink", which
    1.44 +# installs using absolute symbolic links.
    1.45 +#   - THIS IS NOT PART OF THE NEW BINARY RELEASE PLAN for 9/30/97
    1.46 +#   - WE'RE KEEPING IT ONLY FOR BACKWARDS COMPATIBILITY
    1.47 +####################################################################
    1.48 +
    1.49 +ifeq ($(NSDISTMODE),copy)
    1.50 +	# copy files, but preserve source mtime
    1.51 +	INSTALL  = $(NSINSTALL)
    1.52 +	INSTALL += -t
    1.53 +else
    1.54 +	ifeq ($(NSDISTMODE),absolute_symlink)
    1.55 +		# install using absolute symbolic links
    1.56 +		INSTALL  = $(NSINSTALL)
    1.57 +		INSTALL += -L `pwd`
    1.58 +	else
    1.59 +		# install using relative symbolic links
    1.60 +		INSTALL  = $(NSINSTALL)
    1.61 +		INSTALL += -R
    1.62 +	endif
    1.63 +endif
    1.64 +
    1.65 +define MAKE_OBJDIR
    1.66 +if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
    1.67 +endef

mercurial