jdk/make/common/shared/Compiler-msvc.gmk
author ohair
Tue, 21 Dec 2010 18:21:26 -0800
changeset 7665 bc5dbdc44e1e
parent 5506 202f599c92aa
child 8008 753c38f4af83
permissions -rw-r--r--
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location Reviewed-by: ksrini
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)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
  # Fill in unknown values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
  COMPILER_NAME=Unknown MSVC Compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  COMPILER_VERSION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  # unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
  NMAKE          = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
308
33a1639d64a5 6482134: JDK 6 build error on Windows, Visual Studio .NET on Japanese locale
ohair
parents: 2
diff changeset
    46
  # 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
    47
  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
    48
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    49
  # 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
    50
  _OTHER_TOOLS_PATH = $(MSDEVTOOLS_PATH)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    51
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  # SDK-64 and MSVC6 put REBASE.EXE in a different places - go figure...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    ifeq ($(CC_MAJORVER), 13)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
      # This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
      COMPILER_NAME=Visual Studio .NET 2003 Professional C++
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
      COMPILER_VERSION=VS2003
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    60
      RC         = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
      REBASE     = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
      MTL        = $(COMPILER_PATH)../../Common7/Tools/Bin/midl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    ifeq ($(CC_MAJORVER), 14)
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    65
      COMPILER_NAME=Visual Studio 8
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
      COMPILER_VERSION=VS2005
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    67
      RC         = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
      REBASE     = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
      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
    70
      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
    71
    endif
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    72
    ifeq ($(CC_MAJORVER), 15)
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    73
      COMPILER_NAME=Visual Studio 9
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    74
      COMPILER_VERSION=VS2008
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    75
      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
    76
      #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
    77
      REBASE     = $(_OTHER_TOOLS_PATH)/rebase
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    78
      MTL        = $(_OTHER_TOOLS_PATH)/midl.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    79
      MT         = $(_OTHER_TOOLS_PATH)mt
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
    80
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
  else
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 715
diff changeset
    82
    # else ARCH_DATA_MODEL is 64
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    CC_MINORVER :=$(call MinorVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    CC_MICROVER :=$(call MicroVersion,$(CC_VER))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    ifeq ($(CC_MAJORVER), 13)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
      ifeq ($(ARCH), ia64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        # This should be: CC_VER=13.00.9337.7 LINK_VER=7.00.9337.7
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        COMPILER_NAME=Microsoft Platform SDK - November 2001 Edition
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        COMPILER_VERSION=VS2003
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    92
        RC = $(_OTHER_TOOLS_PATH)rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    ifeq ($(CC_MAJORVER), 14)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
      ifeq ($(ARCH), amd64)
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
    97
        #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
    98
        RC         = $(_OTHER_TOOLS_PATH)/rc
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
    99
        REBASE     = $(_OTHER_TOOLS_PATH)/rebase
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   100
        MTL        = $(_OTHER_TOOLS_PATH)/midl.exe
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        ifeq ($(CC_MICROVER), 30701)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
          # This should be: CC_VER=14.00.30701 LINK_VER=8.00.30701
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
	  # WARNING: it says 14, but it is such an early build it doesn't
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
	  #          have all the VS2005 compiler option changes, so treat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
	  #          this like a VS2003 compiler.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
          COMPILER_NAME=Microsoft Platform SDK - February 2003 Edition
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
          COMPILER_VERSION=VS2003
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
          # This should be: CC_VER=14.00.40310.41 LINK_VER=8.00.40310.39
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
	  COMPILER_NAME=Microsoft Platform SDK - April 2005 Edition (3790.1830)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
          COMPILER_VERSION=VS2005
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        endif
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
   113
      else
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2186
diff changeset
   114
        REBASE         = $(COMPILER_PATH)../rebase
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    endif
2186
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   117
    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
   118
      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
   119
      COMPILER_VERSION=VS2008
53da56fa3bf9 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2158
diff changeset
   120
      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
   121
      MT = $(MSSDK61)/Bin/X64/mt.exe
5381
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
   122
      MTL = $(MSSDK61)/Bin/X64/midl.exe
d6d64a42ff51 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3111
diff changeset
   123
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   124
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   125
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   126
  # 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
   127
  ifeq ($(CC_MAJORVER), 16)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   128
    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
   129
    COMPILER_VERSION=VS2010
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   130
    ifeq ($(WINDOWSSDKDIR),)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   131
      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
   132
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   133
    ifeq ($(ARCH_DATA_MODEL), 32)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   134
      _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   135
    else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   136
      ifeq ($(ARCH), ia64)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   137
        _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/ia64
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   138
      else
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   139
        _OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/x64
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   140
      endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   142
    RC     = $(_OTHER_TOOLS_BIN)/rc.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   143
    REBASE = $(_OTHER_TOOLS_BIN)/rebase.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   144
    MT     = $(_OTHER_TOOLS_BIN)/mt.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   145
    MTL    = $(_OTHER_TOOLS_BIN)/midl.exe
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   146
  endif
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   147
  
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   148
  # These variables can never be empty
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   149
  ifndef COMPILER_PATH
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   150
    COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  ifndef COMPILER_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    COMPILER_VERSION := $(error COMPILER_VERSION cannot be empty here)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
  endif
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   155
  
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
  # Shared library generation flag
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
  SHARED_LIBRARY_FLAG = -LD
7665
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   158
  # 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
   159
  RSC = $(RC)
bc5dbdc44e1e 6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents: 5506
diff changeset
   160
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162