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