home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / config / IRIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.2 KB  |  109 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. #
  17. # Config stuff for IRIX
  18. #
  19.  
  20. include $(MOD_DEPTH)/config/UNIX.mk
  21.  
  22. #
  23. # The default implementation strategy for Irix is classic nspr.
  24. #
  25. ifeq ($(USE_PTHREADS),1)
  26. IMPL_STRATEGY = _PTH
  27. endif
  28.  
  29. ifdef NS_USE_GCC
  30. CC            = gcc
  31. COMPILER_TAG        = _gcc
  32. AS            = $(CC) -x assembler-with-cpp
  33. ODD_CFLAGS        = -Wall -Wno-format
  34. ifdef BUILD_OPT
  35. OPTIMIZER        = -O6
  36. endif
  37. else
  38. CC            = cc
  39. CCC         = CC
  40. ODD_CFLAGS        = -fullwarn -xansi -rdata_shared
  41. ifdef BUILD_OPT
  42.  
  43. ifeq ($(USE_N32),1)
  44. OPTIMIZER        = -O -OPT:Olimit=4000
  45. else
  46. OPTIMIZER        = -O -Olimit 4000
  47. endif
  48.  
  49. endif
  50.  
  51. # For 6.x machines, include this flag
  52. ifeq (6.,$(findstring 6.,$(OS_RELEASE)))
  53. ifeq ($(USE_N32),1)
  54. ODD_CFLAGS        += -n32 -exceptions
  55. else
  56. ODD_CFLAGS        +=  -32 -multigot
  57. endif
  58. else
  59. ODD_CFLAGS        += -xgot
  60. endif
  61. endif
  62.  
  63. ODD_CFLAGS        += -DSVR4 -DIRIX
  64.  
  65.  
  66. CPU_ARCH        = mips
  67.  
  68. RANLIB            = /bin/true
  69.  
  70. # For purify
  71. # XXX: should always define _SGI_MP_SOURCE
  72. NOMD_OS_CFLAGS        = $(ODD_CFLAGS) -D_SGI_MP_SOURCE
  73.  
  74. ifeq ($(OS_RELEASE),5.3)
  75. OS_CFLAGS               += -DIRIX5_3
  76. endif
  77.  
  78. ifeq ($(OS_RELEASE),6.2)
  79. OS_CFLAGS               += -DIRIX6_2
  80. endif
  81.  
  82. ifeq ($(OS_RELEASE),6.3)
  83. OS_CFLAGS               += -DIRIX6_3
  84. endif
  85.  
  86. ifndef NO_MDUPDATE
  87. OS_CFLAGS        += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)
  88. else
  89. OS_CFLAGS        += $(NOMD_OS_CFLAGS)
  90. endif
  91.  
  92. ifeq ($(USE_N32),1)
  93. SHLIB_LD_OPTS        += -n32
  94. endif
  95.  
  96. MKSHLIB            = $(LD) $(SHLIB_LD_OPTS) -shared -soname $(@:$(OBJDIR)/%.so=%.so)
  97.  
  98. HAVE_PURIFY        = 1
  99.  
  100. DSO_LDOPTS        = -elf -shared -all
  101.  
  102. ifdef DSO_BACKEND
  103. DSO_LDOPTS        += -soname $(DSO_NAME)
  104.  
  105.  
  106. endif
  107.