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