corba/make/common/shared/Compiler-msvc.gmk
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 5385 8308e15f228e
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
# MSVC Compiler settings
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
ifeq ($(PLATFORM), windows)
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
  CC           = $(COMPILER_PATH)cl
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
  CPP          = $(COMPILER_PATH)cl
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
  CXX          = $(COMPILER_PATH)cl
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
  CCC          = $(COMPILER_PATH)cl
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
  LIBEXE       = $(COMPILER_PATH)lib
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
  LINK         = $(COMPILER_PATH)link
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
  RC           = $(MSDEVTOOLS_PATH)rc
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
  LINK32       = $(LINK)
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
  RSC          = $(RC)
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
 
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
  # Fill in unknown values
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
  COMPILER_NAME=Unknown MSVC Compiler
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
  COMPILER_VERSION=
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
  REQUIRED_CC_VER=
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
  REQUIRED_LINK_VER=
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
  
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
  # unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
  NMAKE          = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
1347
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    50
  # Compiler version and type (Always get word after "Version")
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    51
  ifndef CC_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    52
    CC_VER  := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(SED) 's/.*\(Version.*\)/\1/' | $(NAWK) '{print $$2}')
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    53
    export CC_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    54
  endif
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    55
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
  # SDK-64 and MSVC6 put REBASE.EXE in a different places - go figure...
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
  ifeq ($(ARCH_DATA_MODEL), 32)
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    58
    ifndef LINK_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    59
      LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    60
      export LINK_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
    61
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
    ifeq ($(CC_MAJORVER), 13)
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
      # This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
1347
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    65
      REQUIRED_CC_VER = 13.10.3077
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    66
      REQUIRED_LINK_VER = 7.10.3077
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
      COMPILER_NAME=Visual Studio .NET 2003 Professional C++
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
      COMPILER_VERSION=VS2003
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
      REBASE     = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
      MTL        = $(COMPILER_PATH)../../Common7/Tools/Bin/midl
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
      ifndef COMPILER_PATH
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
      endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
    ifeq ($(CC_MAJORVER), 14)
1347
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    76
      # This should be: CC_VER=14.00.50727.42 LINK_VER=8.00.50727.42
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    77
      REQUIRED_CC_VER = 14.00.50727.42
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    78
      REQUIRED_LINK_VER = 8.00.50727.42
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    79
      COMPILER_NAME=Visual Studio 8
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
      COMPILER_VERSION=VS2005
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
      REBASE     = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
      MTL        = $(COMPILER_PATH)../../Common8/Tools/Bin/midl
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
      ifndef COMPILER_PATH
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
      endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
    endif
1347
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    87
    ifeq ($(CC_MAJORVER), 15)
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    88
      # This should be: CC_VER=15.00.21022.08 LINK_VER=9.00.21022.08
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    89
      REQUIRED_CC_VER = 15.00.21022.08
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    90
      REQUIRED_LINK_VER = 9.00.21022.08
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    91
      COMPILER_NAME=Visual Studio 9
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    92
      COMPILER_VERSION=VS2008
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    93
      #rebase and midl moved out of Visual Studio into the SDK:
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    94
      REBASE     = $(MSDEVTOOLS_PATH)/rebase
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    95
      MTL        = $(MSDEVTOOLS_PATH)/midl.exe
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    96
      ifndef COMPILER_PATH
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    97
	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    98
      endif
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
    99
    endif
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   100
    ifeq ($(CC_MAJORVER), 16)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   101
      # This should be: CC_VER=16.00.30319.01 LINK_VER=10.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   102
      REQUIRED_CC_VER = 16.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   103
      REQUIRED_LINK_VER = 10.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   104
      COMPILER_NAME=Visual Studio 10
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   105
      COMPILER_VERSION=VS2010
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   106
      #rebase and midl moved out of Visual Studio into the SDK:
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   107
      REBASE     = $(MSDEVTOOLS_PATH)/rebase
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   108
      MTL        = $(MSDEVTOOLS_PATH)/midl.exe
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   109
      ifndef COMPILER_PATH
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   110
	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   111
      endif
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   112
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
  else
1347
1b32e0d45be0 6759959: VS2008 errors compiling corba sources
tbell
parents: 4
diff changeset
   114
    # else ARCH_DATA_MODEL is 64
3871
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
   115
    ifndef LINK_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
   116
      LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
   117
      export LINK_VER
3d528461f61d 6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents: 2200
diff changeset
   118
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
    CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
    CC_MINORVER :=$(call MinorVersion,$(CC_VER))
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
    CC_MICROVER :=$(call MicroVersion,$(CC_VER))
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
    ifeq ($(ARCH), ia64)
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
      REQUIRED_CC_VER = 13.00.9337.7
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
      REQUIRED_LINK_VER = 7.00.9337.7
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
    ifeq ($(ARCH), amd64)
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
      REQUIRED_CC_VER = 14.00.40310.41
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
      REQUIRED_LINK_VER = 8.00.40310.39
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
    ifeq ($(CC_MAJORVER), 13)
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
      ifeq ($(ARCH), ia64)
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
        # This should be: CC_VER=13.00.9337.7 LINK_VER=7.00.9337.7
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
        COMPILER_NAME=Microsoft Platform SDK - November 2001 Edition
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
        COMPILER_VERSION=VS2003
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
      endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
    ifeq ($(CC_MAJORVER), 14)
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
      ifeq ($(ARCH), amd64)
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
        ifeq ($(CC_MICROVER), 30701)
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
          # This should be: CC_VER=14.00.30701 LINK_VER=8.00.30701
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
	  # WARNING: it says 14, but it is such an early build it doesn't
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
	  #          have all the VS2005 compiler option changes, so treat
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
	  #          this like a VS2003 compiler.
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
          COMPILER_NAME=Microsoft Platform SDK - February 2003 Edition
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
          COMPILER_VERSION=VS2003
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
        else
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
          # This should be: CC_VER=14.00.40310.41 LINK_VER=8.00.40310.39
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
	  COMPILER_NAME=Microsoft Platform SDK - April 2005 Edition (3790.1830)
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
          COMPILER_VERSION=VS2005
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
        endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
      endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
    endif
2200
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   153
    ifeq ($(CC_MAJORVER), 15)
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   154
      # This should be: CC_VER=15.00.21022.8 LINK_VER=9.00.21022.8
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   155
      REQUIRED_CC_VER = 15.00.21022.8
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   156
      REQUIRED_LINK_VER = 9.00.21022.8
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   157
      COMPILER_NAME=Windows SDK 6.1 Visual Studio 9
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   158
      COMPILER_VERSION=VS2008
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   159
      RC = $(MSSDK61)/bin/x64/rc
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   160
      REBASE = $(MSSDK61)/bin/x64/rebase
2200
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   161
    else
5385
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   162
      ifeq ($(CC_MAJORVER), 16)
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   163
        # This should be: CC_VER=16.00.30319.01 LINK_VER=9.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   164
        REQUIRED_CC_VER = 16.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   165
        REQUIRED_LINK_VER = 10.00.30319.01
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   166
        COMPILER_NAME=Microsoft Visual Studio 10
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   167
        COMPILER_VERSION=VS2010
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   168
        RC = $(MSSDK7)/bin/x64/rc
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   169
        REBASE = $(MSSDK7)/bin/x64/rebase
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   170
      else
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   171
        # This will cause problems if ALT_COMPILER_PATH is defined to ""
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   172
        # which is a directive to use the PATH.
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   173
        REBASE         = $(COMPILER_PATH)../REBASE
8308e15f228e 6931180: Migration to recent versions of MS Platform SDK
prr
parents: 3871
diff changeset
   174
      endif
2200
69f669804c0a 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents: 2192
diff changeset
   175
    endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
    ifndef COMPILER_PATH
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
      COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
    endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
  ifndef COMPILER_VERSION
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
    COMPILER_VERSION := $(error COMPILER_VERSION cannot be empty here)
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
  # Shared library generation flag
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
  SHARED_LIBRARY_FLAG = -LD
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   186