home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / AIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  4.2 KB  |  131 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 IBM AIX for RS/6000 and PPC
  20. ######################################################################
  21. #
  22. ######################################################################
  23. # Version-independent
  24. ######################################################################
  25.  
  26. ARCH            := aix
  27. CPU_ARCH        := rs6000  # How can I determine this?
  28. GFX_ARCH        := x
  29.  
  30. OS_INCLUDES        =
  31. G++INCLUDES        =
  32. LOC_LIB_DIR        = /usr/lib/X11
  33. MOTIF            =
  34. MOTIFLIB        = -lXm
  35. OS_LIBS            = -lm -lbsd
  36.  
  37. PLATFORM_FLAGS        = -qarch=com -qmaxmem=65536 -DAIX -Daix
  38. MOVEMAIL_FLAGS        =
  39. PORT_FLAGS        = -DSYSV -DNEED_CDEFS_H -DNEED_SELECT_H -DNEED_IOCTL_H -DSYS_MACHINE_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DHAVE_SYS_SELECT_H -DNEED_SYS_WAIT_H -DHAVE_INT32_T -DNEED_H_ERRNO
  40. PDJAVA_FLAGS        =
  41.  
  42. OS_CFLAGS        = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
  43.  
  44. LOCALE_MAP        = $(DEPTH)/cmd/xfe/intl/aix.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.IBM-eucJP
  49. SJIS_LOCALE        = Ja_JP.IBM-932
  50. KR_LOCALE        = ko_KR.IBM-eucKR
  51. CN_LOCALE        = zh_CN
  52. TW_LOCALE        = zh_TW.IBM-eucTW
  53. I2_LOCALE        = iso88592
  54.  
  55. ######################################################################
  56. # Version-specific stuff
  57. ######################################################################
  58.  
  59. ifeq ($(OS_RELEASE),3.2)
  60. PLATFORM_FLAGS        += -qtune=601 -DAIXV3 -DAIX3_2_5
  61. PORT_FLAGS        += -DSW_THREADS
  62. else
  63. PLATFORM_FLAGS        += -qtune=604 -qnosom -DAIXV4
  64. endif
  65. ifeq ($(OS_RELEASE),4.1)
  66. PLATFORM_FLAGS        += -DAIX4_1
  67. PORT_FLAGS        += -DSW_THREADS
  68. OS_LIBS            += -lsvld 
  69. DSO_LDOPTS        = -bM:SRE -bh:4 -bnoentry
  70. AIX_NSPR        = $(DIST)/bin/libnspr_shr.a
  71. LIBNSPR            = $(AIX_NSPR)
  72. AIX_NSPR_LINK        = -L$(DIST)/bin -lnspr_shr -blibpath:/usr/local/lib/netscape:/usr/lib:/lib:.
  73. #
  74. # Used to link java, javah.  Include 3 relative paths since we're guessing
  75. # at runtime where the hell the library is.  LIBPATH can be set, but
  76. # setting this will be hell for release people, _AND_ I couldn't get it to 
  77. # work.  Sigh. -mcafee
  78. #
  79. AIX_NSPR_DIST_LINK    = -L$(DIST)/bin -lnspr_shr -blibpath:.:../dist/$(OBJDIR)/bin:../../dist/$(OBJDIR)/bin:../../../dist/$(OBJDIR)/bin:/usr/lib:/lib
  80. endif
  81. ifneq (,$(filter 4.2 4.3,$(OS_RELEASE)))
  82. PORT_FLAGS        += -DHW_THREADS -DUSE_PTHREADS -DPOSIX7
  83. OS_LIBS            += -ldl 
  84. MKSHLIB            = $(LD) $(DSO_LDOPTS)
  85. DSO_LDOPTS        = -brtl -bM:SRE -bnoentry -bexpall
  86. ifeq ($(OS_RELEASE),4.2)
  87. PLATFORM_FLAGS        += -DAIX4_2
  88. endif
  89. ifeq ($(OS_RELEASE),4.3)
  90. PLATFORM_FLAGS        += -DAIX4_3
  91. endif
  92. endif
  93.  
  94. ######################################################################
  95. # Overrides for defaults in config.mk (or wherever)
  96. ######################################################################
  97.  
  98. CC            = cc
  99. CCC            = xlC -+
  100. BSDECHO            = $(DIST)/bin/bsdecho
  101. RANLIB            = /usr/ccs/bin/ranlib
  102. WHOAMI            = /bin/whoami
  103.  
  104. ifneq ($(OS_RELEASE),3.2)
  105. UNZIP_PROG        = $(CONTRIB_BIN)unzip
  106. ZIP_PROG        = $(CONTRIB_BIN)zip
  107. endif
  108.  
  109. ######################################################################
  110. # Other
  111. ######################################################################
  112.  
  113. ifdef SERVER_BUILD
  114. CC            = xlC_r
  115. # In order to automatically generate export lists, we need to use -g with -O
  116. OPTIMIZER        = -g -O
  117. PORT_FLAGS        += -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -DFD_SETSIZE=4096
  118. endif
  119.  
  120. #ifeq ($(PTHREADS_USER),1)
  121. #USE_PTHREADS        =
  122. #else
  123. #USE_PTHREADS        = 1
  124. #endif
  125.  
  126. MUST_BOOTLEG_ALLOCA    = 1
  127. BUILD_UNIX_PLUGINS    = 1 
  128.  
  129. DSO_LDFLAGS        = -lXm -lXt -lX11
  130. EXTRA_DSO_LDOPTS    = -lc
  131.