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