Thu, 19 Mar 2009 13:25:19 -0700
Added tag jdk7-b51 for changeset 3eb8f1047a74
duke@1 | 1 | # |
duke@1 | 2 | # Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. |
duke@1 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | # |
duke@1 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | # under the terms of the GNU General Public License version 2 only, as |
duke@1 | 7 | # published by the Free Software Foundation. Sun designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
duke@1 | 9 | # by Sun in the LICENSE file that accompanied this code. |
duke@1 | 10 | # |
duke@1 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | # accompanied this code). |
duke@1 | 16 | # |
duke@1 | 17 | # You should have received a copy of the GNU General Public License version |
duke@1 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | # |
duke@1 | 21 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@1 | 22 | # CA 95054 USA or visit www.sun.com if you need additional information or |
duke@1 | 23 | # have any questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
duke@1 | 26 | # |
duke@1 | 27 | # Shared platform (OS/ARCH) variable settings for the JDK builds. |
duke@1 | 28 | # |
duke@1 | 29 | # Includes basic system requirements, versions of utilities required, |
duke@1 | 30 | # suffixes on files, and basic defaults attributed to the build platform. |
duke@1 | 31 | # |
duke@1 | 32 | |
duke@1 | 33 | # |
duke@1 | 34 | # Assumes some basic unix system utilities (e.g. uname) are in the search path |
duke@1 | 35 | # in order to figure out the system. |
duke@1 | 36 | # |
duke@1 | 37 | |
duke@1 | 38 | ifndef PLATFORM_SHARED |
duke@1 | 39 | |
duke@1 | 40 | PLATFORM_SHARED=done |
duke@1 | 41 | |
duke@1 | 42 | # Possible Input variables: |
duke@1 | 43 | # ARCH_DATA_MODEL 32 or 64, default to 32 |
duke@1 | 44 | # USER, LOGNAME user name (runs logname, or id if not set) |
duke@1 | 45 | # PROCESSOR_IDENTIFIER windows only: needed in environment |
duke@1 | 46 | # |
duke@1 | 47 | # (Also gets input by running the utilities uname, logname, isainfo, or id.) |
duke@1 | 48 | # |
duke@1 | 49 | # Variables set by this file: |
duke@1 | 50 | # SYSTEM_UNAME what 'uname' says this system is |
duke@1 | 51 | # USER login name of user (minus blanks) |
duke@1 | 52 | # PLATFORM windows, solaris, or linux |
duke@1 | 53 | # VARIANT OPT or DBG, OPT is the default |
duke@1 | 54 | # OS_NAME solaris, linux, or nt |
duke@1 | 55 | # OS_VERSION specific version of os, 5.10, 2.4.9-e.3, etc. |
duke@1 | 56 | # OS_VENDOR company name |
duke@1 | 57 | # TEMP_DISK /tmp or C:/temp |
duke@1 | 58 | # ARCH_DATA_MODEL 32 or 64 |
duke@1 | 59 | # ARCH sparc, sparcv9, i586, amd64, or ia64 |
duke@1 | 60 | # ARCH_FAMILY sparc or i586 |
duke@1 | 61 | # ARCHPROP sparc or x86 |
duke@1 | 62 | # ARCH_VM_SUBDIR jre/bin, jre/lib/sparc, etc. |
duke@1 | 63 | # LIBARCH sparc, sparcv9, i386, amd64, or ia64 |
duke@1 | 64 | # DEV_NULL destination of /dev/null, NUL or /dev/NULL |
duke@1 | 65 | # CLASSPATH_SEPARATOR separator in classpath, ; or : |
duke@1 | 66 | # LIB_PREFIX dynamic or static library prefix, lib or empty |
duke@1 | 67 | # LIB_SUFFIX static library file suffix, .lib or .a? |
duke@1 | 68 | # LIBRARY_SUFFIX dynamic library file suffix, .dll or .so |
duke@1 | 69 | # OBJECT_SUFFIX object file suffix, .o or .obj |
duke@1 | 70 | # EXE_SUFFIX executable file suffix, .exe or empty |
duke@1 | 71 | # BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz |
duke@1 | 72 | # ISA_DIR solaris only: /sparcv9 or /amd64 |
duke@1 | 73 | # LIBARCH32 solaris only: sparc or i386 |
duke@1 | 74 | # LIBARCH64 solaris only: sparcv9 or amd64 |
duke@1 | 75 | # REQUIRED_WINDOWS_NAME windows only: basic name of windows |
duke@1 | 76 | # REQUIRED_WINDOWS_VERSION windows only: specific version of windows |
duke@1 | 77 | # USING_CYGWIN windows only: true or false |
duke@1 | 78 | # WINDOWS_NT_VERSION_STRING windows only: long version name |
duke@1 | 79 | # REQUIRED_OS_VERSION required OS version, e.g. 5.10, 2.4 |
duke@1 | 80 | # REQUIRED_FREE_SPACE minimum disk space needed for outputdir |
duke@1 | 81 | # REQUIRED_ZIP_VER required version of zip |
duke@1 | 82 | # REQUIRED_UNZIP_VER required version of unzip |
duke@1 | 83 | # LINUX_VERSION_INFO linux only: location of linux release file |
duke@1 | 84 | # REQUIRED_LINUX_VER linux only: required version of linux |
duke@1 | 85 | # REQUIRED_LINUX_FULLVER linux only: required full version of linux |
duke@1 | 86 | |
duke@1 | 87 | SYSTEM_UNAME := $(shell uname) |
duke@1 | 88 | |
duke@1 | 89 | # Normal boot jdk is previous release, but a hard requirement is a 1.5 boot |
duke@1 | 90 | REQUIRED_BOOT_VER = 1.5 |
duke@1 | 91 | |
duke@1 | 92 | # |
duke@1 | 93 | # Prune out all known SCM (Source Code Management) directories |
duke@1 | 94 | # so they will not be included when copying directory trees |
duke@1 | 95 | # or packaging up .jar files, etc. This applies to all workspaces. |
duke@1 | 96 | # |
duke@1 | 97 | SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files |
duke@1 | 98 | # When changing SCM_DIRs also change SCM_DIRS_rexp and SCM_DIRS_prune: |
duke@1 | 99 | SCM_DIRS_rexp = ".hg|.svn|CVS|RCS|SCCS|Codemgr_wsdata|deleted_files" |
duke@1 | 100 | SCM_DIRS_prune = \( -name .hg -o -name .svn -o -name CVS -o -name RCS -o -name SCCS -o -name Codemgr_wsdata -o -name deleted_files \) -prune |
duke@1 | 101 | |
duke@1 | 102 | # Don't define this unless it's not defined |
duke@1 | 103 | ifndef VARIANT |
duke@1 | 104 | VARIANT=OPT |
duke@1 | 105 | endif |
duke@1 | 106 | |
duke@1 | 107 | # Platform settings specific to Solaris |
duke@1 | 108 | ifeq ($(SYSTEM_UNAME), SunOS) |
duke@1 | 109 | PLATFORM = solaris |
duke@1 | 110 | OS_NAME = solaris |
duke@1 | 111 | OS_VERSION := $(shell uname -r) |
duke@1 | 112 | # Solaris sparc build can be either 32-bit or 64-bit. |
duke@1 | 113 | # Default to 32, but allow explicit setting to 32 or 64. |
duke@1 | 114 | ifndef ARCH_DATA_MODEL |
duke@1 | 115 | ARCH_DATA_MODEL=32 |
duke@1 | 116 | endif |
duke@1 | 117 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 118 | processor := $(shell uname -p) |
duke@1 | 119 | archExpr = case "$(processor)" in \ |
duke@1 | 120 | i[3-9]86) \ |
duke@1 | 121 | echo i586 \ |
duke@1 | 122 | ;; \ |
duke@1 | 123 | sparc*) \ |
duke@1 | 124 | echo sparc \ |
duke@1 | 125 | ;; \ |
duke@1 | 126 | *) \ |
duke@1 | 127 | echo $(processor) \ |
duke@1 | 128 | ;; \ |
duke@1 | 129 | esac |
duke@1 | 130 | ARCH := $(shell $(archExpr)) |
duke@1 | 131 | else |
duke@1 | 132 | ARCH := $(shell isainfo -n) |
duke@1 | 133 | # ISA_DIR is used to locate 64-bit specific libraries which are generally |
duke@1 | 134 | # in the same general place as other libraries under the ./$(ARCH) directory |
duke@1 | 135 | ISA_DIR = /$(ARCH) |
duke@1 | 136 | endif |
duke@1 | 137 | # Need to maintain the jre/lib/i386 location for 32-bit Intel |
duke@1 | 138 | ifeq ($(ARCH), i586) |
duke@1 | 139 | ARCH_FAMILY = $(ARCH) |
duke@1 | 140 | LIBARCH = i386 |
duke@1 | 141 | # Value of Java os.arch property |
duke@1 | 142 | ARCHPROP = x86 |
duke@1 | 143 | else |
duke@1 | 144 | ifeq ($(ARCH), amd64) |
duke@1 | 145 | ARCH_FAMILY = i586 |
duke@1 | 146 | else |
duke@1 | 147 | ARCH_FAMILY = sparc |
duke@1 | 148 | endif |
duke@1 | 149 | LIBARCH = $(ARCH) |
duke@1 | 150 | # Value of Java os.arch property |
duke@1 | 151 | ARCHPROP = $(LIBARCH) |
duke@1 | 152 | endif |
duke@1 | 153 | # The two LIBARCH names |
duke@1 | 154 | ifeq ($(ARCH_FAMILY), sparc) |
duke@1 | 155 | LIBARCH32 = sparc |
duke@1 | 156 | LIBARCH64 = sparcv9 |
duke@1 | 157 | else |
duke@1 | 158 | LIBARCH32 = i386 |
duke@1 | 159 | LIBARCH64 = amd64 |
duke@1 | 160 | endif |
duke@1 | 161 | # Suffix for file bundles used in previous release |
duke@1 | 162 | BUNDLE_FILE_SUFFIX=.tar |
duke@1 | 163 | OS_VENDOR = Sun Microsystems |
duke@1 | 164 | # Required Solaris version |
duke@1 | 165 | REQUIRED_OS_VERSION = 5.10 |
duke@1 | 166 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 167 | # a fully built workspace. |
duke@1 | 168 | ifeq ($(ARCH_FAMILY), sparc) |
duke@1 | 169 | REQUIRED_FREE_SPACE=1300000 |
duke@1 | 170 | else |
duke@1 | 171 | REQUIRED_FREE_SPACE=1040000 |
duke@1 | 172 | endif |
duke@1 | 173 | # How much RAM does this machine have: |
duke@1 | 174 | MB_OF_MEMORY=$(shell /etc/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3) |
duke@1 | 175 | endif |
duke@1 | 176 | |
duke@1 | 177 | # Platform settings specific to Linux |
duke@1 | 178 | ifeq ($(SYSTEM_UNAME), Linux) |
duke@1 | 179 | PLATFORM = linux |
duke@1 | 180 | OS_NAME = linux |
duke@1 | 181 | OS_VERSION := $(shell uname -r) |
duke@1 | 182 | # Arch and OS name/version |
duke@1 | 183 | mach := $(shell uname -m) |
duke@1 | 184 | archExpr = case "$(mach)" in \ |
duke@1 | 185 | i[3-9]86) \ |
duke@1 | 186 | echo i586 \ |
duke@1 | 187 | ;; \ |
duke@1 | 188 | ia64) \ |
duke@1 | 189 | echo ia64 \ |
duke@1 | 190 | ;; \ |
duke@1 | 191 | x86_64) \ |
duke@1 | 192 | echo amd64 \ |
duke@1 | 193 | ;; \ |
duke@1 | 194 | sparc*) \ |
duke@1 | 195 | echo sparc \ |
duke@1 | 196 | ;; \ |
duke@1 | 197 | *) \ |
duke@1 | 198 | echo $(mach) \ |
duke@1 | 199 | ;; \ |
duke@1 | 200 | esac |
duke@1 | 201 | ARCH := $(shell $(archExpr) ) |
duke@1 | 202 | ARCH_FAMILY := $(ARCH) |
duke@1 | 203 | |
duke@1 | 204 | # Linux builds may be 32-bit or 64-bit data model. |
duke@1 | 205 | ifeq ($(ARCH), sparc) |
duke@1 | 206 | # Linux sparc build can be either 32-bit or 64-bit. |
duke@1 | 207 | # Default to 32, but allow explicit setting to 32 or 64. |
duke@1 | 208 | ifndef ARCH_DATA_MODEL |
duke@1 | 209 | ARCH_DATA_MODEL=32 |
duke@1 | 210 | endif |
duke@1 | 211 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 212 | ARCH=sparc |
duke@1 | 213 | else |
duke@1 | 214 | ARCH=sparcv9 |
duke@1 | 215 | endif |
duke@1 | 216 | else |
duke@1 | 217 | # i586 is 32-bit, amd64 is 64-bit |
duke@1 | 218 | ifndef ARCH_DATA_MODEL |
duke@1 | 219 | ifeq ($(ARCH), i586) |
duke@1 | 220 | ARCH_DATA_MODEL=32 |
duke@1 | 221 | else |
duke@1 | 222 | ARCH_DATA_MODEL=64 |
duke@1 | 223 | endif |
duke@1 | 224 | endif |
duke@1 | 225 | endif |
duke@1 | 226 | |
duke@1 | 227 | # Need to maintain the jre/lib/i386 location for 32-bit Intel |
duke@1 | 228 | ifeq ($(ARCH), i586) |
duke@1 | 229 | LIBARCH = i386 |
duke@1 | 230 | else |
duke@1 | 231 | LIBARCH = $(ARCH) |
duke@1 | 232 | endif |
duke@1 | 233 | |
duke@1 | 234 | # Value of Java os.arch property |
duke@1 | 235 | ARCHPROP = $(LIBARCH) |
duke@1 | 236 | |
duke@1 | 237 | # Suffix for file bundles used in previous release |
duke@1 | 238 | BUNDLE_FILE_SUFFIX=.tar.gz |
duke@1 | 239 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 240 | # a fully built workspace. |
duke@1 | 241 | REQUIRED_FREE_SPACE=1460000 |
duke@1 | 242 | LINUX_VERSION_INFO = /etc/redhat-release |
duke@1 | 243 | OS_VENDOR = Red Hat |
duke@1 | 244 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 245 | REQUIRED_LINUX_VER = Advanced Server |
duke@1 | 246 | REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS |
duke@1 | 247 | REQUIRED_OS_VERSION = 2.4.9-e.3 |
duke@1 | 248 | else |
duke@1 | 249 | ifeq ($(ARCH), amd64) |
duke@1 | 250 | LINUX_VERSION_INFO = /etc/SuSE-release |
duke@1 | 251 | OS_VENDOR = SuSE Enterprise |
duke@1 | 252 | REQUIRED_LINUX_VER = 8.1 |
duke@1 | 253 | REQUIRED_LINUX_FULLVER = $(REQUIRED_LINUX_VER) SLSE AMD64 |
duke@1 | 254 | REQUIRED_OS_VERSION = 2.4.19-SMP |
duke@1 | 255 | else |
duke@1 | 256 | REQUIRED_LINUX_VER = Advanced Server |
duke@1 | 257 | REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS 64 bit |
duke@1 | 258 | REQUIRED_OS_VERSION = 2.4.19-SMP |
duke@1 | 259 | endif |
duke@1 | 260 | endif |
duke@1 | 261 | # How much RAM does this machine have: |
duke@1 | 262 | MB_OF_MEMORY := $(shell free -m | fgrep Mem: | sed -e 's@\ \ *@ @g' | cut -d' ' -f2) |
duke@1 | 263 | endif |
duke@1 | 264 | |
duke@1 | 265 | # Windows with and without CYGWIN will be slightly different |
duke@1 | 266 | ifeq ($(SYSTEM_UNAME), Windows_NT) |
duke@1 | 267 | PLATFORM = windows |
duke@1 | 268 | OS_VERSION := $(shell uname -r) |
duke@1 | 269 | WINDOWS_NT_VERSION_STRING=Windows_NT |
duke@1 | 270 | REQUIRED_MKS_VER=6.1 |
duke@1 | 271 | endif |
duke@1 | 272 | ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME))) |
duke@1 | 273 | PLATFORM = windows |
duke@1 | 274 | OS_VERSION := 5 |
duke@1 | 275 | USING_CYGWIN = true |
duke@1 | 276 | export USING_CYGWIN |
duke@1 | 277 | WINDOWS_NT_VERSION_STRING=CYGWIN_NT |
duke@1 | 278 | REQUIRED_CYGWIN_VER=4.0 |
duke@1 | 279 | endif |
duke@1 | 280 | |
duke@1 | 281 | # Platform settings specific to Windows |
duke@1 | 282 | ifeq ($(PLATFORM), windows) |
duke@1 | 283 | OS_NAME = nt |
duke@1 | 284 | REQUIRED_OS_VERSION=5 |
duke@1 | 285 | # Windows builds default to the appropriate for the underlaying |
duke@1 | 286 | # architecture. |
duke@1 | 287 | # Temporary disk area |
duke@1 | 288 | TEMP_DISK=C:/temp |
duke@1 | 289 | # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always |
duke@1 | 290 | # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead. |
duke@1 | 291 | ifndef ARCH_DATA_MODEL |
duke@1 | 292 | ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64) |
duke@1 | 293 | ARCH_DATA_MODEL=64 |
duke@1 | 294 | else |
duke@1 | 295 | ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64) |
duke@1 | 296 | ARCH_DATA_MODEL=64 |
duke@1 | 297 | else |
duke@1 | 298 | ARCH_DATA_MODEL=32 |
duke@1 | 299 | endif |
duke@1 | 300 | endif |
duke@1 | 301 | endif |
duke@1 | 302 | export ARCH_DATA_MODEL |
duke@1 | 303 | # LIBARCH is used to preserve the jre/lib/i386 directory name for 32-bit intel |
duke@1 | 304 | ARCH=i586 |
duke@1 | 305 | LIBARCH=i386 |
duke@1 | 306 | # Value of Java os.arch property |
duke@1 | 307 | ARCHPROP=x86 |
duke@1 | 308 | REQUIRED_WINDOWS_NAME=Windows Professional 2000 |
duke@1 | 309 | REQUIRED_WINDOWS_VERSION=5 0 Service Pack 4 |
duke@1 | 310 | ifeq ($(ARCH_DATA_MODEL), 64) |
duke@1 | 311 | # If the user wants to perform a cross compile build then they must |
duke@1 | 312 | # - set ARCH_DATA_MODEL=64 and either |
duke@1 | 313 | # + set ARCH to ia64 or amd64, or |
duke@1 | 314 | REQUIRED_WINDOWS_NAME=Windows Server 2003 |
duke@1 | 315 | REQUIRED_WINDOWS_VERSION=5 2 Service Pack 1 |
duke@1 | 316 | ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)), AMD64) |
duke@1 | 317 | ARCH=amd64 |
duke@1 | 318 | else |
duke@1 | 319 | ARCH=ia64 |
duke@1 | 320 | endif |
duke@1 | 321 | LIBARCH=$(ARCH) |
duke@1 | 322 | # Value of Java os.arch property |
duke@1 | 323 | ARCHPROP=$(LIBARCH) |
duke@1 | 324 | endif |
duke@1 | 325 | ARCH_FAMILY = $(ARCH) |
duke@1 | 326 | # Where is unwanted output to be delivered? |
duke@1 | 327 | DEV_NULL = NUL |
duke@1 | 328 | export DEV_NULL |
duke@1 | 329 | # Classpath separator |
duke@1 | 330 | CLASSPATH_SEPARATOR = ; |
duke@1 | 331 | # The suffix used for object file (.o for unix .obj for windows) |
duke@1 | 332 | OBJECT_SUFFIX = obj |
duke@1 | 333 | # The suffix applied to executables (.exe for windows, nothing for solaris) |
duke@1 | 334 | EXE_SUFFIX = .exe |
duke@1 | 335 | # The prefix applied to library files (lib for solaris, nothing for windows) |
duke@1 | 336 | LIB_PREFIX= |
duke@1 | 337 | LIBRARY_SUFFIX = dll |
duke@1 | 338 | LIB_SUFFIX = lib |
duke@1 | 339 | # User name determination (set _USER) |
duke@1 | 340 | ifndef USER |
duke@1 | 341 | ifdef USERNAME |
duke@1 | 342 | _USER := $(USERNAME) |
duke@1 | 343 | else |
duke@1 | 344 | ifdef LOGNAME |
duke@1 | 345 | _USER := $(LOGNAME) |
duke@1 | 346 | else |
duke@1 | 347 | _USER := $(shell id -un) |
duke@1 | 348 | endif |
duke@1 | 349 | endif |
duke@1 | 350 | else |
duke@1 | 351 | _USER:=$(USER) |
duke@1 | 352 | endif |
duke@1 | 353 | # Location of client/server directories |
duke@1 | 354 | ARCH_VM_SUBDIR=jre/bin |
duke@1 | 355 | # Suffix for file bundles used in previous release |
duke@1 | 356 | BUNDLE_FILE_SUFFIX=.tar |
duke@1 | 357 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 358 | # a fully built workspace. |
duke@1 | 359 | REQUIRED_FREE_SPACE=500000 |
duke@1 | 360 | OS_VENDOR = Microsoft |
duke@1 | 361 | # How much RAM does this machine have: |
duke@1 | 362 | MB_OF_MEMORY := $(shell \ |
duke@1 | 363 | if [ -f "C:/cygwin/bin/free.exe" ] ; then \ |
duke@1 | 364 | ( C:/cygwin/bin/bash.exe -c "C:/cygwin/bin/free.exe -m" ) | \ |
duke@1 | 365 | grep Mem: | \ |
duke@1 | 366 | sed -e 's@\ \ *@ @g' | cut -d' ' -f2 ; \ |
duke@1 | 367 | else \ |
duke@1 | 368 | echo "512"; \ |
duke@1 | 369 | fi) |
duke@1 | 370 | endif |
duke@1 | 371 | |
duke@1 | 372 | # Machines with 512Mb or less of real memory are considered low memory |
duke@1 | 373 | # build machines and adjustments will be made to prevent excessing |
duke@1 | 374 | # system swapping during the build. |
duke@1 | 375 | # If we don't know, assume 512. Subtract 128 from MB for VM MAX. |
duke@1 | 376 | # Don't set VM max over 1024-128=896. |
duke@1 | 377 | ifneq ($(MB_OF_MEMORY),) |
duke@1 | 378 | LOW_MEMORY_MACHINE := $(shell \ |
duke@1 | 379 | if [ $(MB_OF_MEMORY) -le 512 ] ; then \ |
duke@1 | 380 | echo "true"; \ |
duke@1 | 381 | else \ |
duke@1 | 382 | echo "false"; \ |
duke@1 | 383 | fi) |
duke@1 | 384 | MAX_VM_MEMORY := $(shell \ |
duke@1 | 385 | if [ $(MB_OF_MEMORY) -le 1024 ] ; then \ |
duke@1 | 386 | expr $(MB_OF_MEMORY) '-' 128 ; \ |
duke@1 | 387 | else \ |
duke@1 | 388 | echo "896"; \ |
duke@1 | 389 | fi) |
duke@1 | 390 | MIN_VM_MEMORY := $(shell \ |
duke@1 | 391 | if [ $(MAX_VM_MEMORY) -le 128 ] ; then \ |
duke@1 | 392 | expr $(MAX_VM_MEMORY) '-' 8 ; \ |
duke@1 | 393 | else \ |
duke@1 | 394 | echo "128"; \ |
duke@1 | 395 | fi) |
duke@1 | 396 | else |
duke@1 | 397 | MB_OF_MEMORY := unknown |
duke@1 | 398 | LOW_MEMORY_MACHINE := true |
duke@1 | 399 | MAX_VM_MEMORY := 384 |
duke@1 | 400 | MIN_VM_MEMORY := 128 |
duke@1 | 401 | endif |
duke@1 | 402 | |
duke@1 | 403 | REQUIRED_ZIP_VER = 2.2 |
duke@1 | 404 | REQUIRED_UNZIP_VER = 5.12 |
duke@1 | 405 | REQUIRED_MAKE_VER = 3.78 |
duke@1 | 406 | |
duke@1 | 407 | # Unix type settings (same for all unix platforms) |
duke@1 | 408 | ifneq ($(PLATFORM), windows) |
duke@1 | 409 | # Temporary disk area |
duke@1 | 410 | TEMP_DISK=/tmp |
duke@1 | 411 | # Where is unwanted output to be delivered? |
duke@1 | 412 | DEV_NULL = /dev/null |
duke@1 | 413 | export DEV_NULL |
duke@1 | 414 | # Character used between entries in classpath |
duke@1 | 415 | CLASSPATH_SEPARATOR = : |
duke@1 | 416 | # suffix used for object file (.o for unix .obj for windows) |
duke@1 | 417 | OBJECT_SUFFIX = o |
duke@1 | 418 | # The suffix applied to runtime libraries |
duke@1 | 419 | LIBRARY_SUFFIX = so |
duke@1 | 420 | # The suffix applied to link libraries |
duke@1 | 421 | LIB_SUFFIX = so |
duke@1 | 422 | # The suffix applied to executables (.exe for windows, nothing for solaris) |
duke@1 | 423 | EXE_SUFFIX = |
duke@1 | 424 | # The prefix applied to library files (lib for solaris, nothing for windows) |
duke@1 | 425 | LIB_PREFIX = lib |
duke@1 | 426 | # User name determination (set _USER) |
duke@1 | 427 | ifndef USER |
duke@1 | 428 | ifdef LOGNAME |
duke@1 | 429 | _USER := $(LOGNAME) |
duke@1 | 430 | else |
duke@1 | 431 | _USER := $(shell logname) |
duke@1 | 432 | endif |
duke@1 | 433 | else |
duke@1 | 434 | _USER:=$(USER) |
duke@1 | 435 | endif |
duke@1 | 436 | # Location of client/server directories |
duke@1 | 437 | ARCH_VM_SUBDIR=jre/lib/$(LIBARCH) |
duke@1 | 438 | endif |
duke@1 | 439 | |
duke@1 | 440 | # If blanks in the username, use the first 4 words and pack them together |
duke@1 | 441 | _USER1:=$(subst ', ,$(_USER)) |
duke@1 | 442 | _USER2:=$(subst ", ,$(_USER1)) |
duke@1 | 443 | USER:=$(word 1,$(_USER2))$(word 2,$(_USER2))$(word 3,$(_USER2))$(word 4,$(_USER2)) |
duke@1 | 444 | export USER |
duke@1 | 445 | |
duke@1 | 446 | export PLATFORM |
duke@1 | 447 | endif |
duke@1 | 448 |