home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / config / AIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.4 KB  |  100 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 AIX.
  18. #
  19.  
  20. include $(MOD_DEPTH)/config/UNIX.mk
  21.  
  22. #
  23. # XXX
  24. # Temporary define for the Client; to be removed when binary release is used
  25. #
  26. ifdef MOZILLA_CLIENT
  27. CLASSIC_NSPR = 1
  28. endif
  29.  
  30. #
  31. # There are three implementation strategies available on AIX:
  32. # pthreads, classic, and pthreads-user.  The default is pthreads.
  33. ifeq ($(CLASSIC_NSPR),1)
  34.     PTHREADS_USER =
  35.     USE_PTHREADS =
  36.     IMPL_STRATEGY = _CLASSIC
  37.     DEFINES += -D_PR_LOCAL_THREADS_ONLY
  38. else
  39. ifeq ($(PTHREADS_USER),1)
  40.     USE_PTHREADS =
  41.     IMPL_STRATEGY = _PTH_USER
  42. else
  43.     USE_PTHREADS = 1
  44. endif
  45. endif
  46.  
  47. #
  48. # XXX
  49. # Temporary define for the Client; to be removed when binary release is used
  50. #
  51. ifdef MOZILLA_CLIENT
  52. IMPL_STRATEGY =
  53. endif
  54.  
  55. ifeq ($(CLASSIC_NSPR),1)
  56. CC        = xlC
  57. CCC        = xlC
  58. else
  59. CC        = xlC_r
  60. CCC        = xlC_r
  61. endif
  62.  
  63. CPU_ARCH    = rs6000
  64.  
  65. RANLIB        = ranlib
  66.  
  67. OS_CFLAGS     = -qro -qroconst -DAIX -DSYSV
  68. ifeq ($(CC),xlC_r)
  69. OS_CFLAGS     += -qarch=com
  70. endif
  71.  
  72. ifeq ($(OS_RELEASE),4.1)
  73. OS_CFLAGS    += -DAIX4_1
  74. else
  75. DSO_LDOPTS    = -brtl -bM:SRE -bnoentry -bexpall
  76. MKSHLIB        = $(LD) $(DSO_LDOPTS)
  77. ifeq ($(OS_RELEASE),4.3)
  78. OS_CFLAGS    += -DAIX4_3
  79. endif
  80. endif
  81.  
  82. #
  83. # Special link info for constructing AIX programs. On AIX we have to
  84. # statically link programs that use NSPR into a single .o, rewriting the
  85. # calls to select to call "aix". Once that is done we then can
  86. # link that .o with a .o built in nspr which implements the system call.
  87. #
  88. ifneq ($(OS_RELEASE),4.1)
  89. AIX_LINK_OPTS    = -brtl -bnso -berok
  90. else
  91. AIX_LINK_OPTS    = -bnso -berok
  92. #AIX_LINK_OPTS    = -bnso -berok -brename:.select,.wrap_select -brename:.poll,.wrap_poll -bI:/usr/lib/syscalls.exp
  93. endif
  94.  
  95. AIX_WRAP    = $(DIST)/lib/aixwrap.o
  96. AIX_TMP        = $(OBJDIR)/_aix_tmp.o
  97.