jdk/make/common/shared/Defs-windows.gmk
author kvn
Wed, 05 Mar 2008 11:33:31 -0800
changeset 210 6da234892f4a
parent 2 90ce3da70b43
child 2602 5b394a4b6ce1
child 1025 a9ba5ea0f1f7
permissions -rw-r--r--
6671250: In Parse::do_if() old Cmp node 'c' should be replaced with new one after BoolNode transformation Summary: In Parse::do_if() 'c' (CmpNode) node may be changed during BoolNode transformation so 'c' may became dead but the node is referenced later in the code. Reviewed-by: never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 2005-2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Definitions for Windows.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# Default for COMPILER_WARNINGS_FATAL on Windows (C++ compiler warnings)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#    Level: Default is 3, 0 means none, 4 is the most but may be unreliable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#    Some makefiles may have set this to 0 to turn off warnings completely,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#    which also effectively creates a COMPILER_WARNINGS_FATAL=false situation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#    Program.gmk may turn this down to 2 (building .exe's).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#    Windows 64bit platforms are less likely to be warning free.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#    Historically, Windows 32bit builds should be mostly warning free.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
ifndef COMPILER_WARNING_LEVEL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
  COMPILER_WARNING_LEVEL=3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
ifndef COMPILER_WARNINGS_FATAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  COMPILER_WARNINGS_FATAL=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# Windows should use parallel compilation for best build times
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
ifndef COMPILE_APPROACH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  COMPILE_APPROACH = normal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# Indication that we are doing an incremental build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#    This may trigger the creation of make depend files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#    (This may not be working on windows yet, always force to false.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
override INCREMENTAL_BUILD = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
# WARNING: This is extremely touch stuff, between CYGWIN vs. MKS and all
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
#          variations of MKS and CYGWIN releases, and 32bit vs 64bit,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#          this file can give you nightmares.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# Notes:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#   Keep all paths in the windows "mixed" style except CYGWIN UNXIXCOMMAND_PATH.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#   Use of PrefixPath is critical, some variables must end with / (see NOTE).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#   Use of quotes is critical due to possible spaces in paths coming from
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
#     the environment variables, be careful.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#   First convert \ to / with subst, keep it quoted due to blanks, then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#     use cygpath -s or dosname -s to get the short non-blank name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#   If the MKS is old and doesn't have a dosname -s, you will be forced
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#     to set ALT variables with the short non-space directory names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#     If dosname doesn't appear to work, we won't use it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#     The dosname utility also wants to accept stdin if it is not supplied
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#     any path on the command line, this is really dangerous when using
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#     make variables that can easily become empty, so I use:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#        echo $1 | dosname -s     instead of    dosname -s $1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#     to prevent dosname from hanging up the make process when $1 is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#     The cygpath utility does not have this problem.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#   The ALT values should never really have spaces or use \.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#   Suspect these environment variables to have spaces and/or \ characters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#     SYSTEMROOT, SystemRoot, WINDIR, windir, PROGRAMFILES, ProgramFiles,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#     DXSDK_DIR, MSTOOLS, Mstools, MSSDK, MSSdk, VC71COMNTOOLS, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#     MSVCDIR, MSVCDir.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
#     So use $(subst \,/,) on them first adding quotes and placing them in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#         their own variable assigned with :=, then use FullPath.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
# Use FullPath to get C:/ style non-spaces path. Never ends with a /!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
# We assume cygpath is available in the search path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#    NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
CYGPATH_CMD=cygpath -a -s -m
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"; else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
$(shell cd $1 2> $(DEV_NULL) && pwd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
# System drive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
ifdef SYSTEMDRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
  _system_drive =$(SYSTEMDRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
  ifdef SystemDrive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    _system_drive =$(SystemDrive)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
_system_drive:=$(call CheckValue,_system_drive,C:)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
ifdef ALT_UNIXCOMMAND_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
  xALT_UNIXCOMMAND_PATH  :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
  fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
  UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    ifdef ROOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
      xROOTDIR :="$(subst \,/,$(ROOTDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
      xROOTDIR :="$(_system_drive)/mksnt"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
      _rootdir :=$(call FullPath,$(xROOTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    ifneq ($(_rootdir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
      UNIXCOMMAND_PATH :=$(call PrefixPath,$(_rootdir)/mksnt)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
# Get version of MKS or CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
_CYGWIN_VER :=$(shell $(UNAME))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
CYGWIN_VER  :=$(call GetVersion,$(_CYGWIN_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
else # MKS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
MKS_VER  :=$(call GetVersion,$(_MKS_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
# At this point, we can re-define FullPath to use DOSNAME_CMD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
CHECK_MKS87:=$(call CheckVersions,$(MKS_VER),8.7)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
TRY_DOSNAME:=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
ifeq ($(CHECK_MKS87),same)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
# Newer should be ok
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
ifeq ($(CHECK_MKS87),newer)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
TRY_DOSNAME:=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
ifeq ($(TRY_DOSNAME),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
ifeq ($(shell $(UNIXCOMMAND_PATH)dosname -s $(_system_drive)/ 2> $(DEV_NULL)),$(_system_drive)/)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
_DOSNAME=$(UNIXCOMMAND_PATH)dosname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
DOSNAME_CMD:=$(_DOSNAME) -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
$(subst //,/,$(shell echo $1 | $(DOSNAME_CMD) 2> $(DEV_NULL)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
endif # test dosname -s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
endif # TRY_DOSNAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
endif # MKS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
# We try to get references to what we need via the default component
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
#    environment variables, or what was used historically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
# Process Windows values into FullPath values, these paths may have \ chars
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
# System root
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
ifdef SYSTEMROOT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
  xSYSTEMROOT  :="$(subst \,/,$(SYSTEMROOT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
  _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  ifdef SystemRoot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     xSYSTEMROOT :="$(subst \,/,$(SystemRoot))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    _system_root :=$(call FullPath,$(xSYSTEMROOT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    ifdef WINDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
      xWINDIR      :="$(subst \,/,$(WINDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
      _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
      ifdef windir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        xWINDIR      :="$(subst \,/,$(windir))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        _system_root :=$(call FullPath,$(xWINDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
_system_root:=$(call CheckValue,_system_root,$(_system_drive)/WINNT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
# Program Files directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
ifdef PROGRAMFILES
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
  xPROGRAMFILES      :="$(subst \,/,$(PROGRAMFILES))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    xPROGRAMFILES    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    xPROGRAMFILES    :="$(_system_drive)/Program Files (x86)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
  _program_files     :=$(call FullPath,$(xPROGRAMFILES))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
  ifdef PROGRAMW6432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    xPROGRAMW6432    :="$(subst \,/,$(PROGRAMW6432))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    xPROGRAMW6432    :="$(_system_drive)/Program Files"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
  _program_files     :=$(call FullPath,$(xPROGRAMW6432))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
  _program_files32   :=$(call FullPath,$(xPROGRAMFILES))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
  ifneq ($(word 1,$(_program_files32)),$(_program_files32))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    _program_files32:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
ifneq ($(word 1,$(_program_files)),$(_program_files))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
  _program_files:=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
# DirectX SDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
ifdef ALT_DXSDK_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
  _dx_sdk_dir  =$(ALT_DXSDK_DRIVE):/DXSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
  ifdef DXSDK_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    xDXSDK_DIR  :="$(subst \,/,$(DXSDK_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    xDXSDK_DIR  :="$(_system_drive)/DXSDK"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
  _dx_sdk_dir :=$(call FullPath,$(xDXSDK_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
# Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
  # Try looking in MSVCDIR or MSVCDir area first (set by vcvars32.bat)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
  ifdef MSVCDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    xMSVCDIR  :="$(subst \,/,$(MSVCDIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    ifdef MSVCDir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
      xMSVCDIR  :="$(subst \,/,$(MSVCDir))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
      _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
      ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        xMSVCDIR  :="$(_program_files)/Microsoft Visual Studio .NET 2003/Vc7"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
        _msvc_dir :=$(call FullPath,$(xMSVCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
  ifneq ($(subst MSDev98,OLDOLDOLD,$(_msvc_dir)),$(_msvc_dir))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    _msvc_dir :=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
  # If we still don't have it, look for VS71COMNTOOLS, setup by installer?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
  ifeq ($(_msvc_dir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    ifdef VS71COMNTOOLS  # /Common/Tools directory, use ../../Vc7
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
      xVS71COMNTOOLS :="$(subst \,/,$(VS71COMNTOOLS))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
      _vs71tools     :=$(call FullPath,$(xVS71COMNTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    ifneq ($(_vs71tools),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
      _msvc_dir :=$(_vs71tools)/../../Vc7
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
  ifneq ($(_msvc_dir),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
    _compiler_bin :=$(_msvc_dir)/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    _redist_sdk   :=$(_msvc_dir)/../SDK/v1.1/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
    _ms_sdk       :=$(_msvc_dir)/PlatformSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
# The Microsoft Platform SDK installed by itself
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
  xPSDK  :="$(_program_files)/Microsoft Platform SDK"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
  _psdk  :=$(call FullPath,$(xPSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
  ifeq ($(_psdk),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
    xPSDK  :="$(_program_files)/Microsoft SDK"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    _psdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
# If no SDK found yet, look in other places
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
ifeq ($(_ms_sdk),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
  ifdef MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    xMSSDK  :="$(subst \,/,$(MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    ifdef MSSdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
      xMSSDK  :="$(subst \,/,$(MSSdk))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
      _ms_sdk :=$(call FullPath,$(xMSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
      _ms_sdk :=$(_psdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
# Compilers for 64bit are from SDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
  ifneq ($(_ms_sdk),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    ifeq ($(ARCH), ia64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
      _compiler_bin :=$(_ms_sdk)/Bin/Win64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
      _compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
      _redist_sdk   :=$(_ms_sdk)/redist/win64/AMD64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
# Location on system where jdk installs might be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
ifneq ($(_program_files),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
  USRJDKINSTANCES_PATH =$(_program_files)/Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
  USRJDKINSTANCES_PATH =$(_system_drive)/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
# SLASH_JAVA: location of all network accessable files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
ifdef ALT_SLASH_JAVA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
  xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
  SLASH_JAVA      :=$(call FullPath,$(xALT_SLASH_JAVA))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
  ifdef ALT_JDK_JAVA_DRIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
    SLASH_JAVA  =$(JDK_JAVA_DRIVE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
    SLASH_JAVA  =J:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
# JDK_DEVTOOLS_DIR: common path for all the java devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
  xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
  JDK_DEVTOOLS_DIR      :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
# COMPILER_PATH: path to where the compiler and tools are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
ifdef ALT_COMPILER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
  xALT_COMPILER_PATH  :="$(subst \,/,$(ALT_COMPILER_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
  fxALT_COMPILER_PATH :=$(call FullPath,$(xALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
  COMPILER_PATH       :=$(call PrefixPath,$(fxALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
  COMPILER_PATH :=$(call PrefixPath,$(_compiler_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
COMPILER_PATH :=$(call AltCheckSpaces,COMPILER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
ifdef ALT_MSDEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
  xALT_MSDEVTOOLS_PATH  :="$(subst \,/,$(ALT_MSDEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
  fxALT_MSDEVTOOLS_PATH :=$(call FullPath,$(xALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
  MSDEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_MSDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    ifdef MSTOOLS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
      xMSTOOLS  :="$(subst \,/,$(MSTOOLS))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
      _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
      ifdef Mstools
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
        xMSTOOLS  :="$(subst \,/,$(Mstools))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
        _ms_tools :=$(call FullPath,$(xMSTOOLS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
      else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
        _ms_tools :=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
    ifneq ($(_ms_tools),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
      _ms_tools_bin :=$(_ms_tools)/Bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
      # Assumes compiler bin is .../Bin/win64/x86/AMD64, rc.exe is 3 levels up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
      _ms_tools_bin :=$(_compiler_bin)/../../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
    _ms_tools_bin :=$(_compiler_bin)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
  MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
MSDEVTOOLS_PATH:=$(call AltCheckSpaces,MSDEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
ifdef ALT_DEVTOOLS_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
  xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
  fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
  DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    xDEVTOOLS_PATH  :="$(_system_drive)/utils"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
    fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
    DEVTOOLS_PATH  :=$(call PrefixPath,$(fxDEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
# _BOOTDIR2: Second choice
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
ifndef ALT_BOOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
# See if SDK area has a msvcrt.dll file, directory may exist w/o msvcr* files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
_REDIST_SDK_EXISTS := $(shell \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
	if [ -f "$(_redist_sdk)/msvcrt.dll" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
	  echo "true"; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
	else \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
	  echo "false"; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
	fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
_REDIST71_SDK_EXISTS := $(shell \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
	if [ -f "$(_redist_sdk)/msvcr71.dll" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
	  echo "true"; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
	else \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
	  echo "false"; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
	fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
# 32 bit needs 2 runtimes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
  # MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
  ifdef ALT_MSVCRT_DLL_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
    xALT_MSVCRT_DLL_PATH :="$(subst \,/,$(ALT_MSVCRT_DLL_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    MSVCRT_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRT_DLL_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    ifeq ($(_REDIST_SDK_EXISTS), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
      xREDIST_DIR   :=$(_redist_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
      xREDIST_DIR   :=$(_system_root)/system32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
    MSVCRT_DLL_PATH :=$(call FullPath,$(xREDIST_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
  MSVCRT_DLL_PATH:=$(call AltCheckSpaces,MSVCRT_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
  MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
  # MSVCR71_DLL_PATH: location of msvcr71.dll that will be re-distributed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
  ifdef ALT_MSVCR71_DLL_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    xALT_MSVCR71_DLL_PATH :="$(subst \,/,$(ALT_MSVCR71_DLL_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
    MSVCR71_DLL_PATH      :=$(call FullPath,$(xALT_MSVCR71_DLL_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
    ifeq ($(_REDIST71_SDK_EXISTS), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
      xREDIST71_DIR  :=$(_redist_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
      xREDIST71_DIR  :=$(_system_root)/system32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
    MSVCR71_DLL_PATH :=$(call FullPath,$(xREDIST71_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
  MSVCR71_DLL_PATH :=$(call AltCheckSpaces,MSVCR71_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
  MSVCR71_DLL_PATH:=$(call AltCheckValue,MSVCR71_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
  # MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
  ifdef ALT_MSVCRT_DLL_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
    xALT_MSVCRT_DLL_PATH :="$(subst \,/,$(ALT_MSVCRT_DLL_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    MSVCRT_DLL_PATH      :=$(call FullPath,$(xALT_MSVCRT_DLL_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    ifeq ($(_REDIST_SDK_EXISTS), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
      xREDIST_DIR   :=$(_redist_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
      xREDIST_DIR   :=$(_system_root)/SysWOW64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    MSVCRT_DLL_PATH  :=$(call FullPath,$(xREDIST_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
  MSVCRT_DLL_PATH:=$(call AltCheckSpaces,MSVCRT_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
  MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
# DXSDK_PATH: path to Microsoft DirectX SDK Include and Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
ifdef ALT_DXSDK_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
  xALT_DXSDK_PATH :="$(subst \,/,$(ALT_DXSDK_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
  DXSDK_PATH      :=$(call FullPath,$(xALT_DXSDK_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
  _DXSDK_PATH1 :=$(_dx_sdk_dir)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
  _DXSDK_PATH2 :=$(JDK_DEVTOOLS_DIR)/windows/dxsdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
  DXSDK_PATH  :=$(call DirExists,$(_DXSDK_PATH1),$(_DXSDK_PATH2),$(_dx_sdk_dir))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
DXSDK_PATH :=$(call AltCheckSpaces,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
DXSDK_PATH:=$(call AltCheckValue,DXSDK_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
# DXSDK_INCLUDE_PATH: path to Microsoft DirectX SDK Include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
ifdef ALT_DXSDK_INCLUDE_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
  xALT_DXSDK_INCLUDE_PATH :="$(subst \,/,$(ALT_DXSDK_INCLUDE_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
  DXSDK_INCLUDE_PATH      :=$(call FullPath,$(xALT_DXSDK_INCLUDE_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
  DXSDK_INCLUDE_PATH =$(subst //,/,$(DXSDK_PATH)/Include)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
# DXSDK_LIB_PATH: path to Microsoft DirectX SDK Lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
ifdef ALT_DXSDK_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
  xALT_DXSDK_LIB_PATH :="$(subst \,/,$(ALT_DXSDK_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
  DXSDK_LIB_PATH      :=$(call FullPath,$(xALT_DXSDK_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
  ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
    # 64bit libs are located in "Lib/x64" subdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib/x64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
    DXSDK_LIB_PATH =$(subst //,/,$(DXSDK_PATH)/Lib)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
# DEPLOY_MSSDK: Microsoft SDK for this platform (for deploy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
ifdef ALT_DEPLOY_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
  xALT_DEPLOY_MSSDK :="$(subst \,/,$(ALT_DEPLOY_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
  DEPLOY_MSSDK      :=$(call FullPath,$(xALT_DEPLOY_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
  DEPLOY_MSSDK      :=$(_ms_sdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
DEPLOY_MSSDK:=$(call AltCheckSpaces,DEPLOY_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
# INSTALL_MSSDK: Microsoft Installer SDK for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
ifdef ALT_INSTALL_MSSDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
  xALT_INSTALL_MSSDK :="$(subst \,/,$(ALT_INSTALL_MSSDK))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
  INSTALL_MSSDK      :=$(call FullPath,$(xALT_INSTALL_MSSDK))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
  INSTALL_MSSDK      :=$(_psdk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
INSTALL_MSSDK:=$(call AltCheckSpaces,INSTALL_MSSDK)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
# INSTALL_MSIVAL2: Installation of MsiVal2 for this platform (for install)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
ifdef ALT_INSTALL_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
  xALT_INSTALL_MSIVAL2 :="$(subst \,/,$(ALT_INSTALL_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
  INSTALL_MSIVAL2      :=$(call FullPath,$(xALT_INSTALL_MSIVAL2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
  INSTALL_MSIVAL2      :=$(_program_files)/MsiVal2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
INSTALL_MSIVAL2:=$(call AltCheckSpaces,INSTALL_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
# WSCRIPT: path to wscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
ifdef ALT_WSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
  xALT_WSCRIPT :="$(subst \,/,$(ALT_WSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
  WSCRIPT  =$(xALT_WSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
  _WSCRIPT1 :=$(_system_root)/system32/wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
  _WSCRIPT2 :=$(DEVTOOLS_PATH)wscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
  WSCRIPT  :=$(call FileExists,$(_WSCRIPT1),$(_WSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
WSCRIPT:=$(call AltCheckSpaces,WSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
# CSCRIPT: path to cscript.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
ifdef ALT_CSCRIPT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
  xALT_CSCRIPT :="$(subst \,/,$(ALT_CSCRIPT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
  CSCRIPT  =$(xALT_CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
  _CSCRIPT1 :=$(_system_root)/system32/cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
  _CSCRIPT2 :=$(DEVTOOLS_PATH)cscript.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
  CSCRIPT  :=$(call FileExists,$(_CSCRIPT1),$(_CSCRIPT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
CSCRIPT:=$(call AltCheckSpaces,CSCRIPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
# MSIVAL2: path to msival2.exe (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
ifdef ALT_MSIVAL2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
  xALT_MSIVAL2 :="$(subst \,/,$(ALT_MSIVAL2))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
  MSIVAL2  =$(xALT_MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
  _MSIVAL2_1 :=$(INSTALL_MSIVAL2)/msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
  _MSIVAL2_2 :=$(DEVTOOLS_PATH)msival2.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
  MSIVAL2    :=$(call FileExists,$(_MSIVAL2_1),$(_MSIVAL2_2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
MSIVAL2:=$(call AltCheckSpaces,MSIVAL2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
# LOGOCUB: path to cub file for (used in validating install msi files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
ifdef ALT_LOGOCUB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
  xALT_LOGOCUB :="$(subst \,/,$(ALT_LOGOCUB))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
  LOGOCUB  =$(xALT_LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
  _LOGOCUB1 :=$(INSTALL_MSIVAL2)/logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
  _LOGOCUB2 :=$(DEVTOOLS_PATH)logo.cub
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
  LOGOCUB   :=$(call FileExists,$(_LOGOCUB1),$(_LOGOCUB2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
LOGOCUB:=$(call AltCheckSpaces,LOGOCUB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
# MSITRAN: path to msitran.exe (used in creating install bundles and sponsors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
ifdef ALT_MSITRAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
  xALT_MSITRAN :="$(subst \,/,$(ALT_MSITRAN))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
  MSITRAN  =$(xALT_MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
  _MSITRAN1 :=$(INSTALL_MSSDK)/Bin/msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
  _MSITRAN2 :=$(DEVTOOLS_PATH)msitran.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
  MSITRAN   :=$(call FileExists,$(_MSITRAN1),$(_MSITRAN2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
MSITRAN:=$(call AltCheckSpaces,MSITRAN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
# MSICERT: path to msicert.exe (used in creating install bundles)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
ifdef ALT_MSICERT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
  xALT_MSICERT :="$(subst \,/,$(ALT_MSICERT))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
  MSICERT  =$(xALT_MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
  _MSICERT1 :=$(INSTALL_MSSDK)/Bin/msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
  _MSICERT2 :=$(DEVTOOLS_PATH)msicert.exe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
  MSICERT   :=$(call FileExists,$(_MSICERT1),$(_MSICERT2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
MSICERT:=$(call AltCheckSpaces,MSICERT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
# Import JDK images allow for partial builds, components not built are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
#    imported (or copied from) these import areas when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
ifdef ALT_BUILD_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
ifdef ALT_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
ifdef ALT_HOTSPOT_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
  HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
  HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
HOTSPOT_IMPORT_PATH:=$(call AltCheckSpaces,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
  ifdef ALT_HOTSPOT_CLIENT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
    HOTSPOT_CLIENT_PATH :=$(call FullPath,$(ALT_HOTSPOT_CLIENT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
    HOTSPOT_CLIENT_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
  HOTSPOT_CLIENT_PATH:=$(call AltCheckSpaces,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
  HOTSPOT_CLIENT_PATH:=$(call AltCheckValue,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
# HOTSPOT_SERVER_PATH: location of server jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
ifdef ALT_HOTSPOT_SERVER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
  HOTSPOT_SERVER_PATH :=$(call FullPath,$(ALT_HOTSPOT_SERVER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
  HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
HOTSPOT_SERVER_PATH:=$(call AltCheckSpaces,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
# HOTSPOT_LIB_PATH: location of jvm.lib file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
ifdef ALT_HOTSPOT_LIB_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
  xALT_HOTSPOT_LIB_PATH :="$(subst \,/,$(ALT_HOTSPOT_LIB_PATH))"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
  HOTSPOT_LIB_PATH      :=$(call FullPath,$(xALT_HOTSPOT_LIB_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
  HOTSPOT_LIB_PATH  =$(HOTSPOT_IMPORT_PATH)/lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
HOTSPOT_LIB_PATH:=$(call AltCheckSpaces,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
HOTSPOT_LIB_PATH:=$(call AltCheckValue,HOTSPOT_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658