Thu, 07 Oct 2010 01:03:51 -0700
6948223: Corba issue, fail to reload object
Reviewed-by: asaha
duke@1 | 1 | # |
ohair@158 | 2 | # Copyright (c) 1997, 2009, Oracle and/or its affiliates. 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 |
ohair@158 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | # by Oracle 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 | # |
ohair@158 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | # 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 | # TEMP_DISK /tmp or C:/temp |
duke@1 | 57 | # ARCH_DATA_MODEL 32 or 64 |
duke@1 | 58 | # ARCH sparc, sparcv9, i586, amd64, or ia64 |
duke@1 | 59 | # ARCH_FAMILY sparc or i586 |
duke@1 | 60 | # ARCHPROP sparc or x86 |
duke@1 | 61 | # DEV_NULL destination of /dev/null, NUL or /dev/NULL |
duke@1 | 62 | # CLASSPATH_SEPARATOR separator in classpath, ; or : |
duke@1 | 63 | # BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz |
duke@1 | 64 | # ISA_DIR solaris only: /sparcv9 or /amd64 |
duke@1 | 65 | # REQUIRED_WINDOWS_NAME windows only: basic name of windows |
duke@1 | 66 | # REQUIRED_WINDOWS_VERSION windows only: specific version of windows |
duke@1 | 67 | # USING_CYGWIN windows only: true or false |
duke@1 | 68 | # WINDOWS_NT_VERSION_STRING windows only: long version name |
duke@1 | 69 | # REQUIRED_OS_VERSION required OS version, e.g. 5.10, 2.4 |
duke@1 | 70 | # REQUIRED_FREE_SPACE minimum disk space needed for outputdir |
duke@1 | 71 | # REQUIRED_ZIP_VER required version of zip |
duke@1 | 72 | # REQUIRED_UNZIP_VER required version of unzip |
duke@1 | 73 | # LINUX_VERSION_INFO linux only: location of linux release file |
duke@1 | 74 | # REQUIRED_LINUX_VER linux only: required version of linux |
duke@1 | 75 | # REQUIRED_LINUX_FULLVER linux only: required full version of linux |
duke@1 | 76 | |
ohair@114 | 77 | ifndef SYSTEM_UNAME |
ohair@114 | 78 | SYSTEM_UNAME := $(shell uname) |
ohair@114 | 79 | export SYSTEM_UNAME |
ohair@114 | 80 | endif |
duke@1 | 81 | |
duke@1 | 82 | # Normal boot jdk is previous release, but a hard requirement is a 1.5 boot |
duke@1 | 83 | REQUIRED_BOOT_VER = 1.5 |
duke@1 | 84 | |
duke@1 | 85 | # Don't define this unless it's not defined |
duke@1 | 86 | ifndef VARIANT |
duke@1 | 87 | VARIANT=OPT |
duke@1 | 88 | endif |
duke@1 | 89 | |
duke@1 | 90 | # Platform settings specific to Solaris |
duke@1 | 91 | ifeq ($(SYSTEM_UNAME), SunOS) |
duke@1 | 92 | PLATFORM = solaris |
duke@1 | 93 | OS_NAME = solaris |
duke@1 | 94 | OS_VERSION := $(shell uname -r) |
duke@1 | 95 | # Solaris sparc build can be either 32-bit or 64-bit. |
duke@1 | 96 | # Default to 32, but allow explicit setting to 32 or 64. |
duke@1 | 97 | ifndef ARCH_DATA_MODEL |
duke@1 | 98 | ARCH_DATA_MODEL=32 |
duke@1 | 99 | endif |
duke@1 | 100 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 101 | processor := $(shell uname -p) |
duke@1 | 102 | archExpr = case "$(processor)" in \ |
duke@1 | 103 | i[3-9]86) \ |
duke@1 | 104 | echo i586 \ |
duke@1 | 105 | ;; \ |
duke@1 | 106 | sparc*) \ |
duke@1 | 107 | echo sparc \ |
duke@1 | 108 | ;; \ |
duke@1 | 109 | *) \ |
duke@1 | 110 | echo $(processor) \ |
duke@1 | 111 | ;; \ |
duke@1 | 112 | esac |
duke@1 | 113 | ARCH := $(shell $(archExpr)) |
duke@1 | 114 | else |
duke@1 | 115 | ARCH := $(shell isainfo -n) |
duke@1 | 116 | # ISA_DIR is used to locate 64-bit specific libraries which are generally |
duke@1 | 117 | # in the same general place as other libraries under the ./$(ARCH) directory |
duke@1 | 118 | ISA_DIR = /$(ARCH) |
duke@1 | 119 | endif |
duke@1 | 120 | # Need to maintain the jre/lib/i386 location for 32-bit Intel |
duke@1 | 121 | ifeq ($(ARCH), i586) |
duke@1 | 122 | ARCH_FAMILY = $(ARCH) |
duke@1 | 123 | # Value of Java os.arch property |
duke@1 | 124 | ARCHPROP = x86 |
duke@1 | 125 | else |
duke@1 | 126 | ifeq ($(ARCH), amd64) |
duke@1 | 127 | ARCH_FAMILY = i586 |
duke@1 | 128 | else |
duke@1 | 129 | ARCH_FAMILY = sparc |
duke@1 | 130 | endif |
duke@1 | 131 | # Value of Java os.arch property |
ohair@194 | 132 | ARCHPROP = $(ARCH) |
duke@1 | 133 | endif |
duke@1 | 134 | # Suffix for file bundles used in previous release |
duke@1 | 135 | BUNDLE_FILE_SUFFIX=.tar |
duke@1 | 136 | # Required Solaris version |
duke@1 | 137 | REQUIRED_OS_VERSION = 5.10 |
duke@1 | 138 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 139 | # a fully built workspace. |
duke@1 | 140 | ifeq ($(ARCH_FAMILY), sparc) |
duke@1 | 141 | REQUIRED_FREE_SPACE=1300000 |
duke@1 | 142 | else |
duke@1 | 143 | REQUIRED_FREE_SPACE=1040000 |
duke@1 | 144 | endif |
duke@1 | 145 | # How much RAM does this machine have: |
duke@1 | 146 | MB_OF_MEMORY=$(shell /etc/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3) |
duke@1 | 147 | endif |
duke@1 | 148 | |
duke@1 | 149 | # Platform settings specific to Linux |
duke@1 | 150 | ifeq ($(SYSTEM_UNAME), Linux) |
duke@1 | 151 | PLATFORM = linux |
duke@1 | 152 | OS_NAME = linux |
duke@1 | 153 | OS_VERSION := $(shell uname -r) |
duke@1 | 154 | # Arch and OS name/version |
duke@1 | 155 | mach := $(shell uname -m) |
duke@1 | 156 | archExpr = case "$(mach)" in \ |
duke@1 | 157 | i[3-9]86) \ |
duke@1 | 158 | echo i586 \ |
duke@1 | 159 | ;; \ |
duke@1 | 160 | ia64) \ |
duke@1 | 161 | echo ia64 \ |
duke@1 | 162 | ;; \ |
duke@1 | 163 | x86_64) \ |
duke@1 | 164 | echo amd64 \ |
duke@1 | 165 | ;; \ |
duke@1 | 166 | sparc*) \ |
duke@1 | 167 | echo sparc \ |
duke@1 | 168 | ;; \ |
gbenson@129 | 169 | arm*) \ |
gbenson@129 | 170 | echo arm \ |
gbenson@129 | 171 | ;; \ |
duke@1 | 172 | *) \ |
duke@1 | 173 | echo $(mach) \ |
duke@1 | 174 | ;; \ |
duke@1 | 175 | esac |
duke@1 | 176 | ARCH := $(shell $(archExpr) ) |
duke@1 | 177 | ARCH_FAMILY := $(ARCH) |
duke@1 | 178 | |
duke@1 | 179 | # Linux builds may be 32-bit or 64-bit data model. |
duke@1 | 180 | ifeq ($(ARCH), sparc) |
duke@1 | 181 | # Linux sparc build can be either 32-bit or 64-bit. |
duke@1 | 182 | # Default to 32, but allow explicit setting to 32 or 64. |
duke@1 | 183 | ifndef ARCH_DATA_MODEL |
duke@1 | 184 | ARCH_DATA_MODEL=32 |
duke@1 | 185 | endif |
duke@1 | 186 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 187 | ARCH=sparc |
duke@1 | 188 | else |
duke@1 | 189 | ARCH=sparcv9 |
duke@1 | 190 | endif |
duke@1 | 191 | else |
duke@1 | 192 | # i586 is 32-bit, amd64 is 64-bit |
duke@1 | 193 | ifndef ARCH_DATA_MODEL |
duke@1 | 194 | ifeq ($(ARCH), i586) |
duke@1 | 195 | ARCH_DATA_MODEL=32 |
duke@1 | 196 | else |
duke@1 | 197 | ARCH_DATA_MODEL=64 |
duke@1 | 198 | endif |
duke@1 | 199 | endif |
duke@1 | 200 | endif |
duke@1 | 201 | |
duke@1 | 202 | ifeq ($(ARCH), i586) |
ohair@194 | 203 | ARCHPROP = i386 |
duke@1 | 204 | else |
ohair@194 | 205 | ARCHPROP = $(ARCH) |
duke@1 | 206 | endif |
duke@1 | 207 | |
duke@1 | 208 | # Suffix for file bundles used in previous release |
duke@1 | 209 | BUNDLE_FILE_SUFFIX=.tar.gz |
duke@1 | 210 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 211 | # a fully built workspace. |
duke@1 | 212 | REQUIRED_FREE_SPACE=1460000 |
duke@1 | 213 | LINUX_VERSION_INFO = /etc/redhat-release |
duke@1 | 214 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@1 | 215 | REQUIRED_LINUX_VER = Advanced Server |
duke@1 | 216 | REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS |
duke@1 | 217 | REQUIRED_OS_VERSION = 2.4.9-e.3 |
duke@1 | 218 | else |
duke@1 | 219 | ifeq ($(ARCH), amd64) |
duke@1 | 220 | LINUX_VERSION_INFO = /etc/SuSE-release |
duke@1 | 221 | REQUIRED_LINUX_VER = 8.1 |
duke@1 | 222 | REQUIRED_LINUX_FULLVER = $(REQUIRED_LINUX_VER) SLSE AMD64 |
duke@1 | 223 | REQUIRED_OS_VERSION = 2.4.19-SMP |
duke@1 | 224 | else |
duke@1 | 225 | REQUIRED_LINUX_VER = Advanced Server |
duke@1 | 226 | REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS 64 bit |
duke@1 | 227 | REQUIRED_OS_VERSION = 2.4.19-SMP |
duke@1 | 228 | endif |
duke@1 | 229 | endif |
duke@1 | 230 | # How much RAM does this machine have: |
duke@1 | 231 | MB_OF_MEMORY := $(shell free -m | fgrep Mem: | sed -e 's@\ \ *@ @g' | cut -d' ' -f2) |
duke@1 | 232 | endif |
duke@1 | 233 | |
duke@1 | 234 | # Windows with and without CYGWIN will be slightly different |
duke@1 | 235 | ifeq ($(SYSTEM_UNAME), Windows_NT) |
duke@1 | 236 | PLATFORM = windows |
duke@1 | 237 | OS_VERSION := $(shell uname -r) |
duke@1 | 238 | WINDOWS_NT_VERSION_STRING=Windows_NT |
duke@1 | 239 | REQUIRED_MKS_VER=6.1 |
duke@1 | 240 | endif |
duke@1 | 241 | ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME))) |
duke@1 | 242 | PLATFORM = windows |
duke@1 | 243 | OS_VERSION := 5 |
duke@1 | 244 | USING_CYGWIN = true |
duke@1 | 245 | export USING_CYGWIN |
duke@1 | 246 | WINDOWS_NT_VERSION_STRING=CYGWIN_NT |
duke@1 | 247 | REQUIRED_CYGWIN_VER=4.0 |
duke@1 | 248 | endif |
duke@1 | 249 | |
duke@1 | 250 | # Platform settings specific to Windows |
duke@1 | 251 | ifeq ($(PLATFORM), windows) |
duke@1 | 252 | OS_NAME = nt |
duke@1 | 253 | REQUIRED_OS_VERSION=5 |
duke@1 | 254 | # Windows builds default to the appropriate for the underlaying |
duke@1 | 255 | # architecture. |
duke@1 | 256 | # Temporary disk area |
duke@1 | 257 | TEMP_DISK=C:/temp |
duke@1 | 258 | # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always |
duke@1 | 259 | # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead. |
ohair@76 | 260 | PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER)) |
ohair@76 | 261 | PROC_ARCH:=$(subst x86,X86,$(PROC_ARCH)) |
ohair@76 | 262 | PROC_ARCH:=$(subst x64,X64,$(PROC_ARCH)) |
ohair@76 | 263 | PROC_ARCH:=$(subst intel64,X64,$(PROC_ARCH)) |
ohair@76 | 264 | PROC_ARCH:=$(subst Intel64,X64,$(PROC_ARCH)) |
ohair@76 | 265 | PROC_ARCH:=$(subst INTEL64,X64,$(PROC_ARCH)) |
ohair@76 | 266 | PROC_ARCH:=$(subst em64t,X64,$(PROC_ARCH)) |
ohair@76 | 267 | PROC_ARCH:=$(subst EM64T,X64,$(PROC_ARCH)) |
ohair@76 | 268 | PROC_ARCH:=$(subst amd64,X64,$(PROC_ARCH)) |
ohair@76 | 269 | PROC_ARCH:=$(subst AMD64,X64,$(PROC_ARCH)) |
ohair@76 | 270 | PROC_ARCH:=$(subst ia64,IA64,$(PROC_ARCH)) |
duke@1 | 271 | ifndef ARCH_DATA_MODEL |
ohair@76 | 272 | ifeq ($(PROC_ARCH),IA64) |
duke@1 | 273 | ARCH_DATA_MODEL=64 |
duke@1 | 274 | else |
ohair@76 | 275 | ifeq ($(PROC_ARCH),X64) |
duke@1 | 276 | ARCH_DATA_MODEL=64 |
duke@1 | 277 | else |
duke@1 | 278 | ARCH_DATA_MODEL=32 |
duke@1 | 279 | endif |
duke@1 | 280 | endif |
duke@1 | 281 | endif |
duke@1 | 282 | export ARCH_DATA_MODEL |
duke@1 | 283 | ARCH=i586 |
duke@1 | 284 | # Value of Java os.arch property |
duke@1 | 285 | ARCHPROP=x86 |
duke@1 | 286 | REQUIRED_WINDOWS_NAME=Windows Professional 2000 |
duke@1 | 287 | REQUIRED_WINDOWS_VERSION=5 0 Service Pack 4 |
duke@1 | 288 | ifeq ($(ARCH_DATA_MODEL), 64) |
duke@1 | 289 | # If the user wants to perform a cross compile build then they must |
duke@1 | 290 | # - set ARCH_DATA_MODEL=64 and either |
duke@1 | 291 | # + set ARCH to ia64 or amd64, or |
duke@1 | 292 | REQUIRED_WINDOWS_NAME=Windows Server 2003 |
duke@1 | 293 | REQUIRED_WINDOWS_VERSION=5 2 Service Pack 1 |
ohair@76 | 294 | ifeq ($(PROC_ARCH),X64) |
duke@1 | 295 | ARCH=amd64 |
duke@1 | 296 | else |
ohair@76 | 297 | ifeq ($(PROC_ARCH),IA64) |
ohair@76 | 298 | ARCH=ia64 |
ohair@76 | 299 | endif |
duke@1 | 300 | endif |
duke@1 | 301 | # Value of Java os.arch property |
ohair@194 | 302 | ARCHPROP=$(ARCH) |
duke@1 | 303 | endif |
duke@1 | 304 | ARCH_FAMILY = $(ARCH) |
duke@1 | 305 | # Where is unwanted output to be delivered? |
prr@150 | 306 | ifeq ($(USING_CYGWIN),true) |
prr@150 | 307 | DEV_NULL = /dev/null |
prr@150 | 308 | else |
prr@150 | 309 | DEV_NULL = NUL |
prr@150 | 310 | endif |
duke@1 | 311 | export DEV_NULL |
duke@1 | 312 | # Classpath separator |
duke@1 | 313 | CLASSPATH_SEPARATOR = ; |
duke@1 | 314 | # User name determination (set _USER) |
duke@1 | 315 | ifndef USER |
duke@1 | 316 | ifdef USERNAME |
duke@1 | 317 | _USER := $(USERNAME) |
duke@1 | 318 | else |
duke@1 | 319 | ifdef LOGNAME |
duke@1 | 320 | _USER := $(LOGNAME) |
duke@1 | 321 | else |
duke@1 | 322 | _USER := $(shell id -un) |
duke@1 | 323 | endif |
duke@1 | 324 | endif |
duke@1 | 325 | else |
duke@1 | 326 | _USER:=$(USER) |
duke@1 | 327 | endif |
duke@1 | 328 | # Suffix for file bundles used in previous release |
duke@1 | 329 | BUNDLE_FILE_SUFFIX=.tar |
duke@1 | 330 | # Minimum disk space needed as determined by running 'du -sk' on |
duke@1 | 331 | # a fully built workspace. |
duke@1 | 332 | REQUIRED_FREE_SPACE=500000 |
duke@1 | 333 | # How much RAM does this machine have: |
ohair@114 | 334 | ifndef MB_OF_MEMORY |
ohair@114 | 335 | MB_OF_MEMORY := $(shell \ |
ohair@114 | 336 | if [ -f "C:/cygwin/bin/free.exe" ] ; then \ |
ohair@114 | 337 | ( C:/cygwin/bin/bash.exe -c "C:/cygwin/bin/free.exe -m" ) | \ |
ohair@114 | 338 | grep Mem: | \ |
ohair@114 | 339 | sed -e 's@\ \ *@ @g' | cut -d' ' -f2 ; \ |
ohair@114 | 340 | else \ |
ohair@114 | 341 | echo "512"; \ |
ohair@114 | 342 | fi) |
ohair@114 | 343 | export MB_OF_MEMORY |
ohair@114 | 344 | endif |
duke@1 | 345 | endif |
duke@1 | 346 | |
duke@1 | 347 | # Machines with 512Mb or less of real memory are considered low memory |
duke@1 | 348 | # build machines and adjustments will be made to prevent excessing |
duke@1 | 349 | # system swapping during the build. |
duke@1 | 350 | # If we don't know, assume 512. Subtract 128 from MB for VM MAX. |
duke@1 | 351 | # Don't set VM max over 1024-128=896. |
ohair@114 | 352 | ifndef MAX_VM_MEMORY |
ohair@114 | 353 | ifneq ($(MB_OF_MEMORY),) |
ohair@114 | 354 | LOW_MEMORY_MACHINE := $(shell \ |
ohair@114 | 355 | if [ $(MB_OF_MEMORY) -le 512 ] ; then \ |
ohair@114 | 356 | echo "true"; \ |
ohair@114 | 357 | else \ |
ohair@114 | 358 | echo "false"; \ |
ohair@114 | 359 | fi) |
ohair@114 | 360 | MAX_VM_MEMORY := $(shell \ |
ohair@114 | 361 | if [ $(MB_OF_MEMORY) -le 1024 ] ; then \ |
ohair@114 | 362 | expr $(MB_OF_MEMORY) '-' 128 ; \ |
ohair@114 | 363 | else \ |
ohair@114 | 364 | echo "896"; \ |
ohair@114 | 365 | fi) |
ohair@114 | 366 | MIN_VM_MEMORY := $(shell \ |
ohair@114 | 367 | if [ $(MAX_VM_MEMORY) -le 128 ] ; then \ |
ohair@114 | 368 | expr $(MAX_VM_MEMORY) '-' 8 ; \ |
ohair@114 | 369 | else \ |
ohair@114 | 370 | echo "128"; \ |
ohair@114 | 371 | fi) |
ohair@114 | 372 | else |
ohair@114 | 373 | MB_OF_MEMORY := unknown |
ohair@114 | 374 | LOW_MEMORY_MACHINE := true |
ohair@114 | 375 | MAX_VM_MEMORY := 384 |
ohair@114 | 376 | MIN_VM_MEMORY := 128 |
ohair@114 | 377 | endif |
ohair@114 | 378 | export MAX_VM_MEMORY |
ohair@114 | 379 | export MIN_VM_MEMORY |
ohair@114 | 380 | export LOW_MEMORY_MACHINE |
ohair@114 | 381 | export MAX_VM_MEMORY |
duke@1 | 382 | endif |
duke@1 | 383 | |
duke@1 | 384 | REQUIRED_ZIP_VER = 2.2 |
duke@1 | 385 | REQUIRED_UNZIP_VER = 5.12 |
duke@1 | 386 | REQUIRED_MAKE_VER = 3.78 |
duke@1 | 387 | |
duke@1 | 388 | # Unix type settings (same for all unix platforms) |
duke@1 | 389 | ifneq ($(PLATFORM), windows) |
duke@1 | 390 | # Temporary disk area |
duke@1 | 391 | TEMP_DISK=/tmp |
duke@1 | 392 | # Where is unwanted output to be delivered? |
duke@1 | 393 | DEV_NULL = /dev/null |
duke@1 | 394 | export DEV_NULL |
duke@1 | 395 | # Character used between entries in classpath |
duke@1 | 396 | CLASSPATH_SEPARATOR = : |
duke@1 | 397 | # User name determination (set _USER) |
duke@1 | 398 | ifndef USER |
duke@1 | 399 | ifdef LOGNAME |
duke@1 | 400 | _USER := $(LOGNAME) |
duke@1 | 401 | else |
duke@1 | 402 | _USER := $(shell logname) |
duke@1 | 403 | endif |
duke@1 | 404 | else |
duke@1 | 405 | _USER:=$(USER) |
duke@1 | 406 | endif |
duke@1 | 407 | endif |
duke@1 | 408 | |
duke@1 | 409 | # If blanks in the username, use the first 4 words and pack them together |
duke@1 | 410 | _USER1:=$(subst ', ,$(_USER)) |
duke@1 | 411 | _USER2:=$(subst ", ,$(_USER1)) |
duke@1 | 412 | USER:=$(word 1,$(_USER2))$(word 2,$(_USER2))$(word 3,$(_USER2))$(word 4,$(_USER2)) |
duke@1 | 413 | export USER |
duke@1 | 414 | |
duke@1 | 415 | export PLATFORM |
duke@1 | 416 | endif |
duke@1 | 417 |