jdk/make/common/shared/Platform.gmk
author ohair
Sat, 31 Jan 2009 17:31:21 -0800
changeset 2158 68869a085470
parent 890 7336798a900d
child 2300 103e268e2d16
permissions -rw-r--r--
6799141: Build with --hash-style=both so that binaries can work on SuSE 10 Reviewed-by: tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 141
diff changeset
     2
# Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
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
#     TEMP_DISK                   /tmp or C:/temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
#     ARCH_DATA_MODEL             32 or 64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#     ARCH                        sparc, sparcv9, i586, amd64, or ia64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#     ARCH_FAMILY                 sparc or i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
#     ARCHPROP                    sparc or x86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#     ARCH_VM_SUBDIR              jre/bin, jre/lib/sparc, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#     LIBARCH                     sparc, sparcv9, i386, amd64, or ia64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#     DEV_NULL                    destination of /dev/null, NUL or /dev/NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
#     CLASSPATH_SEPARATOR         separator in classpath, ; or :
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#     LIB_PREFIX                  dynamic or static library prefix, lib or empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#     LIB_SUFFIX                  static library file suffix, .lib or .a?
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#     LIBRARY_SUFFIX              dynamic library file suffix, .dll or .so
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#     OBJECT_SUFFIX               object file suffix, .o or .obj
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#     EXE_SUFFIX                  executable file suffix, .exe or empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#     BUNDLE_FILE_SUFFIX          suffix for bundles: .tar or .tar.gz
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#     ISA_DIR                     solaris only: /sparcv9 or /amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#     LIBARCH32                   solaris only: sparc or i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#     LIBARCH64                   solaris only: sparcv9 or amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#     USING_CYGWIN                windows only: true or false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#     ISHIELD_TEMP_MIN            windows only: minimum disk space in temp area
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
SYSTEM_UNAME := $(shell uname)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
# Prune out all known SCM (Source Code Management) directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
# so they will not be included when copying directory trees
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
# or packaging up .jar files, etc.  This applies to all workspaces.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#
31
a8fdfca90643 6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents: 26
diff changeset
    82
SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files .hgignore .hgtags
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
# When changing SCM_DIRs also change SCM_DIRS_rexp and SCM_DIRS_prune:
31
a8fdfca90643 6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents: 26
diff changeset
    84
SCM_DIRS_rexp = ".hg|.svn|CVS|RCS|SCCS|Codemgr_wsdata|deleted_files|.hgignore|.hgtags"
a8fdfca90643 6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents: 26
diff changeset
    85
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 -o -name .hgignore -o -name .hgtags \) -prune
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
# Don't define this unless it's not defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
ifndef VARIANT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
  VARIANT=OPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
# Platform settings specific to Solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
ifeq ($(SYSTEM_UNAME), SunOS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
  PLATFORM = solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
  # Solaris sparc build can be either 32-bit or 64-bit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
  #   Default to 32, but allow explicit setting to 32 or 64.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
  ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    processor := $(shell uname -p)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    archExpr = case "$(processor)" in  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                i[3-9]86) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                    echo i586 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                sparc*)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                    echo sparc \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                *) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                    echo $(processor)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    ARCH        := $(shell $(archExpr))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    ARCH := $(shell isainfo -n)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    # ISA_DIR is used to locate 64-bit specific libraries which are generally
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    # in the same general place as other libraries under the ./$(ARCH) directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    ISA_DIR = /$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
  # Need to maintain the jre/lib/i386 location for 32-bit Intel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
  ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     ARCH_FAMILY = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     LIBARCH     = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     ARCHPROP    = x86
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        ARCH_FAMILY = i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        ARCH_FAMILY = sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     LIBARCH  = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     ARCHPROP = $(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
  # The two LIBARCH names
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
  ifeq ($(ARCH_FAMILY), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    LIBARCH32 = sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    LIBARCH64 = sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    LIBARCH32 = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    LIBARCH64 = amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
  BUNDLE_FILE_SUFFIX=.tar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
  # How much RAM does this machine have:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
  MB_OF_MEMORY=$(shell /etc/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
# Platform settings specific to Linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
ifeq ($(SYSTEM_UNAME), Linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  PLATFORM = linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
  # Arch and OS name/version
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
  mach := $(shell uname -m)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
  archExpr = case "$(mach)" in \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                i[3-9]86) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                    echo i586 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                ia64) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                    echo ia64 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                x86_64) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                    echo amd64 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                sparc*) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                    echo sparc \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                *) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    echo $(mach) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
      esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
  ARCH        := $(shell $(archExpr) )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
  ARCH_FAMILY := $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
  # Linux builds may be 32-bit or 64-bit data model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  ifeq ($(ARCH), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    # Linux sparc build can be either 32-bit or 64-bit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    #   Default to 32, but allow explicit setting to 32 or 64.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
      ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
      ARCH=sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
      ARCH=sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    # i586 is 32-bit, amd64 is 64-bit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
      ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  # Need to maintain the jre/lib/i386 location for 32-bit Intel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
  ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    LIBARCH = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    LIBARCH = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
  # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
  ARCHPROP  = $(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
  BUNDLE_FILE_SUFFIX=.tar.gz
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
  # How much RAM does this machine have:
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   211
  MB_OF_MEMORY := $(shell free -m | fgrep Mem: | awk '{print $$2;}' )
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
# Windows with and without CYGWIN will be slightly different
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
ifeq ($(SYSTEM_UNAME), Windows_NT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  PLATFORM = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
  PLATFORM = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
  USING_CYGWIN = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
  export USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
# Platform settings specific to Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
  # Windows builds default to the appropriate for the underlaying
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
  # architecture.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  # Temporary disk area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
  TEMP_DISK=C:/temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
  # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
  # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
  ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
      ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
      ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
  export ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    # If the user wants to perform a cross compile build then they must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    # - set ARCH_DATA_MODEL=64 and either
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    #      + set ARCH to ia64 or amd64, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)), AMD64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
      ARCH=amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
      ARCH=ia64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    LIBARCH=$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    ARCHPROP=$(LIBARCH)
799
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   256
  else
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   257
    # LIBARCH is used to preserve the jre/lib/i386 directory name for 32-bit intel
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   258
    ARCH=i586
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   259
    LIBARCH=i386
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   260
    # Value of Java os.arch property
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   261
    ARCHPROP=x86
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
  ARCH_FAMILY = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
  # Where is unwanted output to be delivered?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
  DEV_NULL = NUL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
  export DEV_NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
  # Classpath separator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
  CLASSPATH_SEPARATOR = ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
  # The suffix used for object file (.o for unix .obj for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
  OBJECT_SUFFIX = obj
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
  # The suffix applied to executables (.exe for windows, nothing for solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
  EXE_SUFFIX = .exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
  # The prefix applied to library files (lib for solaris, nothing for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
  LIB_PREFIX=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
  LIBRARY_SUFFIX = dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
  LIB_SUFFIX     = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
  # User name determination (set _USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
  ifndef USER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
    ifdef USERNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
      _USER := $(USERNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
      ifdef LOGNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
        _USER := $(LOGNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        _USER := $(shell id -un)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    _USER:=$(USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
  # Location of client/server directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
  ARCH_VM_SUBDIR=jre/bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
  BUNDLE_FILE_SUFFIX=.tar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
  # ISHIELD_TEMP_MIN is the difference of an empty C:\TEMP vs. one after a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
  #     bundles build on windows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
  ISHIELD_TEMP_MIN=250000
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
  # How much RAM does this machine have:
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   299
  ifeq ($(JDK_HAS_MEM_INFO),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   300
    ifeq ($(USING_CYGWIN),true)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   301
      # CYGWIN has the 'free' utility
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   302
      _MB_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   303
	   $(shell free -m | grep Mem: | awk '{print $$2;}' )
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   304
    else
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   305
      # Windows 2000 has the mem utility, but two memory areas
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   306
      #    extended memory is what is beyond 1024M
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   307
      _B_OF_EXT_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   308
	   $(shell mem 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   309
		   grep 'total contiguous extended memory' | awk '{print $$1;}')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   310
      ifeq ($(_B_OF_EXT_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   311
          _B_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   312
	   $(shell mem 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   313
		   grep 'total conventional memory' | awk '{print $$1;}')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   314
      else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   315
        _B_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   316
           $(shell expr 1048576 '+' $(_B_OF_EXT_MEMORY) 2> $(DEV_NULL))
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   317
      endif
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   318
      ifeq ($(_B_OF_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   319
        # Windows 2003 has the systeminfo utility use it if mem doesn't work
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   320
        _MB_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   321
	    $(shell systeminfo 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   322
		    grep 'Total Physical Memory:' | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   323
		    awk '{print $$4;}' | sed -e 's@,@@')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   324
      else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   325
        _MB_OF_MEMORY := $(shell expr $(_B_OF_MEMORY) '/' 1024 2> $(DEV_NULL))
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   326
      endif
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   327
    endif
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   328
    ifeq ($(shell expr $(_MB_OF_MEMORY) '+' 0 2> $(DEV_NULL)), $(_MB_OF_MEMORY))
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   329
      MB_OF_MEMORY := $(_MB_OF_MEMORY)
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   330
    else
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   331
      MB_OF_MEMORY := 512
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   332
    endif
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   333
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
# Unix type settings (same for all unix platforms)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
  # Temporary disk area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
  TEMP_DISK=/tmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
  # Where is unwanted output to be delivered?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
  DEV_NULL = /dev/null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
  export DEV_NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
  # Character used between entries in classpath 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
  CLASSPATH_SEPARATOR = :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
  # suffix used for object file (.o for unix .obj for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
  OBJECT_SUFFIX = o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
  # The suffix applied to runtime libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
  LIBRARY_SUFFIX = so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
  # The suffix applied to link libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
  LIB_SUFFIX = so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
  # The suffix applied to executables (.exe for windows, nothing for solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
  EXE_SUFFIX =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
  # The prefix applied to library files (lib for solaris, nothing for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
  LIB_PREFIX = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
  # User name determination (set _USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
  ifndef USER
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 logname)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    _USER:=$(USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
  # Location of client/server directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
  ARCH_VM_SUBDIR=jre/lib/$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   369
# Machines with 512Mb or less of real memory are considered low memory
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   370
#    build machines and adjustments will be made to prevent excessing
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   371
#    system swapping during the build.
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   372
#    If we don't know, assume 512. Subtract 128 from MB for VM MAX.
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   373
#    Don't set VM max over 1024-128=896.
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   374
ifeq ($(JDK_HAS_MEM_INFO),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   375
  JDK_HAS_MEM_INFO=true
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   376
  export JDK_HAS_MEM_INFO
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   377
  ifneq ($(MB_OF_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   378
    LOW_MEMORY_MACHINE := $(shell \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   379
      if [ $(MB_OF_MEMORY) -le 512 ] ; then \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   380
        echo "true"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   381
      else \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   382
        echo "false"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   383
      fi)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   384
    MAX_VM_MEMORY := $(shell \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   385
      if [ $(MB_OF_MEMORY) -le 1024 ] ; then \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   386
        expr $(MB_OF_MEMORY) '-' 128 2> $(DEV_NULL) ; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   387
      else \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   388
        echo "896"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   389
      fi)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   390
    MIN_VM_MEMORY := $(shell \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   391
      if [ $(MAX_VM_MEMORY) -le 128 ] ; then \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   392
        expr $(MAX_VM_MEMORY) '-' 8 2> $(DEV_NULL) ; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   393
      else \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   394
        echo "128"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   395
      fi)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   396
  else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   397
    MB_OF_MEMORY       := unknown
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   398
    LOW_MEMORY_MACHINE := true
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   399
    MAX_VM_MEMORY      := 384
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   400
    MIN_VM_MEMORY      := 128
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   401
  endif
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   402
  export MB_OF_MEMORY
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   403
  export LOW_MEMORY_MACHINE
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   404
  export MAX_VM_MEMORY
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   405
  export MIN_VM_MEMORY
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   406
endif
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   407
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
# If blanks in the username, use the first 4 words and pack them together
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
_USER1:=$(subst ', ,$(_USER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
_USER2:=$(subst ", ,$(_USER1))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
USER:=$(word 1,$(_USER2))$(word 2,$(_USER2))$(word 3,$(_USER2))$(word 4,$(_USER2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
export USER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
export PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416