make/common/shared/Platform.gmk

changeset 194
0f60cf26c5b5
parent 163
1b5234624436
child 225
39e071e5adaf
equal deleted inserted replaced
185:519daea48888 194:0f60cf26c5b5
56 # TEMP_DISK /tmp or C:/temp 56 # TEMP_DISK /tmp or C:/temp
57 # ARCH_DATA_MODEL 32 or 64 57 # ARCH_DATA_MODEL 32 or 64
58 # ARCH sparc, sparcv9, i586, amd64, or ia64 58 # ARCH sparc, sparcv9, i586, amd64, or ia64
59 # ARCH_FAMILY sparc or i586 59 # ARCH_FAMILY sparc or i586
60 # ARCHPROP sparc or x86 60 # ARCHPROP sparc or x86
61 # ARCH_VM_SUBDIR jre/bin, jre/lib/sparc, etc.
62 # LIBARCH sparc, sparcv9, i386, amd64, or ia64
63 # DEV_NULL destination of /dev/null, NUL or /dev/NULL 61 # DEV_NULL destination of /dev/null, NUL or /dev/NULL
64 # CLASSPATH_SEPARATOR separator in classpath, ; or : 62 # CLASSPATH_SEPARATOR separator in classpath, ; or :
65 # LIB_PREFIX dynamic or static library prefix, lib or empty
66 # LIB_SUFFIX static library file suffix, .lib or .a?
67 # LIBRARY_SUFFIX dynamic library file suffix, .dll or .so
68 # OBJECT_SUFFIX object file suffix, .o or .obj
69 # EXE_SUFFIX executable file suffix, .exe or empty
70 # BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz 63 # BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz
71 # ISA_DIR solaris only: /sparcv9 or /amd64 64 # ISA_DIR solaris only: /sparcv9 or /amd64
72 # LIBARCH32 solaris only: sparc or i386
73 # LIBARCH64 solaris only: sparcv9 or amd64
74 # REQUIRED_WINDOWS_NAME windows only: basic name of windows 65 # REQUIRED_WINDOWS_NAME windows only: basic name of windows
75 # REQUIRED_WINDOWS_VERSION windows only: specific version of windows 66 # REQUIRED_WINDOWS_VERSION windows only: specific version of windows
76 # USING_CYGWIN windows only: true or false 67 # USING_CYGWIN windows only: true or false
77 # WINDOWS_NT_VERSION_STRING windows only: long version name 68 # WINDOWS_NT_VERSION_STRING windows only: long version name
78 # REQUIRED_OS_VERSION required OS version, e.g. 5.10, 2.4 69 # REQUIRED_OS_VERSION required OS version, e.g. 5.10, 2.4
127 ISA_DIR = /$(ARCH) 118 ISA_DIR = /$(ARCH)
128 endif 119 endif
129 # Need to maintain the jre/lib/i386 location for 32-bit Intel 120 # Need to maintain the jre/lib/i386 location for 32-bit Intel
130 ifeq ($(ARCH), i586) 121 ifeq ($(ARCH), i586)
131 ARCH_FAMILY = $(ARCH) 122 ARCH_FAMILY = $(ARCH)
132 LIBARCH = i386
133 # Value of Java os.arch property 123 # Value of Java os.arch property
134 ARCHPROP = x86 124 ARCHPROP = x86
135 else 125 else
136 ifeq ($(ARCH), amd64) 126 ifeq ($(ARCH), amd64)
137 ARCH_FAMILY = i586 127 ARCH_FAMILY = i586
138 else 128 else
139 ARCH_FAMILY = sparc 129 ARCH_FAMILY = sparc
140 endif 130 endif
141 LIBARCH = $(ARCH)
142 # Value of Java os.arch property 131 # Value of Java os.arch property
143 ARCHPROP = $(LIBARCH) 132 ARCHPROP = $(ARCH)
144 endif
145 # The two LIBARCH names
146 ifeq ($(ARCH_FAMILY), sparc)
147 LIBARCH32 = sparc
148 LIBARCH64 = sparcv9
149 else
150 LIBARCH32 = i386
151 LIBARCH64 = amd64
152 endif 133 endif
153 # Suffix for file bundles used in previous release 134 # Suffix for file bundles used in previous release
154 BUNDLE_FILE_SUFFIX=.tar 135 BUNDLE_FILE_SUFFIX=.tar
155 # Required Solaris version 136 # Required Solaris version
156 REQUIRED_OS_VERSION = 5.10 137 REQUIRED_OS_VERSION = 5.10
216 ARCH_DATA_MODEL=64 197 ARCH_DATA_MODEL=64
217 endif 198 endif
218 endif 199 endif
219 endif 200 endif
220 201
221 # Need to maintain the jre/lib/i386 location for 32-bit Intel
222 ifeq ($(ARCH), i586) 202 ifeq ($(ARCH), i586)
223 LIBARCH = i386 203 ARCHPROP = i386
224 else 204 else
225 LIBARCH = $(ARCH) 205 ARCHPROP = $(ARCH)
226 endif 206 endif
227
228 # Value of Java os.arch property
229 ARCHPROP = $(LIBARCH)
230 207
231 # Suffix for file bundles used in previous release 208 # Suffix for file bundles used in previous release
232 BUNDLE_FILE_SUFFIX=.tar.gz 209 BUNDLE_FILE_SUFFIX=.tar.gz
233 # Minimum disk space needed as determined by running 'du -sk' on 210 # Minimum disk space needed as determined by running 'du -sk' on
234 # a fully built workspace. 211 # a fully built workspace.
301 ARCH_DATA_MODEL=32 278 ARCH_DATA_MODEL=32
302 endif 279 endif
303 endif 280 endif
304 endif 281 endif
305 export ARCH_DATA_MODEL 282 export ARCH_DATA_MODEL
306 # LIBARCH is used to preserve the jre/lib/i386 directory name for 32-bit intel
307 ARCH=i586 283 ARCH=i586
308 LIBARCH=i386
309 # Value of Java os.arch property 284 # Value of Java os.arch property
310 ARCHPROP=x86 285 ARCHPROP=x86
311 REQUIRED_WINDOWS_NAME=Windows Professional 2000 286 REQUIRED_WINDOWS_NAME=Windows Professional 2000
312 REQUIRED_WINDOWS_VERSION=5 0 Service Pack 4 287 REQUIRED_WINDOWS_VERSION=5 0 Service Pack 4
313 ifeq ($(ARCH_DATA_MODEL), 64) 288 ifeq ($(ARCH_DATA_MODEL), 64)
321 else 296 else
322 ifeq ($(PROC_ARCH),IA64) 297 ifeq ($(PROC_ARCH),IA64)
323 ARCH=ia64 298 ARCH=ia64
324 endif 299 endif
325 endif 300 endif
326 LIBARCH=$(ARCH)
327 # Value of Java os.arch property 301 # Value of Java os.arch property
328 ARCHPROP=$(LIBARCH) 302 ARCHPROP=$(ARCH)
329 endif 303 endif
330 ARCH_FAMILY = $(ARCH) 304 ARCH_FAMILY = $(ARCH)
331 # Where is unwanted output to be delivered? 305 # Where is unwanted output to be delivered?
332 ifeq ($(USING_CYGWIN),true) 306 ifeq ($(USING_CYGWIN),true)
333 DEV_NULL = /dev/null 307 DEV_NULL = /dev/null
335 DEV_NULL = NUL 309 DEV_NULL = NUL
336 endif 310 endif
337 export DEV_NULL 311 export DEV_NULL
338 # Classpath separator 312 # Classpath separator
339 CLASSPATH_SEPARATOR = ; 313 CLASSPATH_SEPARATOR = ;
340 # The suffix used for object file (.o for unix .obj for windows)
341 OBJECT_SUFFIX = obj
342 # The suffix applied to executables (.exe for windows, nothing for solaris)
343 EXE_SUFFIX = .exe
344 # The prefix applied to library files (lib for solaris, nothing for windows)
345 LIB_PREFIX=
346 LIBRARY_SUFFIX = dll
347 LIB_SUFFIX = lib
348 # User name determination (set _USER) 314 # User name determination (set _USER)
349 ifndef USER 315 ifndef USER
350 ifdef USERNAME 316 ifdef USERNAME
351 _USER := $(USERNAME) 317 _USER := $(USERNAME)
352 else 318 else
357 endif 323 endif
358 endif 324 endif
359 else 325 else
360 _USER:=$(USER) 326 _USER:=$(USER)
361 endif 327 endif
362 # Location of client/server directories
363 ARCH_VM_SUBDIR=jre/bin
364 # Suffix for file bundles used in previous release 328 # Suffix for file bundles used in previous release
365 BUNDLE_FILE_SUFFIX=.tar 329 BUNDLE_FILE_SUFFIX=.tar
366 # Minimum disk space needed as determined by running 'du -sk' on 330 # Minimum disk space needed as determined by running 'du -sk' on
367 # a fully built workspace. 331 # a fully built workspace.
368 REQUIRED_FREE_SPACE=500000 332 REQUIRED_FREE_SPACE=500000
428 # Where is unwanted output to be delivered? 392 # Where is unwanted output to be delivered?
429 DEV_NULL = /dev/null 393 DEV_NULL = /dev/null
430 export DEV_NULL 394 export DEV_NULL
431 # Character used between entries in classpath 395 # Character used between entries in classpath
432 CLASSPATH_SEPARATOR = : 396 CLASSPATH_SEPARATOR = :
433 # suffix used for object file (.o for unix .obj for windows)
434 OBJECT_SUFFIX = o
435 # The suffix applied to runtime libraries
436 LIBRARY_SUFFIX = so
437 # The suffix applied to link libraries
438 LIB_SUFFIX = so
439 # The suffix applied to executables (.exe for windows, nothing for solaris)
440 EXE_SUFFIX =
441 # The prefix applied to library files (lib for solaris, nothing for windows)
442 LIB_PREFIX = lib
443 # User name determination (set _USER) 397 # User name determination (set _USER)
444 ifndef USER 398 ifndef USER
445 ifdef LOGNAME 399 ifdef LOGNAME
446 _USER := $(LOGNAME) 400 _USER := $(LOGNAME)
447 else 401 else
448 _USER := $(shell logname) 402 _USER := $(shell logname)
449 endif 403 endif
450 else 404 else
451 _USER:=$(USER) 405 _USER:=$(USER)
452 endif 406 endif
453 # Location of client/server directories
454 ARCH_VM_SUBDIR=jre/lib/$(LIBARCH)
455 endif 407 endif
456 408
457 # If blanks in the username, use the first 4 words and pack them together 409 # If blanks in the username, use the first 4 words and pack them together
458 _USER1:=$(subst ', ,$(_USER)) 410 _USER1:=$(subst ', ,$(_USER))
459 _USER2:=$(subst ", ,$(_USER1)) 411 _USER2:=$(subst ", ,$(_USER1))

mercurial