|
Packit |
40b132 |
#
|
|
Packit |
40b132 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
40b132 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
40b132 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
XP_DEFINE += -DXP_UNIX
|
|
Packit |
40b132 |
LIB_SUFFIX = a
|
|
Packit |
40b132 |
DLL_SUFFIX = so
|
|
Packit |
40b132 |
AR = ar cr $@
|
|
Packit |
40b132 |
LDOPTS += -L$(SOURCE_LIB_DIR)
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ifdef BUILD_OPT
|
|
Packit |
40b132 |
OPTIMIZER += -O
|
|
Packit |
40b132 |
DEFINES += -UDEBUG -DNDEBUG
|
|
Packit |
40b132 |
else
|
|
Packit |
40b132 |
OPTIMIZER += -g
|
|
Packit |
40b132 |
USERNAME := $(shell whoami)
|
|
Packit |
40b132 |
USERNAME := $(subst -,_,$(USERNAME))
|
|
Packit |
40b132 |
DEFINES += -DDEBUG -UNDEBUG -DDEBUG_$(USERNAME)
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ifdef BUILD_TREE
|
|
Packit |
40b132 |
NSINSTALL_DIR = $(BUILD_TREE)/nss
|
|
Packit |
40b132 |
NSINSTALL = $(BUILD_TREE)/nss/nsinstall
|
|
Packit |
40b132 |
else
|
|
Packit |
40b132 |
NSINSTALL_DIR = $(CORE_DEPTH)/coreconf/nsinstall
|
|
Packit |
40b132 |
NSINSTALL = $(NSINSTALL_DIR)/$(OBJDIR_NAME)/nsinstall
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
MKDEPEND_DIR = $(CORE_DEPTH)/coreconf/mkdepend
|
|
Packit |
40b132 |
MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
|
|
Packit |
40b132 |
MKDEPENDENCIES = $(OBJDIR_NAME)/depend.mk
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
####################################################################
|
|
Packit |
40b132 |
#
|
|
Packit |
40b132 |
# One can define the makefile variable NSDISTMODE to control
|
|
Packit |
40b132 |
# how files are published to the 'dist' directory. If not
|
|
Packit |
40b132 |
# defined, the default is "install using relative symbolic
|
|
Packit |
40b132 |
# links". The two possible values are "copy", which copies files
|
|
Packit |
40b132 |
# but preserves source mtime, and "absolute_symlink", which
|
|
Packit |
40b132 |
# installs using absolute symbolic links.
|
|
Packit |
40b132 |
# - THIS IS NOT PART OF THE NEW BINARY RELEASE PLAN for 9/30/97
|
|
Packit |
40b132 |
# - WE'RE KEEPING IT ONLY FOR BACKWARDS COMPATIBILITY
|
|
Packit |
40b132 |
####################################################################
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ifeq ($(NSDISTMODE),copy)
|
|
Packit |
40b132 |
# copy files, but preserve source mtime
|
|
Packit |
40b132 |
INSTALL = $(NSINSTALL)
|
|
Packit |
40b132 |
INSTALL += -t
|
|
Packit |
40b132 |
else
|
|
Packit |
40b132 |
ifeq ($(NSDISTMODE),absolute_symlink)
|
|
Packit |
40b132 |
# install using absolute symbolic links
|
|
Packit |
40b132 |
INSTALL = $(NSINSTALL)
|
|
Packit |
40b132 |
INSTALL += -L `pwd`
|
|
Packit |
40b132 |
else
|
|
Packit |
40b132 |
# install using relative symbolic links
|
|
Packit |
40b132 |
INSTALL = $(NSINSTALL)
|
|
Packit |
40b132 |
INSTALL += -R
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
define MAKE_OBJDIR
|
|
Packit |
40b132 |
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
|
|
Packit |
40b132 |
endef
|