home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / config / ReliantUNIX.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  1.9 KB  |  75 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 ReliantUNIX
  18. #
  19.  
  20. include $(MOD_DEPTH)/config/UNIX.mk
  21.  
  22. # use gcc -tf-
  23. NS_USE_GCC        = 1
  24.  
  25. ifdef NS_USE_GCC
  26. ## gcc-2.7.2 homebrewn
  27. CC            = gcc
  28. COMPILER_TAG        = _gcc
  29. CCC            = g++
  30. AS            = $(CC) -x assembler-with-cpp
  31. LD            = gld
  32. ODD_CFLAGS        = -pipe -Wall -Wno-format
  33. ifdef BUILD_OPT
  34. OPTIMIZER        = -O
  35. #OPTIMIZER        = -O6
  36. endif
  37. MKSHLIB            = $(LD) -G -h $(@:$(OBJDIR)/%.so=%.so)
  38. DSO_LDOPTS        = -G -Xlinker -Blargedynsym
  39. else
  40. ## native compiler (CDS++ 1.0)
  41. CC            = /usr/bin/cc
  42. CCC            = /usr/bin/CC
  43. AS            = /usr/bin/cc
  44. #ODD_CFLAGS        = -fullwarn -xansi
  45. ODD_CFLAGS        = 
  46. ifdef BUILD_OPT
  47. #OPTIMIZER        = -Olimit 4000
  48. OPTIMIZER        = -O -F Olimit,4000
  49. endif
  50. MKSHLIB            = $(CC) -G -h $(@:$(OBJDIR)/%.so=%.so)
  51. DSO_LDOPTS        = -G -W l,-Blargedynsym
  52. endif
  53.  
  54. ODD_CFLAGS        += -DSVR4 -DSNI -DRELIANTUNIX -D_SVID_GETTOD
  55.  
  56. CPU_ARCH        = mips
  57.  
  58. RANLIB            = /bin/true
  59.  
  60. # For purify
  61. NOMD_OS_CFLAGS        = $(ODD_CFLAGS)
  62.  
  63. # we do not have -MDupdate ...
  64. OS_CFLAGS        = $(NOMD_OS_CFLAGS)
  65. OS_LIBS            = -lsocket -lnsl -lresolv -lgen -ldl -lc $(UCBLIB)
  66. UCBLIB            = -L/usr/ucblib -lucb
  67. NOSUCHFILE        = /no-such-file
  68.  
  69. HAVE_PURIFY        = 0
  70.  
  71. DEFINES            += -D_PR_LOCAL_THREADS_ONLY
  72. OS_CFLAGS        = $(ODD_CFLAGS) -DSVR4 -DSNI -Dsinix
  73.