corba/make/common/shared/Defs-windows.gmk
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 5385 8308e15f228e
child 6551 476ed8653670
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
#
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
     2
# Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
#
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
#
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 5385
diff changeset
    23
# questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
# Definitions for Windows.
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
# Default for COMPILER_WARNINGS_FATAL on Windows (C++ compiler warnings)
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
#    Level: Default is 3, 0 means none, 4 is the most but may be unreliable
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
#    Some makefiles may have set this to 0 to turn off warnings completely,
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
#    which also effectively creates a COMPILER_WARNINGS_FATAL=false situation.
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
#    Program.gmk may turn this down to 2 (building .exe's).
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
#    Windows 64bit platforms are less likely to be warning free.
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
#    Historically, Windows 32bit builds should be mostly warning free.
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
ifndef COMPILER_WARNING_LEVEL
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
  COMPILER_WARNING_LEVEL=3
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
ifndef COMPILER_WARNINGS_FATAL
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
  COMPILER_WARNINGS_FATAL=false
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
# Windows should use parallel compilation for best build times
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
ifndef COMPILE_APPROACH
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
  COMPILE_APPROACH = normal
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
# Indication that we are doing an incremental build.
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
#    This may trigger the creation of make depend files.
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
#    (This may not be working on windows yet, always force to false.)
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
override INCREMENTAL_BUILD = false
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
# WARNING: This is extremely touch stuff, between CYGWIN vs. MKS and all
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
#          variations of MKS and CYGWIN releases, and 32bit vs 64bit,
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
#          this file can give you nightmares.
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
# Notes:
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
#   Keep all paths in the windows "mixed" style except CYGWIN UNXIXCOMMAND_PATH.
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
#   Use of PrefixPath is critical, some variables must end with / (see NOTE).
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
#   Use of quotes is critical due to possible spaces in paths coming from
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
#     the environment variables, be careful.
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
#   First convert \ to / with subst, keep it quoted due to blanks, then
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
#     use cygpath -s or dosname -s to get the short non-blank name.
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
#   If the MKS is old and doesn't have a dosname -s, you will be forced
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
#     to set ALT variables with the short non-space directory names.
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
#     If dosname doesn't appear to work, we won't use it.
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
#     The dosname utility also wants to accept stdin if it is not supplied
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
#     any path on the command line, this is really dangerous when using
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
#     make variables that can easily become empty, so I use:
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
#        echo $1 | dosname -s     instead of    dosname -s $1
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
#     to prevent dosname from hanging up the make process when $1 is empty.
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
#     The cygpath utility does not have this problem.
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
#   The ALT values should never really have spaces or use \.
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
#   Suspect these environment variables to have spaces and/or \ characters:
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
#     SYSTEMROOT, SystemRoot, WINDIR, windir, PROGRAMFILES, ProgramFiles,
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
#     MSTOOLS, Mstools, MSSDK, MSSdk, VC71COMNTOOLS, 
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
#     MSVCDIR, MSVCDir.
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
#     So use $(subst \,/,) on them first adding quotes and placing them in
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
#         their own variable assigned with :=, then use FullPath.
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
# Use FullPath to get C:/ style non-spaces path. Never ends with a /!
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
ifdef USING_CYGWIN
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
# We assume cygpath is available in the search path
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
#    NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path!
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
CYGPATH_CMD=cygpath -a -s -m
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
define FullPath
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL))
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
define OptFullPath
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"; else echo "$1"; fi)
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
else
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
define FullPath
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
$(shell cd $1 2> $(DEV_NULL) && pwd)
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
define OptFullPath
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
# System drive
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
ifdef SYSTEMDRIVE
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
  _system_drive =$(SYSTEMDRIVE)
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
else
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
  ifdef SystemDrive
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
    _system_drive =$(SystemDrive)
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
_system_drive:=$(call CheckValue,_system_drive,C:)
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   116
ifndef UNIXCOMMAND_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   117
  ifdef ALT_UNIXCOMMAND_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   118
    xALT_UNIXCOMMAND_PATH  :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   119
    fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   120
    UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
  else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   122
    ifdef USING_CYGWIN
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   123
      UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
    else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   125
      ifdef ROOTDIR
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   126
        xROOTDIR :="$(subst \,/,$(ROOTDIR))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   127
        _rootdir :=$(call FullPath,$(xROOTDIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   128
      else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   129
        xROOTDIR :="$(_system_drive)/mksnt"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   130
        _rootdir :=$(call FullPath,$(xROOTDIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   131
      endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   132
      ifneq ($(_rootdir),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   133
        UNIXCOMMAND_PATH :=$(call PrefixPath,$(_rootdir)/mksnt)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   134
      endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   137
  UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   138
  export UNIXCOMMAND_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
# Get version of MKS or CYGWIN
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
ifdef USING_CYGWIN
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   143
  ifndef CYGWIN_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   144
    _CYGWIN_VER :=$(shell $(UNAME))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   145
    CYGWIN_VER  :=$(call GetVersion,$(_CYGWIN_VER))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   146
    export CYGWIN_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   147
  endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
else # MKS
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@')
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
MKS_VER  :=$(call GetVersion,$(_MKS_VER))
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
# At this point, we can re-define FullPath to use DOSNAME_CMD
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
CHECK_MKS87:=$(call CheckVersions,$(MKS_VER),8.7)
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
TRY_DOSNAME:=false
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
ifeq ($(CHECK_MKS87),same)
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
TRY_DOSNAME:=true
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
# Newer should be ok
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
ifeq ($(CHECK_MKS87),newer)
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
TRY_DOSNAME:=true
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
ifeq ($(TRY_DOSNAME),true)
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
ifeq ($(shell $(UNIXCOMMAND_PATH)dosname -s $(_system_drive)/ 2> $(DEV_NULL)),$(_system_drive)/)
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
_DOSNAME=$(UNIXCOMMAND_PATH)dosname
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
DOSNAME_CMD:=$(_DOSNAME) -s
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
define FullPath
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
$(subst //,/,$(shell echo $1 | $(DOSNAME_CMD) 2> $(DEV_NULL)))
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
endif # test dosname -s
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
endif # TRY_DOSNAME
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
endif # MKS
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
# We try to get references to what we need via the default component
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
#    environment variables, or what was used historically.
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
# Process Windows values into FullPath values, these paths may have \ chars
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   177
# Program Files directory
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   178
ifndef SHORTPROGRAMFILES
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   179
  ifdef PROGRAMFILES
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   180
    xPROGRAMFILES      :="$(subst \,/,$(PROGRAMFILES))"
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
  else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   182
    ifeq ($(ARCH_DATA_MODEL), 32)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   183
      xPROGRAMFILES    :="$(_system_drive)/Program Files"
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
    else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   185
      xPROGRAMFILES    :="$(_system_drive)/Program Files (x86)"
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
  ifeq ($(ARCH_DATA_MODEL), 32)
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   189
    SHORTPROGRAMFILES  :=$(call FullPath,$(xPROGRAMFILES))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
  else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   191
    ifdef PROGRAMW6432
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   192
      xPROGRAMW6432    :="$(subst \,/,$(PROGRAMW6432))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   193
    else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   194
      xPROGRAMW6432    :="$(_system_drive)/Program Files"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   195
    endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   196
    SHORTPROGRAMFILES  :=$(call FullPath,$(xPROGRAMW6432))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   198
  ifneq ($(word 1,$(SHORTPROGRAMFILES)),$(SHORTPROGRAMFILES))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   199
    SHORTPROGRAMFILES  :=
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   201
  export SHORTPROGRAMFILES
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
# Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
ifeq ($(ARCH_DATA_MODEL), 32)
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   206
  ifndef SHORTMSVCDIR
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   207
    # Try looking in MSVCDIR or MSVCDir area first (set by vcvars32.bat)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   208
    ifdef MSVCDIR
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   209
      xMSVCDIR         :="$(subst \,/,$(MSVCDIR))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   210
      SHORTMSVCDIR     :=$(call FullPath,$(xMSVCDIR))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
    else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   212
      ifdef MSVCDir
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   213
        xMSVCDIR       :="$(subst \,/,$(MSVCDir))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   214
        SHORTMSVCDIR   :=$(call FullPath,$(xMSVCDIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   215
      else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   216
        ifneq ($(SHORTPROGRAMFILES),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   217
          xMSVCDIR     :="$(SHORTPROGRAMFILES)/Microsoft Visual Studio .NET 2003/Vc7"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   218
          SHORTMSVCDIR :=$(call FullPath,$(xMSVCDIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   219
        endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
      endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
    endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   222
    ifneq ($(subst MSDev98,OLDOLDOLD,$(SHORTMSVCDIR)),$(SHORTMSVCDIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   223
      SHORTMSVCDIR     :=
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   224
    endif
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   225
    # If we still don't have it, look for VS100COMNTOOLS, setup by installer?
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   226
    ifeq ($(SHORTMSVCDIR),)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   227
      ifdef VS100COMNTOOLS  # /Common/Tools directory, use ../../Vc
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   228
        xVS100COMNTOOLS :="$(subst \,/,$(VS100COMNTOOLS))"
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   229
        _vs100tools     :=$(call FullPath,$(xVS100COMNTOOLS))
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   230
      endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   231
      ifneq ($(_vs100tools),)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   232
        SHORTMSVCDIR   :=$(_vs100tools)/../../Vc
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   233
      endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   234
    endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   235
    export SHORTMSVCDIR
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   236
    # If we still don't have it, look for VS71COMNTOOLS, setup by installer?
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   237
    ifeq ($(SHORTMSVCDIR),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   238
      ifdef VS71COMNTOOLS  # /Common/Tools directory, use ../../Vc7
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   239
        xVS71COMNTOOLS :="$(subst \,/,$(VS71COMNTOOLS))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   240
        _vs71tools     :=$(call FullPath,$(xVS71COMNTOOLS))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   241
      endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   242
      ifneq ($(_vs71tools),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   243
        SHORTMSVCDIR   :=$(_vs71tools)/../../Vc7
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   244
      endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   245
    endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   246
    export SHORTMSVCDIR
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   248
  ifneq ($(SHORTMSVCDIR),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   249
    SHORTCOMPILERBIN   :=$(SHORTMSVCDIR)/Bin
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   250
    SHORTPSDK          :=$(SHORTMSVCDIR)/PlatformSDK
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   251
    export SHORTCOMPILERBIN
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   252
    export SHORTPSDK
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
# The Microsoft Platform SDK installed by itself
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   257
ifneq ($(SHORTPROGRAMFILES),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   258
  ifndef SHORTPSDK
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   259
    xPSDK       :="$(SHORTPROGRAMFILES)/Microsoft Platform SDK"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   260
    SHORTPSDK   :=$(call FullPath,$(xPSDK))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   261
    ifeq ($(SHORTPSDK),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   262
      xPSDK     :="$(SHORTPROGRAMFILES)/Microsoft SDK"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   263
      SHORTPSDK :=$(call FullPath,$(xMSSDK))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   264
    endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   265
    export SHORTPSDK
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
# If no SDK found yet, look in other places
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   270
ifndef SHORTPSDK
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
  ifdef MSSDK
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   272
    xMSSDK      :="$(subst \,/,$(MSSDK))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   273
    SHORTPSDK   :=$(call FullPath,$(xMSSDK))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
  else
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
    ifdef MSSdk
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   276
      xMSSDK    :="$(subst \,/,$(MSSdk))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   277
      SHORTPSDK :=$(call FullPath,$(xMSSDK))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   280
  export SHORTPSDK
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
# Compilers for 64bit are from SDK
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
ifeq ($(ARCH_DATA_MODEL), 64)
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   285
  ifndef SHORTCOMPILERBIN
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   286
    ifdef VS100COMNTOOLS  # /Common7/Tools directory, use ../../Vc
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   287
      xVS100COMNTOOLS :="$(subst \,/,$(VS100COMNTOOLS))"
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   288
      _vs100tools     :=$(call FullPath,$(xVS100COMNTOOLS))
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   289
    endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   290
    ifneq ($(_vs100tools),)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   291
      SHORTCOMPILERBIN :=$(_vs100tools)/../../Vc/bin/amd64
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   292
      xMSSDK70      :="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/"
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   293
      MSSDK7        :=$(call FullPath,$(xMSSDK70))
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   294
      export MSSDK7
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   295
    else
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   296
      xMSSDK61 :="C:/Program Files/Microsoft SDKs/Windows/v6.1/"
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   297
      MSSDK61 :=$(call FullPath,$(xMSSDK61))
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   298
      xVS2008 :="C:/Program Files (x86)/Microsoft Visual Studio 9.0/"
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   299
      _vs2008 :=$(call FullPath,$(xVS2008))
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   300
      ifneq ($(_vs2008),)
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   301
        ifeq ($(ARCH), ia64)
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   302
          SHORTCOMPILERBIN :=$(_vs2008)/VC/Bin/x86_ia64
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   303
        endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   304
        ifeq ($(ARCH), amd64)
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   305
          SHORTCOMPILERBIN :=$(_vs2008)/VC/Bin/$(ARCH)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   306
        endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   307
      else
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   308
        ifneq ($(SHORTPSDK),)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   309
          ifeq ($(ARCH), ia64)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   310
            SHORTCOMPILERBIN :=$(SHORTPSDK)/Bin/Win64
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   311
          endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   312
          ifeq ($(ARCH), amd64)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   313
            SHORTCOMPILERBIN :=$(SHORTPSDK)/Bin/Win64/x86/$(ARCH)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   314
          endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   315
        endif
2200
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 4
diff changeset
   316
      endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
    endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   318
    export SHORTCOMPILERBIN
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
# Location on system where jdk installs might be
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   323
ifneq ($(SHORTPROGRAMFILES),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   324
  USRJDKINSTANCES_PATH =$(SHORTPROGRAMFILES)/Java
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
else
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
  USRJDKINSTANCES_PATH =$(_system_drive)/
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
# SLASH_JAVA: location of all network accessable files
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   330
ifndef SLASH_JAVA
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   331
  ifdef ALT_SLASH_JAVA
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   332
    xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   333
    SLASH_JAVA      :=$(call FullPath,$(xALT_SLASH_JAVA))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
  else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   335
    ifdef ALT_JDK_JAVA_DRIVE
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   336
      SLASH_JAVA  =$(JDK_JAVA_DRIVE)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   337
    else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   338
      SLASH_JAVA  =J:
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   339
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   341
  SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   342
  SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   343
  export SLASH_JAVA
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
# JDK_DEVTOOLS_DIR: common path for all the java devtools
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   347
ifndef JDK_DEVTOOLS_DIR
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   348
  ifdef ALT_JDK_DEVTOOLS_DIR
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   349
    xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   350
    JDK_DEVTOOLS_DIR      :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   351
  else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   352
    JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   353
  endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   354
  JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   355
  JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   356
  export JDK_DEVTOOLS_DIR
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
# COMPILER_PATH: path to where the compiler and tools are installed.
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   361
ifndef COMPILER_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   362
  ifdef ALT_COMPILER_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   363
    xALT_COMPILER_PATH  :="$(subst \,/,$(ALT_COMPILER_PATH))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   364
    fxALT_COMPILER_PATH :=$(call FullPath,$(xALT_COMPILER_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   365
    COMPILER_PATH       :=$(call PrefixPath,$(fxALT_COMPILER_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   366
  else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   367
    COMPILER_PATH :=$(call PrefixPath,$(SHORTCOMPILERBIN))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   368
  endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   369
  COMPILER_PATH :=$(call AltCheckSpaces,COMPILER_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   370
  export COMPILER_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
# MSDEVTOOLS_PATH: path to where the additional MS Compiler tools are.
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   375
ifndef MSDEVTOOLS_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   376
  ifdef ALT_MSDEVTOOLS_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   377
    xALT_MSDEVTOOLS_PATH  :="$(subst \,/,$(ALT_MSDEVTOOLS_PATH))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   378
    fxALT_MSDEVTOOLS_PATH :=$(call FullPath,$(xALT_MSDEVTOOLS_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   379
    MSDEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_MSDEVTOOLS_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   380
  else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   381
    ifeq ($(ARCH_DATA_MODEL), 64)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   382
      ifdef MSTOOLS
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   383
        xMSTOOLS  :="$(subst \,/,$(MSTOOLS))"
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
        _ms_tools :=$(call FullPath,$(xMSTOOLS))
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
      else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   386
        ifdef Mstools
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   387
          xMSTOOLS  :="$(subst \,/,$(Mstools))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   388
          _ms_tools :=$(call FullPath,$(xMSTOOLS))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   389
        else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   390
          _ms_tools :=
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   391
        endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
      endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   393
      ifneq ($(_ms_tools),)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   394
        _ms_tools_bin :=$(_ms_tools)/Bin
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   395
      else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   396
        # Assumes compiler bin is .../Bin/win64/x86/AMD64, rc.exe is 3 levels up
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   397
        _ms_tools_bin :=$(SHORTCOMPILERBIN)/../../..
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   398
      endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
    else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   400
      _ms_tools_bin :=$(SHORTCOMPILERBIN)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
    endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   402
    MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   404
  MSDEVTOOLS_PATH:=$(call AltCheckSpaces,MSDEVTOOLS_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   405
  export MSDEVTOOLS_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   410
ifndef DEVTOOLS_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   411
  ifdef ALT_DEVTOOLS_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   412
    xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   413
    fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   414
    DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
  else
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   416
    ifdef USING_CYGWIN
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   417
      DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   418
    else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   419
      xDEVTOOLS_PATH  :="$(_system_drive)/utils"
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   420
      fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   421
      DEVTOOLS_PATH  :=$(call PrefixPath,$(fxDEVTOOLS_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   422
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
  endif
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   424
  DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   425
  export DEVTOOLS_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
# _BOOTDIR2: Second choice
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
ifndef ALT_BOOTDIR
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
# Import JDK images allow for partial builds, components not built are
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
#    imported (or copied from) these import areas when needed.
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   440
ifndef BUILD_JDK_IMPORT_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   441
  ifdef ALT_BUILD_JDK_IMPORT_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   442
    BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   443
  else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   444
    BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   445
  endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   446
  BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   447
  BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   448
  export BUILD_JDK_IMPORT_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   452
ifndef JDK_IMPORT_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   453
  ifdef ALT_JDK_IMPORT_PATH
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   454
    JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   455
  else
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   456
    JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   457
  endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   458
  JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   459
  JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 3291
diff changeset
   460
  export JDK_IMPORT_PATH
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   462