UNIX.mk (1736B)
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 6 XP_DEFINE += -DXP_UNIX 7 LIB_SUFFIX = a 8 DLL_SUFFIX = so 9 AR = ar cr $@ 10 LDOPTS += -L$(SOURCE_LIB_DIR) 11 12 ifdef BUILD_OPT 13 OPTIMIZER += -O 14 DEFINES += -UDEBUG -DNDEBUG 15 else 16 OPTIMIZER += -g 17 DEFINES += -DDEBUG -UNDEBUG 18 endif 19 20 ifdef BUILD_TREE 21 NSINSTALL_DIR = $(BUILD_TREE)/nss 22 NSINSTALL = $(BUILD_TREE)/nss/nsinstall 23 else 24 NSINSTALL_DIR = $(CORE_DEPTH)/coreconf/nsinstall 25 NSINSTALL = $(NSINSTALL_DIR)/$(OBJDIR_NAME)/nsinstall 26 endif 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 40 ifeq ($(NSDISTMODE),copy) 41 # copy files, but preserve source mtime 42 INSTALL = $(NSINSTALL) 43 INSTALL += -t 44 else 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 54 endif 55 56 define MAKE_OBJDIR 57 if test ! -d $(@D); then $(NSINSTALL) -D $(@D); fi 58 endef 59 60 include $(CORE_DEPTH)/coreconf/Werror.mk