home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / config / UNIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.2 KB  |  70 lines

  1. #
  2. # The contents of this file are subject to the Netscape Public License
  3. # Version 1.0 (the "NPL"); you may not use this file except in
  4. # compliance with the NPL.  You may obtain a copy of the NPL at
  5. # http://www.mozilla.org/NPL/
  6. # Software distributed under the NPL is distributed on an "AS IS" basis,
  7. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. # for the specific language governing rights and limitations under the
  9. # NPL.
  10. # The Initial Developer of this code under the NPL is Netscape
  11. # Communications Corporation.  Portions created by Netscape are
  12. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  13. # Reserved.
  14. #
  15.  
  16. XP_DEFINE    = -DXP_UNIX
  17. LIB_SUFFIX    = a
  18. DLL_SUFFIX    = so
  19. AR        = ar cr $@
  20.  
  21. ifdef BUILD_OPT
  22. OPTIMIZER    = -O
  23. DEFINES        = -UDEBUG -DNDEBUG
  24. OBJDIR_TAG    = _OPT
  25. else
  26. OPTIMIZER    = -g
  27. DEFINES        = -DDEBUG -UNDEBUG -DDEBUG_$(shell whoami)
  28. OBJDIR_TAG    = _DBG
  29. endif
  30.  
  31. # Name of the binary code directories
  32. OBJDIR_NAME    = $(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ
  33.  
  34. MKDEPEND_DIR    = $(DEPTH)/config/mkdepend
  35. MKDEPEND     = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
  36. MKDEPENDENCIES  = $(OBJDIR)/depend.mk
  37.  
  38. ####################################################################
  39. #
  40. # One can define the makefile variable NSDISTMODE to control
  41. # how files are published to the 'dist' directory.  If not
  42. # defined, the default is "install using relative symbolic
  43. # links".  The two possible values are "copy", which copies files
  44. # but preserves source mtime, and "absolute_symlink", which
  45. # installs using absolute symbolic links.  The "absolute_symlink"
  46. # option requires NFSPWD.
  47. #
  48. ####################################################################
  49.  
  50. NSINSTALL    = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall
  51.  
  52. ifeq ($(NSDISTMODE),copy)
  53. # copy files, but preserve source mtime
  54. INSTALL        = $(NSINSTALL) -t
  55. else
  56. ifeq ($(NSDISTMODE),absolute_symlink)
  57. # install using absolute symbolic links
  58. INSTALL        = $(NSINSTALL) -L `$(NFSPWD)`
  59. else
  60. # install using relative symbolic links
  61. INSTALL        = $(NSINSTALL) -R
  62. endif
  63. endif
  64.  
  65. define MAKE_OBJDIR
  66. if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi
  67. endef
  68.