home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / Linux.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  3.9 KB  |  133 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 Linux (all architectures)
  20. ######################################################################
  21. #
  22. ######################################################################
  23. # Version-independent
  24. ######################################################################
  25.  
  26. ARCH            := linux
  27. ifeq (86,$(findstring 86,$(OS_TEST)))
  28. CPU_ARCH        := x86
  29. else
  30. CPU_ARCH        := $(OS_TEST)
  31. endif
  32. GFX_ARCH        := x
  33.  
  34. OS_INCLUDES        =
  35. G++INCLUDES        = -I/usr/include/g++
  36. LOC_LIB_DIR        = /usr/lib/X11
  37. MOTIF            =
  38. MOTIFLIB        =
  39. OS_LIBS            =
  40.  
  41. PLATFORM_FLAGS        = -ansi -Wall -pipe -DLINUX -Dlinux
  42. MOVEMAIL_FLAGS        = -DHAVE_STRERROR
  43. PORT_FLAGS        = -D_POSIX_SOURCE -D_BSD_SOURCE -DSW_THREADS -DNEED_ENDIAN_H -DNEED_GETOPT_H -DNEED_IOCTL_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DNEED_SYS_TIME_H -DHAVE_SYS_BITYPES_H -DNEED_UINT_T
  44. PDJAVA_FLAGS        = -mx128m
  45.  
  46. OS_CFLAGS        = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
  47.  
  48. LOCALE_MAP        = $(DEPTH)/cmd/xfe/intl/linux.lm
  49. EN_LOCALE        = C
  50. DE_LOCALE        = de_DE.ISO8859-1
  51. FR_LOCALE        = fr_FR.ISO8859-1
  52. JP_LOCALE        = ja
  53. SJIS_LOCALE        = ja_JP.SJIS
  54. KR_LOCALE        = ko_KR.EUC
  55. CN_LOCALE        = zh
  56. TW_LOCALE        = zh
  57. I2_LOCALE        = i2
  58.  
  59. ######################################################################
  60. # Version-specific stuff
  61. ######################################################################
  62.  
  63. ifeq ($(CPU_ARCH),alpha)
  64. PLATFORM_FLAGS        += -DLINUX1_2 -D__$(CPU_ARCH) -D_ALPHA_ 
  65. OS_INCLUDES        += -I/usr/X11R6/include
  66. PORT_FLAGS        += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
  67. OS_LIBS            += -L/lib -ldl -lc
  68. endif
  69. ifeq ($(CPU_ARCH),ppc)
  70. PLATFORM_FLAGS        += -DMKLINUX -DLINUX1_2 -D$(CPU_ARCH)
  71. OS_INCLUDES        += -I/usr/local/include -I/usr/X11R6/include
  72. endif
  73. ifeq ($(CPU_ARCH),sparc)
  74. PLATFORM_FLAGS        += -DLINUX1_2 -D$(CPU_ARCH)
  75. OS_INCLUDES        += -I/usr/X11R6/include
  76. endif
  77. ifeq ($(CPU_ARCH),x86)
  78. PLATFORM_FLAGS        += -mno-486 -DLINUX1_2 -Di386
  79. PORT_FLAGS        += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
  80. OS_INCLUDES        += -I/usr/X11R6/include
  81. OS_LIBS            += -L/lib -ldl -lc
  82. endif
  83.  
  84. # These are CPU_ARCH independent
  85. ifeq ($(OS_RELEASE),1.2)
  86. PORT_FLAGS        += -DNEED_SYS_WAIT_H
  87. endif
  88. ifeq ($(OS_RELEASE),2.0)
  89. PORT_FLAGS        += -DNO_INT64_T
  90. PLATFORM_FLAGS        += -DLINUX2_0
  91. BUILD_UNIX_PLUGINS    = 1
  92. MKSHLIB            = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
  93. ifdef BUILD_OPT
  94. OPTIMIZER        = -O2
  95. endif
  96. endif
  97.  
  98. ######################################################################
  99. # Overrides for defaults in config.mk (or wherever)
  100. ######################################################################
  101.  
  102. EMACS            = /bin/true
  103. JAVA_PROG        = $(JAVA_BIN)java
  104. PERL            = /usr/bin/perl
  105. PROCESSOR_ARCHITECTURE    = _$(CPU_ARCH)
  106. RANLIB            = /usr/bin/ranlib
  107.  
  108. ifneq ($(CPU_ARCH),ppc)
  109. UNZIP_PROG        = /usr/bin/unzip
  110. ZIP_PROG        = /usr/bin/zip
  111. endif
  112.  
  113. ######################################################################
  114. # Other
  115. ######################################################################
  116.  
  117. ifeq ($(USE_PTHREADS),1)
  118. PORT_FLAGS        += -D_REENTRANT -D_PR_NEED_FAKE_POLL
  119. else
  120. PORT_FLAGS        += -D_PR_LOCAL_THREADS_ONLY
  121. endif
  122.  
  123. NEED_XMOS        = 1
  124.  
  125. DSO_CFLAGS        = -fpic
  126. DSO_LDOPTS        = -shared
  127. DSO_LDFLAGS        =
  128.  
  129. ifeq ($(USE_JDK11),1)
  130. JAVA_HOME        = /usr/local/java
  131. JAVAC_ZIP        = $(JAVA_HOME)/lib/classes.zip
  132. endif 
  133.