jdk/make/common/shared/Platform.gmk
author michaelm
Tue, 06 Mar 2012 20:34:38 +0000
changeset 12047 320a714614e9
parent 11368 b8048abf694e
child 12538 211d6e82fe51
permissions -rw-r--r--
7113349: Initial changeset for Macosx port to jdk Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks Contributed-by: Alan Bateman <alan.bateman@oracle.com>, Alexander Potochkin <alexander.potochkin@oracle.com>, Alexander Zuev <alexander.zuev@oracle.com>, Andrew Brygin <andrew.brygin@oracle.com>, Artem Ananiev <artem.ananiev@oracle.com>, Alex Strange <astrange@apple.com>, Bino George <bino@apple.com>, Christine Lu <christine.lu@oracle.com>, David Katleman <david.katleman@oracle.com>, David Durrence <david_durrence@apple.com>, Dmitry Cherepanov <dmitry.cherepanov@oracle.com>, Greg Lewis <glewis@eyesbeyond.com>, Kevin Miller <kevin_m_miller@apple.com>, Kurt Miller <kurt@intricatesoftware.com>, Landon Fuller <landonf@plausiblelabs.com>, Leonid Romanov <leonid.romanov@oracle.com>, Loefty Walkowiak <loefty@apple.com>, Mark Reinhold <mark.reinhold@oracle.com>, Naoto Sato <naoto.sato@oracle.com>, Philip Race <philip.race@oracle.com>, Roger Hoover <rhoover@apple.com>, Scott Kovatch <scott.kovatch@oracle.com>, Sergey ByloKhov <sergey.bylokhov@oracle.com>, Mike Swingler <swingler@apple.com>, Tomas Hurka <tomas.hurka@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
8796
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
     2
# Copyright (c) 1997, 2011, Oracle and/or its affiliates. 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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
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
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    23
# questions.
2
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
8201
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
    75
# Only run uname once in this make session.
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
    76
ifndef SYSTEM_UNAME
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
    77
  SYSTEM_UNAME := $(shell uname)
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
    78
  export SYSTEM_UNAME
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
    79
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
# Prune out all known SCM (Source Code Management) directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
# so they will not be included when copying directory trees
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
# or packaging up .jar files, etc.  This applies to all workspaces.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#
31
a8fdfca90643 6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents: 26
diff changeset
    86
SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files .hgignore .hgtags
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
# 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
    88
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
    89
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
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
# Don't define this unless it's not defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
ifndef VARIANT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
  VARIANT=OPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
# Platform settings specific to Solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
ifeq ($(SYSTEM_UNAME), SunOS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
  PLATFORM = solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  # Solaris sparc build can be either 32-bit or 64-bit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
  #   Default to 32, but allow explicit setting to 32 or 64.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
  ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    processor := $(shell uname -p)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    archExpr = case "$(processor)" in  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                i[3-9]86) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                    echo i586 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                sparc*)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                    echo sparc \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                *) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    echo $(processor)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    ARCH        := $(shell $(archExpr))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    ARCH := $(shell isainfo -n)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    # ISA_DIR is used to locate 64-bit specific libraries which are generally
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    # in the same general place as other libraries under the ./$(ARCH) directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    ISA_DIR = /$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
  # Need to maintain the jre/lib/i386 location for 32-bit Intel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
  ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     ARCH_FAMILY = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     LIBARCH     = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     ARCHPROP    = x86
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        ARCH_FAMILY = i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        ARCH_FAMILY = sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     LIBARCH  = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     ARCHPROP = $(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
  # The two LIBARCH names
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
  ifeq ($(ARCH_FAMILY), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    LIBARCH32 = sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    LIBARCH64 = sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    LIBARCH32 = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    LIBARCH64 = amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
  BUNDLE_FILE_SUFFIX=.tar
11368
b8048abf694e 7127104: Build issue with prtconf and zones, also using := to avoid extra execs
ohair
parents: 9362
diff changeset
   150
  # How much RAM does this machine have (zones send an error to stderr):
b8048abf694e 7127104: Build issue with prtconf and zones, also using := to avoid extra execs
ohair
parents: 9362
diff changeset
   151
  MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
# Platform settings specific to Linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
ifeq ($(SYSTEM_UNAME), Linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
  PLATFORM = linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
  # Arch and OS name/version
8796
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   158
  ifdef CROSS_COMPILE_ARCH
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   159
    mach := $(CROSS_COMPILE_ARCH)
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   160
  else
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   161
    mach := $(shell uname -m)
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   162
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
  archExpr = case "$(mach)" in \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                i[3-9]86) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                    echo i586 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                ia64) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                    echo ia64 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                x86_64) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                    echo amd64 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                sparc*) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                    echo sparc \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
                    ;; \
4286
ac64f44f4d19 6903453: Zero build on ARM and IA-64
gbenson
parents: 2660
diff changeset
   176
                arm*) \
ac64f44f4d19 6903453: Zero build on ARM and IA-64
gbenson
parents: 2660
diff changeset
   177
                    echo arm \
ac64f44f4d19 6903453: Zero build on ARM and IA-64
gbenson
parents: 2660
diff changeset
   178
                    ;; \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                *) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                    echo $(mach) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                    ;; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
      esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
  ARCH        := $(shell $(archExpr) )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
  ARCH_FAMILY := $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
  # Linux builds may be 32-bit or 64-bit data model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
  ifeq ($(ARCH), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    # Linux sparc build can be either 32-bit or 64-bit.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    #   Default to 32, but allow explicit setting to 32 or 64.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    ifndef ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
      ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
      ARCH=sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
      ARCH=sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  else
8796
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   199
    # Most archs are 32-bit
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    ifndef ARCH_DATA_MODEL
8796
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   201
      ARCH_DATA_MODEL=32
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   202
      ifeq ($(ARCH), amd64)
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   203
        ARCH_DATA_MODEL=64
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   204
      endif
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8201
diff changeset
   205
      ifeq ($(ARCH), ia64)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
  # Need to maintain the jre/lib/i386 location for 32-bit Intel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
  ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    LIBARCH = i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    LIBARCH = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
  # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
  ARCHPROP  = $(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
  BUNDLE_FILE_SUFFIX=.tar.gz
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
  # How much RAM does this machine have:
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   224
  MB_OF_MEMORY := $(shell free -m | fgrep Mem: | awk '{print $$2;}' )
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   227
ifeq ($(SYSTEM_UNAME), Darwin)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   228
  PLATFORM = macosx
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   229
  OS_NAME = darwin
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   230
  OS_VENDOR = Apple
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   231
  GB_OF_MEMORY := $(shell system_profiler SPHardwareDataType | fgrep Memory: | awk '{print $$2}')
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   232
  MB_OF_MEMORY := $(shell expr ${GB_OF_MEMORY} '*' 1024)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   233
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   234
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   235
# Platform settings specific to BSD/Mac OS X
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   236
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   237
  OS_VERSION := $(shell uname -r)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   238
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   239
  # Arch and OS name/version
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   240
  # Darwin x86 builds are i386/amd64 universal by default.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   241
  # Allow arch to be set from the environment to avoid this.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   242
  ifeq ($(origin ARCH), undefined)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   243
   ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   244
#     ifdef OPENJDK -- when universal 32/64 binaries available in Hotspot
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   245
#        mach := universal
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   246
#     else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   247
        mach := x86_64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   248
#     endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   249
   else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   250
    mach := $(shell uname -m)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   251
   endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   252
  else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   253
   mach := $(ARCH)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   254
  endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   255
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   256
  archExpr = case "$(mach)" in \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   257
                i[3-9]86) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   258
                    echo i586 \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   259
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   260
                sparc64) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   261
                    echo sparcv9 \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   262
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   263
                sparc*) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   264
                    echo sparc \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   265
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   266
                x86_64) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   267
                    echo amd64 \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   268
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   269
                universal) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   270
                    echo universal \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   271
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   272
                "Power Macintosh") \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   273
                    echo ppc \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   274
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   275
                *) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   276
                    echo $(mach) \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   277
                    ;; \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   278
      esac
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   279
  ARCH        := $(shell $(archExpr) )
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   280
  ARCH_FAMILY := $(ARCH)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   281
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   282
  # i586, sparc, and ppc are 32 bit, amd64 and sparc64 are 64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   283
  # ARCH_DATA_MODEL does not exactly mean anything in universal
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   284
  # but it has to be one or the other, so pick 32
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   285
  ifneq (,$(findstring $(ARCH), i586 sparc ppc universal))
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   286
    ARCH_DATA_MODEL=32
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   287
  else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   288
    ARCH_DATA_MODEL=64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   289
  endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   290
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   291
  # Need to maintain the jre/lib/i386 location for 32-bit Intel
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   292
  ifeq ($(ARCH), i586)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   293
    LIBARCH = i386
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   294
  else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   295
    LIBARCH = $(ARCH)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   296
  endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   297
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   298
  # Value of Java os.arch property
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   299
  ARCHPROP  = $(LIBARCH)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   300
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   301
  # Suffix for file bundles used in previous release
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   302
  BUNDLE_FILE_SUFFIX=.tar.gz
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   303
  # How much RAM does this machine have:
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   304
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   305
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
# Windows with and without CYGWIN will be slightly different
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
ifeq ($(SYSTEM_UNAME), Windows_NT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
  PLATFORM = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
  PLATFORM = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
  USING_CYGWIN = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
  export USING_CYGWIN
8201
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   314
  CYGPATH_CMD=cygpath -a -s -m
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   315
  # Only run "cygpath /" once in this make session.
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   316
  ifndef CYGWIN_HOME
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   317
    CYGWIN_HOME := $(shell $(CYGPATH_CMD) /)
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   318
    export CYGWIN_HOME
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   319
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
# Platform settings specific to Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
  # Windows builds default to the appropriate for the underlaying
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
  # architecture.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
  # Temporary disk area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
  TEMP_DISK=C:/temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
  # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
5611
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   329
  #  return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   330
  #  And sometimes PROCESSOR_IDENTIFIER is not defined at all
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   331
  #  (in some restricted shells), so we use uname if we have to.
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   332
  ifeq ($(PROCESSOR_IDENTIFIER),)
8201
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   333
    # Only run uname -m once in this make session.
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   334
    ifndef SYSTEM_UNAME_M
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   335
      SYSTEM_UNAME_M := $(shell uname -m)
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   336
      export SYSTEM_UNAME_M
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   337
    endif
9e6915af34ba 7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents: 5627
diff changeset
   338
    PROC_ARCH:=$(SYSTEM_UNAME_M)
5611
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   339
  else
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   340
    PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   341
  endif
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   342
  # Cover all the possibilities, MKS uname, CYGWIN uname, PROCESSOR_IDENTIFIER
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   343
  #    Get: X86, X64, or IA64
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   344
  PROC_ARCH:=$(patsubst 386,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   345
  PROC_ARCH:=$(patsubst 486,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   346
  PROC_ARCH:=$(patsubst 586,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   347
  PROC_ARCH:=$(patsubst 686,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   348
  PROC_ARCH:=$(patsubst i386,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   349
  PROC_ARCH:=$(patsubst i486,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   350
  PROC_ARCH:=$(patsubst i586,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   351
  PROC_ARCH:=$(patsubst i686,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   352
  PROC_ARCH:=$(patsubst x86,X86,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   353
  PROC_ARCH:=$(patsubst intel64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   354
  PROC_ARCH:=$(patsubst Intel64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   355
  PROC_ARCH:=$(patsubst INTEL64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   356
  PROC_ARCH:=$(patsubst em64t,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   357
  PROC_ARCH:=$(patsubst EM64T,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   358
  PROC_ARCH:=$(patsubst amd64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   359
  PROC_ARCH:=$(patsubst AMD64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   360
  PROC_ARCH:=$(patsubst 8664,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   361
  PROC_ARCH:=$(patsubst x86_64,X64,$(PROC_ARCH))
b4ef86f105ec 6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents: 4286
diff changeset
   362
  PROC_ARCH:=$(patsubst ia64,IA64,$(PROC_ARCH))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
  ifndef ARCH_DATA_MODEL
2300
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   364
    ifeq ($(PROC_ARCH),IA64)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
      ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
    else
2300
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   367
      ifeq ($(PROC_ARCH),X64)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
        ARCH_DATA_MODEL=64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
        ARCH_DATA_MODEL=32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
  export ARCH_DATA_MODEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
    # If the user wants to perform a cross compile build then they must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
    # - set ARCH_DATA_MODEL=64 and either
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
    #      + set ARCH to ia64 or amd64, or
2300
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   379
    ifeq ($(PROC_ARCH),X64)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
      ARCH=amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
    else
2300
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   382
      ifeq ($(PROC_ARCH),IA64)
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   383
        ARCH=ia64
103e268e2d16 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents: 2158
diff changeset
   384
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
    LIBARCH=$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    # Value of Java os.arch property
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
    ARCHPROP=$(LIBARCH)
799
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   389
  else
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   390
    # 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
   391
    ARCH=i586
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   392
    LIBARCH=i386
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   393
    # Value of Java os.arch property
5abd62136d35 6695765: Remove winver.exe completely from jdk sources
ohair
parents: 715
diff changeset
   394
    ARCHPROP=x86
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
  ARCH_FAMILY = $(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
  # Where is unwanted output to be delivered?
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   398
  # MKS uses the special file "NUL", cygwin uses the customary unix file.
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   399
  ifeq ($(USING_CYGWIN),true)
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   400
    DEV_NULL = /dev/null
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   401
  else
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   402
    DEV_NULL = NUL
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 4286
diff changeset
   403
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
  export DEV_NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
  # Classpath separator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
  CLASSPATH_SEPARATOR = ;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
  # The suffix used for object file (.o for unix .obj for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
  OBJECT_SUFFIX = obj
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
  # The suffix applied to executables (.exe for windows, nothing for solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
  EXE_SUFFIX = .exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
  # The prefix applied to library files (lib for solaris, nothing for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
  LIB_PREFIX=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
  LIBRARY_SUFFIX = dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
  LIB_SUFFIX     = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
  # User name determination (set _USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
  ifndef USER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
    ifdef USERNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
      _USER := $(USERNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
      ifdef LOGNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
        _USER := $(LOGNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
        _USER := $(shell id -un)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    _USER:=$(USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
  # Location of client/server directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
  ARCH_VM_SUBDIR=jre/bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
  # Suffix for file bundles used in previous release
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
  BUNDLE_FILE_SUFFIX=.tar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
  # ISHIELD_TEMP_MIN is the difference of an empty C:\TEMP vs. one after a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
  #     bundles build on windows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
  ISHIELD_TEMP_MIN=250000
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
  # How much RAM does this machine have:
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   437
  ifeq ($(JDK_HAS_MEM_INFO),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   438
    ifeq ($(USING_CYGWIN),true)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   439
      # CYGWIN has the 'free' utility
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   440
      _MB_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   441
	   $(shell free -m | grep Mem: | awk '{print $$2;}' )
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   442
    else
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   443
      # 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
   444
      #    extended memory is what is beyond 1024M
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   445
      _B_OF_EXT_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   446
	   $(shell mem 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   447
		   grep 'total contiguous extended memory' | awk '{print $$1;}')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   448
      ifeq ($(_B_OF_EXT_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   449
          _B_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   450
	   $(shell mem 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   451
		   grep 'total conventional memory' | awk '{print $$1;}')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   452
      else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   453
        _B_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   454
           $(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
   455
      endif
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   456
      ifeq ($(_B_OF_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   457
        # 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
   458
        _MB_OF_MEMORY := \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   459
	    $(shell systeminfo 2> $(DEV_NULL) | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   460
		    grep 'Total Physical Memory:' | \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   461
		    awk '{print $$4;}' | sed -e 's@,@@')
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   462
      else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   463
        _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
   464
      endif
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   465
    endif
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   466
    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
   467
      MB_OF_MEMORY := $(_MB_OF_MEMORY)
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   468
    else
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   469
      MB_OF_MEMORY := 512
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   470
    endif
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   471
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
# Unix type settings (same for all unix platforms)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
  # Temporary disk area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
  TEMP_DISK=/tmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
  # Where is unwanted output to be delivered?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
  DEV_NULL = /dev/null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
  export DEV_NULL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
  # Character used between entries in classpath 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
  CLASSPATH_SEPARATOR = :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
  # suffix used for object file (.o for unix .obj for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
  OBJECT_SUFFIX = o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
  # The suffix applied to runtime libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
  LIBRARY_SUFFIX = so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
  # The suffix applied to link libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
  LIB_SUFFIX = so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
  # The suffix applied to executables (.exe for windows, nothing for solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
  EXE_SUFFIX =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
  # The prefix applied to library files (lib for solaris, nothing for windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
  LIB_PREFIX = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
  # User name determination (set _USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
  ifndef USER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
    ifdef LOGNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
      _USER := $(LOGNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
      _USER := $(shell logname)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
    _USER:=$(USER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
  # Location of client/server directories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
  ARCH_VM_SUBDIR=jre/lib/$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   507
# Darwin-specific Overrides
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   508
ifeq ($(SYSTEM_UNAME),Darwin)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   509
  # The suffix applied to runtime libraries
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   510
  LIBRARY_SUFFIX = dylib
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   511
  # The suffix applied to link libraries
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   512
  ifeq ($(ARCH), universal)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   513
    LIB_SUFFIX = o
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   514
  else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   515
    LIB_SUFFIX = a
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   516
  endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   517
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   518
  ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   519
  	ARCH_VM_SUBDIR=jre/lib
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   520
  endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   521
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11368
diff changeset
   522
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   523
# 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
   524
#    build machines and adjustments will be made to prevent excessing
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   525
#    system swapping during the build.
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   526
ifeq ($(JDK_HAS_MEM_INFO),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   527
  JDK_HAS_MEM_INFO=true
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   528
  export JDK_HAS_MEM_INFO
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   529
  ifneq ($(MB_OF_MEMORY),)
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   530
    LOW_MEMORY_MACHINE := $(shell \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   531
      if [ $(MB_OF_MEMORY) -le 512 ] ; then \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   532
        echo "true"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   533
      else \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   534
        echo "false"; \
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   535
      fi)
9362
f91f98952e64 6903609: Max memory of 896 may be too large for typical windows developer environment
schien
parents: 8805
diff changeset
   536
    MAX_VM_MEMORY := 512
f91f98952e64 6903609: Max memory of 896 may be too large for typical windows developer environment
schien
parents: 8805
diff changeset
   537
    MIN_VM_MEMORY := $(MAX_VM_MEMORY)
849
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   538
  else
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   539
    MB_OF_MEMORY       := unknown
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   540
    LOW_MEMORY_MACHINE := true
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   541
    MAX_VM_MEMORY      := 384
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   542
    MIN_VM_MEMORY      := 128
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   543
  endif
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   544
  export MB_OF_MEMORY
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   545
  export LOW_MEMORY_MACHINE
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   546
  export MAX_VM_MEMORY
be386e469547 6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents: 799
diff changeset
   547
  export MIN_VM_MEMORY
141
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   548
endif
dd739bd1bd2b 6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents: 31
diff changeset
   549
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
# If blanks in the username, use the first 4 words and pack them together
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
_USER1:=$(subst ', ,$(_USER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
_USER2:=$(subst ", ,$(_USER1))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
USER:=$(word 1,$(_USER2))$(word 2,$(_USER2))$(word 3,$(_USER2))$(word 4,$(_USER2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
export USER
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
export PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558