jdk/make/common/shared/Compiler-msvc.gmk
author ohair
Wed, 16 Mar 2011 15:01:07 -0700
changeset 8593 d7436373981b
parent 8008 753c38f4af83
child 8827 f0f30d988312
permissions -rw-r--r--
7027923: Disable VS2003 use in preparation for all VS2003 make logic removal Reviewed-by: prr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
     2
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5381
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# MSVC Compiler settings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
  CC           = $(COMPILER_PATH)cl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  CPP          = $(COMPILER_PATH)cl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
  CXX          = $(COMPILER_PATH)cl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  CCC          = $(COMPILER_PATH)cl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  LIBEXE       = $(COMPILER_PATH)lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  LINK         = $(COMPILER_PATH)link
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  LINK32       = $(LINK)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7665
diff changeset
    38
  DUMPBIN      = $(COMPILER_PATH)dumpbin.exe
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
  # Fill in unknown values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  COMPILER_NAME=Unknown MSVC Compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  COMPILER_VERSION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
  # unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  NMAKE          = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
308
33a1639d64a5 6482134: JDK 6 build error on Windows, Visual Studio .NET on Japanese locale
ohair
parents: 2
diff changeset
    47
  # Compiler version and type (Always get word after "Version")
33a1639d64a5 6482134: JDK 6 build error on Windows, Visual Studio .NET on Japanese locale
ohair
parents: 2
diff changeset
    48
  CC_VER  := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(SED) 's/.*\(Version.*\)/\1/' | $(NAWK) '{print $$2}')
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    49
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    50
  # The MSDEVTOOLS_PATH is for older compilers, place for rc, mt, etc.
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    51
  _OTHER_TOOLS_PATH = $(MSDEVTOOLS_PATH)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    52
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  # SDK-64 and MSVC6 put REBASE.EXE in a different places - go figure...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    ifeq ($(CC_MAJORVER), 13)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
      # This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
      COMPILER_NAME=Visual Studio .NET 2003 Professional C++
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
      COMPILER_VERSION=VS2003
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    61
      RC         = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
      REBASE     = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
      MTL        = $(COMPILER_PATH)../../Common7/Tools/Bin/midl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    ifeq ($(CC_MAJORVER), 14)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    66
      COMPILER_NAME=Visual Studio 8
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
      COMPILER_VERSION=VS2005
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    68
      RC         = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
      REBASE     = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
      MTL        = $(COMPILER_PATH)../../Common8/Tools/Bin/midl
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    71
      MT         = $(_OTHER_TOOLS_PATH)/mt
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    72
    endif
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    73
    ifeq ($(CC_MAJORVER), 15)
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    74
      COMPILER_NAME=Visual Studio 9
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    75
      COMPILER_VERSION=VS2008
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    76
      RC         = $(_OTHER_TOOLS_PATH)rc
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    77
      #rebase and midl moved out of Visual Studio into the SDK:
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    78
      REBASE     = $(_OTHER_TOOLS_PATH)/rebase
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    79
      MTL        = $(_OTHER_TOOLS_PATH)/midl.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    80
      MT         = $(_OTHER_TOOLS_PATH)mt
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
    81
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
  else
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    83
    # else ARCH_DATA_MODEL is 64
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    CC_MINORVER :=$(call MinorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    CC_MICROVER :=$(call MicroVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    ifeq ($(CC_MAJORVER), 13)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
      ifeq ($(ARCH), ia64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        # This should be: CC_VER=13.00.9337.7 LINK_VER=7.00.9337.7
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        COMPILER_NAME=Microsoft Platform SDK - November 2001 Edition
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        COMPILER_VERSION=VS2003
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    93
        RC = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    ifeq ($(CC_MAJORVER), 14)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
      ifeq ($(ARCH), amd64)
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
    98
        #rebase and midl moved out of Visual Studio into the SDK:
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    99
        RC         = $(_OTHER_TOOLS_PATH)/rc
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   100
        REBASE     = $(_OTHER_TOOLS_PATH)/rebase
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   101
        MTL        = $(_OTHER_TOOLS_PATH)/midl.exe
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        ifeq ($(CC_MICROVER), 30701)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
          # This should be: CC_VER=14.00.30701 LINK_VER=8.00.30701
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
	  # WARNING: it says 14, but it is such an early build it doesn't
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
	  #          have all the VS2005 compiler option changes, so treat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
	  #          this like a VS2003 compiler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
          COMPILER_NAME=Microsoft Platform SDK - February 2003 Edition
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
          COMPILER_VERSION=VS2003
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
          # This should be: CC_VER=14.00.40310.41 LINK_VER=8.00.40310.39
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
	  COMPILER_NAME=Microsoft Platform SDK - April 2005 Edition (3790.1830)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
          COMPILER_VERSION=VS2005
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        endif
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
   114
      else
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
   115
        REBASE         = $(COMPILER_PATH)../rebase
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   118
    ifeq ($(CC_MAJORVER), 15)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   119
      COMPILER_NAME=Microsoft Windows SDK with Visual Studio 9 (6001.18000.367)
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   120
      COMPILER_VERSION=VS2008
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   121
      RC = $(MSSDK61)/Bin/X64/rc.exe
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   122
      MT = $(MSSDK61)/Bin/X64/mt.exe
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
   123
      MTL = $(MSSDK61)/Bin/X64/midl.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
   124
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   125
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   126
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   127
  # The VS2010 compiler is the same one used on both 32bit and 64bit
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   128
  ifeq ($(CC_MAJORVER), 16)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   129
    COMPILER_NAME=Microsoft Visual Studio 10 (16.00.30319.01)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   130
    COMPILER_VERSION=VS2010
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   131
    ifeq ($(WINDOWSSDKDIR),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   132
      WINDOWSSDKDIR := $(error WINDOWSSDKDIR cannot be empty here)
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   133
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   134
    ifeq ($(ARCH_DATA_MODEL), 32)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   135
      _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   136
    else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   137
      ifeq ($(ARCH), ia64)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   138
        _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/ia64
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   139
      else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   140
        _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/x64
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   141
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    endif
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7665
diff changeset
   143
    RC     = $(_OTHER_TOOLS_BIN)/RC.Exe
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7665
diff changeset
   144
    REBASE = $(_OTHER_TOOLS_BIN)/ReBase.Exe
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   145
    MT     = $(_OTHER_TOOLS_BIN)/mt.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   146
    MTL    = $(_OTHER_TOOLS_BIN)/midl.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   147
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   148
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   149
  # These variables can never be empty
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   150
  ifndef COMPILER_PATH
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   151
    COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
  ifndef COMPILER_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    COMPILER_VERSION := $(error COMPILER_VERSION cannot be empty here)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
  endif
8593
d7436373981b 7027923: Disable VS2003 use in preparation for all VS2003 make logic removal
ohair
parents: 8008
diff changeset
   156
  ifneq ($(COMPILER_VERSION),VS2010)
d7436373981b 7027923: Disable VS2003 use in preparation for all VS2003 make logic removal
ohair
parents: 8008
diff changeset
   157
    COMPILER_VERSION := $(error COMPILER_VERSION must be VS2010)
d7436373981b 7027923: Disable VS2003 use in preparation for all VS2003 make logic removal
ohair
parents: 8008
diff changeset
   158
  endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   159
  
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
  # Shared library generation flag
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
  SHARED_LIBRARY_FLAG = -LD
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   162
  # RSC is always same as RC (Not sure who uses this RSC variable)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   163
  RSC = $(RC)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   164
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166