XP_DEFINE += -DXP_UNIX LIB_SUFFIX = a DLL_SUFFIX = so AR = ar cr $@ LDOPTS += -L$(SOURCE_LIB_DIR)
ifdef BUILD_OPT OPTIMIZER += -O DEFINES += -UDEBUG -DNDEBUG else OPTIMIZER += -g USERNAME := $(shell whoami) USERNAME := $(subst -,,$(USERNAME)) DEFINES += -DDEBUG -UNDEBUG -DDEBUG$(USERNAME) endif
ifdef BUILD_TREE NSINSTALL_DIR = $(BUILD_TREE)/nss NSINSTALL = $(BUILD_TREE)/nss/nsinstall else NSINSTALL_DIR = $(CORE_DEPTH)/coreconf/nsinstall NSINSTALL = $(NSINSTALL_DIR)/$(OBJDIR_NAME)/nsinstall endif
MKDEPEND_DIR = $(CORE_DEPTH)/coreconf/mkdepend MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend MKDEPENDENCIES = $(OBJDIR_NAME)/depend.mk
ifeq ($(NSDISTMODE),copy)
# copy files, but preserve source mtime
INSTALL = $(NSINSTALL)
INSTALL += -t
else
ifeq ($(NSDISTMODE),absolute_symlink)
# install using absolute symbolic links
INSTALL = $(NSINSTALL)
INSTALL += -L pwd
else
# install using relative symbolic links
INSTALL = $(NSINSTALL)
INSTALL += -R
endif
endif
define MAKE_OBJDIR if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi endef