security/nss/coreconf/UNIX.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 XP_DEFINE += -DXP_UNIX
michael@0 7 LIB_SUFFIX = a
michael@0 8 DLL_SUFFIX = so
michael@0 9 AR = ar cr $@
michael@0 10 LDOPTS += -L$(SOURCE_LIB_DIR)
michael@0 11
michael@0 12 ifdef BUILD_OPT
michael@0 13 OPTIMIZER += -O
michael@0 14 DEFINES += -UDEBUG -DNDEBUG
michael@0 15 else
michael@0 16 OPTIMIZER += -g
michael@0 17 USERNAME := $(shell whoami)
michael@0 18 USERNAME := $(subst -,_,$(USERNAME))
michael@0 19 DEFINES += -DDEBUG -UNDEBUG -DDEBUG_$(USERNAME)
michael@0 20 endif
michael@0 21
michael@0 22 ifdef BUILD_TREE
michael@0 23 NSINSTALL_DIR = $(BUILD_TREE)/nss
michael@0 24 NSINSTALL = $(BUILD_TREE)/nss/nsinstall
michael@0 25 else
michael@0 26 NSINSTALL_DIR = $(CORE_DEPTH)/coreconf/nsinstall
michael@0 27 NSINSTALL = $(NSINSTALL_DIR)/$(OBJDIR_NAME)/nsinstall
michael@0 28 endif
michael@0 29
michael@0 30 MKDEPEND_DIR = $(CORE_DEPTH)/coreconf/mkdepend
michael@0 31 MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
michael@0 32 MKDEPENDENCIES = $(OBJDIR_NAME)/depend.mk
michael@0 33
michael@0 34 ####################################################################
michael@0 35 #
michael@0 36 # One can define the makefile variable NSDISTMODE to control
michael@0 37 # how files are published to the 'dist' directory. If not
michael@0 38 # defined, the default is "install using relative symbolic
michael@0 39 # links". The two possible values are "copy", which copies files
michael@0 40 # but preserves source mtime, and "absolute_symlink", which
michael@0 41 # installs using absolute symbolic links.
michael@0 42 # - THIS IS NOT PART OF THE NEW BINARY RELEASE PLAN for 9/30/97
michael@0 43 # - WE'RE KEEPING IT ONLY FOR BACKWARDS COMPATIBILITY
michael@0 44 ####################################################################
michael@0 45
michael@0 46 ifeq ($(NSDISTMODE),copy)
michael@0 47 # copy files, but preserve source mtime
michael@0 48 INSTALL = $(NSINSTALL)
michael@0 49 INSTALL += -t
michael@0 50 else
michael@0 51 ifeq ($(NSDISTMODE),absolute_symlink)
michael@0 52 # install using absolute symbolic links
michael@0 53 INSTALL = $(NSINSTALL)
michael@0 54 INSTALL += -L `pwd`
michael@0 55 else
michael@0 56 # install using relative symbolic links
michael@0 57 INSTALL = $(NSINSTALL)
michael@0 58 INSTALL += -R
michael@0 59 endif
michael@0 60 endif
michael@0 61
michael@0 62 define MAKE_OBJDIR
michael@0 63 if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
michael@0 64 endef

mercurial