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