home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / OSF1.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  3.3 KB  |  115 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 DEC OSF/1 (Digital UNIX)
  20. ######################################################################
  21. #
  22. ######################################################################
  23. # Version-independent
  24. ######################################################################
  25.  
  26. ARCH            := dec
  27. CPU_ARCH        := alpha
  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        = -taso -D_ALPHA_ -DIS_64 -DOSF1
  38. MOVEMAIL_FLAGS        =
  39. PORT_FLAGS        = -D_REENTRANT -DHAVE_LCHOWN -DNEED_CDEFS_H -DNTOHL_ENDIAN_H -DNEED_IOCTL_H -DMACHINE_ENDIAN_H -DHAVE_VA_LIST_STRUCT -DNEED_BYTE_ALIGNMENT -DMITSHM -DNEED_REALPATH -DHAVE_WAITID -DNEED_H_ERRNO -DNEED_SYS_TIME_H -DHAVE_SYSTEMINFO_H -DNEED_SYS_PARAM_H -DHAVE_INT32_T -DODD_VA_START -DHAVE_REMAINDER
  40. PDJAVA_FLAGS        =
  41.  
  42. OS_CFLAGS        = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
  43.  
  44. LOCALE_MAP        = $(DEPTH)/cmd/xfe/intl/osf1.lm
  45. EN_LOCALE        = en_US.ISO8859-1
  46. DE_LOCALE        = de_DE.ISO8859-1
  47. FR_LOCALE        = fr_FR.ISO8859-1
  48. JP_LOCALE        = ja_JP.eucJP
  49. SJIS_LOCALE        = ja_JP.SJIS
  50. KR_LOCALE        = ko_KR.eucKR
  51. CN_LOCALE        = zh_CN
  52. TW_LOCALE        = zh_TW.eucTW
  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),V2)
  65. PORT_FLAGS        += -DNEED_TIME_R
  66. else
  67. OS_LIBS            += -lrt -lc_r
  68. endif
  69.  
  70. ifeq ($(OS_RELEASE),V3)
  71. PLATFORM_FLAGS        += -DOSF1V3
  72. endif
  73. ifeq ($(OS_RELEASE),V4)
  74. PLATFORM_FLAGS        += -DOSF1V4
  75. endif
  76.  
  77. ######################################################################
  78. # Overrides for defaults in config.mk (or wherever)
  79. ######################################################################
  80.  
  81. AR            = ar rcl $@
  82. CC            = cc -ieee_with_inexact -std
  83. CCC            = cxx -ieee_with_inexact -x cxx -cfront
  84. SHELL            = /usr/bin/ksh
  85. WHOAMI            = /bin/whoami
  86. UNZIP_PROG        = $(NS_BIN)unzip
  87. ZIP_PROG        = $(NS_BIN)zip
  88.  
  89. ######################################################################
  90. # Other
  91. ######################################################################
  92.  
  93. ifdef BUILD_OPT
  94. OPTIMIZER        += -Olimit 4000
  95. endif
  96.  
  97. ifeq ($(USE_KERNEL_THREADS),1)
  98. ifdef NSPR20
  99. PLATFORM_FLAGS        += -pthread
  100. OS_LIBS            += -lpthread
  101. else
  102. PLATFORM_FLAGS        += -threads
  103. PORT_FLAGS        += -DHW_THREADS
  104. endif
  105. else
  106. PORT_FLAGS        += -DSW_THREADS
  107. endif
  108.  
  109. BUILD_UNIX_PLUGINS    = 1
  110.  
  111. MKSHLIB            = $(LD) $(DSO_LDOPTS)
  112.  
  113. DSO_LDOPTS        = -shared -all -expect_unresolved "*"
  114. DSO_LDFLAGS        = -lXm -lXt -lX11 -lc
  115.