author | erikj |
Thu, 21 Feb 2013 14:23:12 +0100 | |
changeset 15825 | cbb8bc2c35da |
parent 9035 | 1255eb81cc2f |
child 20545 | 77ea1abb4480 |
permissions | -rw-r--r-- |
2 | 1 |
# |
9035
1255eb81cc2f
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8827
diff
changeset
|
2 |
# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# MSVC Compiler settings |
|
28 |
# |
|
29 |
||
30 |
ifeq ($(PLATFORM), windows) |
|
15825
cbb8bc2c35da
8007903: 8005583's changes to make/install-rules.gmk need to made to jdk/make/closed/InstallWrapper.gmk
erikj
parents:
9035
diff
changeset
|
31 |
ifndef CONFIGURE_BUILD |
2 | 32 |
CC = $(COMPILER_PATH)cl |
33 |
CPP = $(COMPILER_PATH)cl |
|
34 |
CXX = $(COMPILER_PATH)cl |
|
35 |
CCC = $(COMPILER_PATH)cl |
|
36 |
LIBEXE = $(COMPILER_PATH)lib |
|
37 |
LINK = $(COMPILER_PATH)link |
|
38 |
LINK32 = $(LINK) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7665
diff
changeset
|
39 |
DUMPBIN = $(COMPILER_PATH)dumpbin.exe |
15825
cbb8bc2c35da
8007903: 8005583's changes to make/install-rules.gmk need to made to jdk/make/closed/InstallWrapper.gmk
erikj
parents:
9035
diff
changeset
|
40 |
|
2 | 41 |
# Fill in unknown values |
42 |
COMPILER_NAME=Unknown MSVC Compiler |
|
43 |
COMPILER_VERSION= |
|
44 |
||
45 |
# unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake |
|
46 |
NMAKE = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo |
|
47 |
||
308
33a1639d64a5
6482134: JDK 6 build error on Windows, Visual Studio .NET on Japanese locale
ohair
parents:
2
diff
changeset
|
48 |
# 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
|
49 |
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
|
50 |
|
8827
f0f30d988312
7011718: VS2010, remove makefile logic with regards to use of VC6, VS2003, VS2005, VS2008
ohair
parents:
8593
diff
changeset
|
51 |
LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}') |
f0f30d988312
7011718: VS2010, remove makefile logic with regards to use of VC6, VS2003, VS2005, VS2008
ohair
parents:
8593
diff
changeset
|
52 |
CC_MAJORVER :=$(call MajorVersion,$(CC_VER)) |
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
53 |
|
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
54 |
# 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
|
55 |
ifeq ($(CC_MAJORVER), 16) |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
56 |
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
|
57 |
COMPILER_VERSION=VS2010 |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
58 |
ifeq ($(WINDOWSSDKDIR),) |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
59 |
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
|
60 |
endif |
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
61 |
ifeq ($(ARCH_DATA_MODEL), 32) |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
62 |
_OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
63 |
else |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
64 |
ifeq ($(ARCH), ia64) |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
65 |
_OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/ia64 |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
66 |
else |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
67 |
_OTHER_TOOLS_BIN = $(WINDOWSSDKDIR)/Bin/x64 |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
68 |
endif |
2 | 69 |
endif |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7665
diff
changeset
|
70 |
RC = $(_OTHER_TOOLS_BIN)/RC.Exe |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7665
diff
changeset
|
71 |
REBASE = $(_OTHER_TOOLS_BIN)/ReBase.Exe |
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
72 |
MT = $(_OTHER_TOOLS_BIN)/mt.exe |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
73 |
MTL = $(_OTHER_TOOLS_BIN)/midl.exe |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
74 |
endif |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
75 |
|
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
76 |
# These variables can never be empty |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
77 |
ifndef COMPILER_PATH |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
78 |
COMPILER_PATH := $(error COMPILER_PATH cannot be empty here) |
2 | 79 |
endif |
80 |
ifndef COMPILER_VERSION |
|
81 |
COMPILER_VERSION := $(error COMPILER_VERSION cannot be empty here) |
|
82 |
endif |
|
8593
d7436373981b
7027923: Disable VS2003 use in preparation for all VS2003 make logic removal
ohair
parents:
8008
diff
changeset
|
83 |
ifneq ($(COMPILER_VERSION),VS2010) |
d7436373981b
7027923: Disable VS2003 use in preparation for all VS2003 make logic removal
ohair
parents:
8008
diff
changeset
|
84 |
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
|
85 |
endif |
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
86 |
|
2 | 87 |
# Shared library generation flag |
88 |
SHARED_LIBRARY_FLAG = -LD |
|
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
89 |
# 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
|
90 |
RSC = $(RC) |
15825
cbb8bc2c35da
8007903: 8005583's changes to make/install-rules.gmk need to made to jdk/make/closed/InstallWrapper.gmk
erikj
parents:
9035
diff
changeset
|
91 |
endif |
2 | 92 |
endif |
93 |