home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / IRIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  5.1 KB  |  184 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. #
  7. # Software distributed under the NPL is distributed on an "AS IS" basis,
  8. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9. # for the specific language governing rights and limitations under the
  10. # NPL.
  11. #
  12. # The Initial Developer of this code under the NPL is Netscape
  13. # Communications Corporation.  Portions created by Netscape are
  14. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  15. # Reserved.
  16. #
  17.  
  18. ######################################################################
  19. # Config stuff for IRIX
  20. ######################################################################
  21. #
  22. ######################################################################
  23. # Version-independent
  24. ######################################################################
  25.  
  26. ARCH            := irix
  27. CPU_ARCH        := mips
  28. GFX_ARCH        := x
  29.  
  30. OS_INCLUDES        =
  31. G++INCLUDES        =
  32. LOC_LIB_DIR        = /usr/lib/X11
  33. MOTIF            =
  34. MOTIFLIB        =
  35. OS_LIBS            =
  36.  
  37. PLATFORM_FLAGS        = -DIRIX
  38. MOVEMAIL_FLAGS        =
  39. PORT_FLAGS        = -DSVR4 -DHAVE_LCHOWN -DHAVE_SIGNED_CHAR -DHAVE_FILIO_H -DHAS_PGNO_T -DMITSHM -DHAVE_WAITID -DNEED_VBASE -DNEED_SYS_TIME_H -DHAVE_SYSTEMINFO_H -DNO_JNI_STUBS -D_MIPS_SIM_ABI32
  40. PDJAVA_FLAGS        =
  41.  
  42. OS_CFLAGS        = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
  43.  
  44. LOCALE_MAP        = $(DEPTH)/cmd/xfe/intl/irix.lm
  45. EN_LOCALE        = en_US
  46. DE_LOCALE        = de
  47. FR_LOCALE        = fr
  48. JP_LOCALE        = ja_JP.EUC
  49. SJIS_LOCALE        = ja_JP.SJIS
  50. KR_LOCALE        = ko_KR.euc
  51. CN_LOCALE        = zh_CN.ugb
  52. TW_LOCALE        = zh_TW.ucns
  53. I2_LOCALE        = i2
  54. IT_LOCALE        = it
  55. SV_LOCALE        = sv
  56. ES_LOCALE        = es
  57. NL_LOCALE        = nl
  58. PT_LOCALE        = pt
  59.  
  60. ######################################################################
  61. # Version-specific stuff
  62. ######################################################################
  63.  
  64. ifeq ($(OS_RELEASE),6)
  65. #
  66. # The "-woff 131" silences the really noisy 6.x ld's warnings about
  67. # having multiply defined weak symbols.
  68. #
  69. # The "-woff 3247" silences complaints about the "#pragma segment"
  70. # stuff strewn all over libneo (apparently for Macintoshes).
  71. #
  72. NO_NOISE        = -woff 131
  73. PLATFORM_FLAGS        += -multigot -Wl,-nltgot,170
  74. PORT_FLAGS        += -DNO_UINT32_T -DNO_INT64_T -DNEED_BSD_TYPES
  75. SHLIB_LD_OPTS        = -no_unresolved
  76. ifeq ($(AWT_11),1)
  77. JAVAC_ZIP        = $(NS_LIB)/rt.jar:$(NS_LIB)/dev.jar:$(NS_LIB)/i18n.jar:$(NS_LIB)/tiny.jar
  78. endif
  79. endif
  80.  
  81. ifndef NS_USE_GCC
  82. CC            = cc
  83. CCC            = CC -woff 3247
  84. endif
  85.  
  86. ifeq ($(OS_VERSION),.3)
  87. PERL            = $(LOCAL_BIN)perl5
  88. ifndef NS_USE_GCC
  89. XGOT_FLAG        = -xgot
  90. #
  91. # Use gtscc to unbloat the C++ global count.
  92. #
  93. ifdef USE_GTSCC
  94. ifndef NO_GTSCC
  95. XGOT_FLAG        =
  96. CCC            = $(DIST)/bin/gtscc $(GTSCC_CC_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
  97. ifeq ($(findstring modules/,$(SRCDIR)),modules/)
  98. CC            = $(DIST)/bin/gtscc $(GTSCC_CC_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
  99. endif
  100. ifeq ($(findstring sun-java/,$(SRCDIR)),sun-java/)
  101. CC            = $(DIST)/bin/gtscc $(GTSCC_CC_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
  102. endif
  103. endif
  104. endif
  105. endif
  106. PLATFORM_FLAGS        += $(XGOT_FLAG) -DIRIX5_3
  107. endif
  108.  
  109. ifeq ($(OS_VERSION),.2)
  110. PLATFORM_FLAGS        += -DIRIX6_2
  111. endif
  112. ifeq ($(OS_VERSION),.3)
  113. PLATFORM_FLAGS        += -DIRIX6_3
  114. endif
  115.  
  116. ######################################################################
  117. # Overrides for defaults in config.mk (or wherever)
  118. ######################################################################
  119.  
  120. WHOAMI            = /bin/whoami
  121. UNZIP_PROG        = $(NS_BIN)unzip
  122. ZIP_PROG        = $(NS_BIN)zip
  123.  
  124. ######################################################################
  125. # Other
  126. ######################################################################
  127.  
  128. ifdef NS_USE_GCC
  129. PLATFORM_FLAGS        += -Wall -Wno-format
  130. ASFLAGS            += -x assembler-with-cpp
  131. ifdef BUILD_OPT
  132. OPTIMIZER        = -O6
  133. endif
  134. else
  135. PLATFORM_FLAGS        += -32 -fullwarn -xansi -DIRIX_STARTUP_SPEEDUPS
  136. ifdef BUILD_OPT
  137. OPTIMIZER        = -O -Olimit 4000
  138. endif
  139. endif
  140.  
  141. ifndef NO_MDUPDATE
  142. MDUPDATE_FLAGS        = -MDupdate $(DEPENDENCIES)
  143. endif
  144.  
  145. ifeq ($(USE_KERNEL_THREADS),1)
  146. PORT_FLAGS        += -DHW_THREADS -D_SGI_MP_SOURCE
  147. else
  148. PORT_FLAGS        += -DSW_THREADS
  149. endif
  150.  
  151. #
  152. # The "o32" calling convention is the default for 5.3 and 6.2.
  153. # According to the SGI dudes, they will migrate to "n32" for 6.5.
  154. # What will we do then? 
  155. # If we want to do the same, simply uncomment the line below ..
  156. #
  157. #PORT_FLAGS        += -D_MIPS_SIM_NABI32
  158.  
  159. #
  160. # To get around SGI's problems with the Asian input method.
  161. #
  162. MAIL_IM_HACK        = *Mail*preeditType:none
  163. NEWS_IM_HACK        = *News*preeditType:none
  164.  
  165. #
  166. # An nm command which generates an output like:
  167. # archive.a:object.o: 0000003 T symbol
  168. #
  169. NM_PO            = nm -Bpo
  170.  
  171. HAVE_PURIFY        = 1
  172. MUST_BOOTLEG_ALLOCA    = 1
  173. BUILD_UNIX_PLUGINS    = 1
  174.  
  175. MKSHLIB            = $(LD) $(NO_NOISE) $(SHLIB_LD_OPTS) -shared -soname $(@:$(OBJDIR)/%.so=%.so)
  176.  
  177. DSO_LDOPTS        = -elf -shared -all
  178. DSO_LDFLAGS        = -nostdlib -L/lib -L/usr/lib  -L/usr/lib -lXm -lXt -lX11 -lgen
  179.  
  180. ifdef DSO_BACKEND
  181. DSO_LDOPTS        += -soname $(DSO_NAME)
  182. endif
  183.  
  184.