jdk/make/common/shared/Compiler-msvc.gmk
changeset 2158 68869a085470
parent 1776 33e9405ab91b
child 2186 53da56fa3bf9
equal deleted inserted replaced
1795:5843778bda89 2158:68869a085470
    39   RSC          = $(RC)
    39   RSC          = $(RC)
    40  
    40  
    41   # Fill in unknown values
    41   # Fill in unknown values
    42   COMPILER_NAME=Unknown MSVC Compiler
    42   COMPILER_NAME=Unknown MSVC Compiler
    43   COMPILER_VERSION=
    43   COMPILER_VERSION=
    44   REQUIRED_CC_VER=
       
    45   REQUIRED_LINK_VER=
       
    46   
    44   
    47   # unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
    45   # unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
    48   NMAKE          = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
    46   NMAKE          = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
    49 
    47 
    50   # Compiler version and type (Always get word after "Version")
    48   # Compiler version and type (Always get word after "Version")
    54   ifeq ($(ARCH_DATA_MODEL), 32)
    52   ifeq ($(ARCH_DATA_MODEL), 32)
    55     LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
    53     LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
    56     CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
    54     CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
    57     ifeq ($(CC_MAJORVER), 13)
    55     ifeq ($(CC_MAJORVER), 13)
    58       # This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
    56       # This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
    59       REQUIRED_CC_VER = 13.10.3077
       
    60       REQUIRED_LINK_VER = 7.10.3077
       
    61       COMPILER_NAME=Visual Studio .NET 2003 Professional C++
    57       COMPILER_NAME=Visual Studio .NET 2003 Professional C++
    62       COMPILER_VERSION=VS2003
    58       COMPILER_VERSION=VS2003
    63       REBASE     = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
    59       REBASE     = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
    64       MTL        = $(COMPILER_PATH)../../Common7/Tools/Bin/midl
    60       MTL        = $(COMPILER_PATH)../../Common7/Tools/Bin/midl
    65       ifndef COMPILER_PATH
    61       ifndef COMPILER_PATH
    66 	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
    62 	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
    67       endif
    63       endif
    68     endif
    64     endif
    69     ifeq ($(CC_MAJORVER), 14)
    65     ifeq ($(CC_MAJORVER), 14)
    70       # This should be: CC_VER=14.00.50727.42 LINK_VER=8.00.50727.42
       
    71       REQUIRED_CC_VER = 14.00.50727.42
       
    72       REQUIRED_LINK_VER = 8.00.50727.42
       
    73       COMPILER_NAME=Visual Studio 8
    66       COMPILER_NAME=Visual Studio 8
    74       COMPILER_VERSION=VS2005
    67       COMPILER_VERSION=VS2005
    75       REBASE     = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
    68       REBASE     = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
    76       MTL        = $(COMPILER_PATH)../../Common8/Tools/Bin/midl
    69       MTL        = $(COMPILER_PATH)../../Common8/Tools/Bin/midl
    77       MT         = $(MSDEVTOOLS_PATH)mt
    70       MT         = $(MSDEVTOOLS_PATH)mt
    78       ifndef COMPILER_PATH
    71       ifndef COMPILER_PATH
    79 	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
    72 	COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
    80       endif
    73       endif
    81     endif
    74     endif
    82     ifeq ($(CC_MAJORVER), 15)
    75     ifeq ($(CC_MAJORVER), 15)
    83       # This should be: CC_VER=15.00.21022.08 LINK_VER=9.00.21022.08
       
    84       REQUIRED_CC_VER = 15.00.21022.08
       
    85       REQUIRED_LINK_VER = 9.00.21022.08
       
    86       COMPILER_NAME=Visual Studio 9
    76       COMPILER_NAME=Visual Studio 9
    87       COMPILER_VERSION=VS2008
    77       COMPILER_VERSION=VS2008
    88       #rebase and midl moved out of Visual Studio into the SDK:
    78       #rebase and midl moved out of Visual Studio into the SDK:
    89       REBASE     = $(MSDEVTOOLS_PATH)/rebase
    79       REBASE     = $(MSDEVTOOLS_PATH)/rebase
    90       MTL        = $(MSDEVTOOLS_PATH)/midl.exe
    80       MTL        = $(MSDEVTOOLS_PATH)/midl.exe
    97     # else ARCH_DATA_MODEL is 64
    87     # else ARCH_DATA_MODEL is 64
    98     LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
    88     LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
    99     CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
    89     CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
   100     CC_MINORVER :=$(call MinorVersion,$(CC_VER))
    90     CC_MINORVER :=$(call MinorVersion,$(CC_VER))
   101     CC_MICROVER :=$(call MicroVersion,$(CC_VER))
    91     CC_MICROVER :=$(call MicroVersion,$(CC_VER))
   102     ifeq ($(ARCH), ia64)
       
   103       REQUIRED_CC_VER = 13.00.9337.7
       
   104       REQUIRED_LINK_VER = 7.00.9337.7
       
   105     endif
       
   106     ifeq ($(ARCH), amd64)
       
   107       REQUIRED_CC_VER = 14.00.40310.41
       
   108       REQUIRED_LINK_VER = 8.00.40310.39
       
   109     endif
       
   110     ifeq ($(CC_MAJORVER), 13)
    92     ifeq ($(CC_MAJORVER), 13)
   111       ifeq ($(ARCH), ia64)
    93       ifeq ($(ARCH), ia64)
   112         # This should be: CC_VER=13.00.9337.7 LINK_VER=7.00.9337.7
    94         # This should be: CC_VER=13.00.9337.7 LINK_VER=7.00.9337.7
   113         COMPILER_NAME=Microsoft Platform SDK - November 2001 Edition
    95         COMPILER_NAME=Microsoft Platform SDK - November 2001 Edition
   114         COMPILER_VERSION=VS2003
    96         COMPILER_VERSION=VS2003