home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / FreeBSD.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.8 KB  |  90 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 FreeBSD
  20. ######################################################################
  21. #
  22. ######################################################################
  23. # Version-independent
  24. ######################################################################
  25.  
  26. ARCH            := freebsd
  27. CPU_ARCH        := x86
  28. GFX_ARCH        := x
  29.  
  30. OS_INCLUDES        = -I/usr/X11R6/include
  31. G++INCLUDES        = -I/usr/include/g++
  32. LOC_LIB_DIR        =
  33. MOTIF            =
  34. MOTIFLIB        =
  35. OS_LIBS            =
  36.  
  37. # Don't define BSD, because it's already defined in /usr/include/sys/param.h.
  38. PLATFORM_FLAGS        = -DFREEBSD -DBSDI -DBSDI_2 -D__386BSD__ -Di386 $(DSO_CFLAGS)
  39. MOVEMAIL_FLAGS        = -DHAVE_STRERROR
  40. PORT_FLAGS        = -DSW_THREADS -DNEED_UINT -DHAVE_LCHOWN -DNTOHL_ENDIAN_H -DHAVE_FILIO_H -DNEED_SYS_TIME_H -DNEED_UINT_T -DHAVE_BSD_FLOCK
  41. PDJAVA_FLAGS        = -mx128m
  42. OS_GPROF_FLAGS        = -pg
  43. LD_FLAGS        = -L/usr/X11R6/lib -lXm
  44.  
  45. OS_CFLAGS        = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
  46.  
  47. LOCALE_MAP        = $(DEPTH)/cmd/xfe/intl/bsd386.lm
  48. EN_LOCALE        = C
  49. DE_LOCALE        = de_DE.ISO8859-1
  50. FR_LOCALE        = fr_FR.ISO8859-1
  51. JP_LOCALE        = ja
  52. SJIS_LOCALE        = ja_JP.SJIS
  53. KR_LOCALE        = ko_KR.EUC
  54. CN_LOCALE        = zh
  55. TW_LOCALE        = zh
  56. I2_LOCALE        = i2
  57.  
  58. ######################################################################
  59. # Version-specific stuff
  60. ######################################################################
  61.  
  62. ######################################################################
  63. # Overrides for defaults in config.mk (or wherever)
  64. ######################################################################
  65.  
  66. DLL_SUFFIX        = so.1.0
  67. EMACS            = /usr/bin/true
  68. JAVA_PROG        = $(JAVA_BIN)java
  69. RANLIB            = /usr/bin/ranlib
  70.  
  71. ######################################################################
  72. # Other
  73. ######################################################################
  74.  
  75. ifeq ($(USE_PTHREADS),1)
  76. OS_LIBS            = -lc_r
  77. PORT_FLAGS        += -D_PR_NEED_FAKE_POLL
  78. else
  79. OS_LIBS            = -lc
  80. PORT_FLAGS        += -D_PR_LOCAL_THREADS_ONLY
  81. endif
  82.  
  83. BUILD_UNIX_PLUGINS    = 1
  84.  
  85. MKSHLIB            = $(LD) $(DSO_LDOPTS)
  86.  
  87. DSO_CFLAGS        = -fpic
  88. DSO_LDFLAGS        = 
  89. DSO_LDOPTS        = -Bshareable
  90.