author | duke |
Wed, 05 Jul 2017 17:32:52 +0200 | |
changeset 7867 | f83cd8bd35c6 |
parent 7662 | 5f31baaff55b |
child 10259 | fc6e02d351c4 |
permissions | -rw-r--r-- |
1 | 1 |
# |
7662
5f31baaff55b
7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
trims
parents:
5747
diff
changeset
|
2 |
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5377
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5377
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5377
diff
changeset
|
21 |
# questions. |
1 | 22 |
# |
23 |
# |
|
24 |
||
25 |
# The common definitions for hotspot windows builds. |
|
26 |
# Include the top level defs.make under make directory instead of this one. |
|
27 |
# This file is included into make/defs.make. |
|
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
28 |
# On windows it is only used to construct parameters for |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
29 |
# make/windows/build.make when make/Makefile is used to build VM. |
1 | 30 |
|
31 |
SLASH_JAVA ?= J: |
|
32 |
PATH_SEP = ; |
|
33 |
||
34 |
# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name |
|
5747
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
35 |
ifeq ($(ARCH_DATA_MODEL),32) |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
36 |
ARCH_DATA_MODEL=32 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
37 |
PLATFORM=windows-i586 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
38 |
VM_PLATFORM=windows_i486 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
39 |
HS_ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
40 |
MAKE_ARGS += ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
41 |
MAKE_ARGS += BUILDARCH=i486 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
42 |
MAKE_ARGS += Platform_arch=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
43 |
MAKE_ARGS += Platform_arch_model=x86_32 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
44 |
endif |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
45 |
|
1 | 46 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),) |
47 |
ARCH_DATA_MODEL=32 |
|
48 |
PLATFORM=windows-i586 |
|
49 |
VM_PLATFORM=windows_i486 |
|
50 |
HS_ARCH=x86 |
|
51 |
MAKE_ARGS += ARCH=x86 |
|
52 |
MAKE_ARGS += BUILDARCH=i486 |
|
53 |
MAKE_ARGS += Platform_arch=x86 |
|
54 |
MAKE_ARGS += Platform_arch_model=x86_32 |
|
55 |
endif |
|
56 |
||
5747
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
57 |
ifneq ($(ARCH_DATA_MODEL),32) |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
58 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),) |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
59 |
ARCH_DATA_MODEL=64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
60 |
PLATFORM=windows-ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
61 |
VM_PLATFORM=windows_ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
62 |
HS_ARCH=ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
63 |
MAKE_ARGS += LP64=1 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
64 |
MAKE_ARGS += ARCH=ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
65 |
MAKE_ARGS += BUILDARCH=ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
66 |
MAKE_ARGS += Platform_arch=ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
67 |
MAKE_ARGS += Platform_arch_model=ia64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
68 |
endif |
1 | 69 |
|
5377
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
70 |
# http://support.microsoft.com/kb/888731 : this can be either |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
71 |
# AMD64 for AMD, or EM64T for Intel chips. |
5747
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
72 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),) |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
73 |
ARCH_DATA_MODEL=64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
74 |
PLATFORM=windows-amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
75 |
VM_PLATFORM=windows_amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
76 |
HS_ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
77 |
MAKE_ARGS += LP64=1 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
78 |
MAKE_ARGS += ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
79 |
MAKE_ARGS += BUILDARCH=amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
80 |
MAKE_ARGS += Platform_arch=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
81 |
MAKE_ARGS += Platform_arch_model=x86_64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
82 |
endif |
1 | 83 |
|
5663
50e6ba3de490
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
5547
diff
changeset
|
84 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) EM64T),) |
5747
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
85 |
ARCH_DATA_MODEL=64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
86 |
PLATFORM=windows-amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
87 |
VM_PLATFORM=windows_amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
88 |
HS_ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
89 |
MAKE_ARGS += LP64=1 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
90 |
MAKE_ARGS += ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
91 |
MAKE_ARGS += BUILDARCH=amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
92 |
MAKE_ARGS += Platform_arch=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
93 |
MAKE_ARGS += Platform_arch_model=x86_64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
94 |
endif |
5663
50e6ba3de490
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
5547
diff
changeset
|
95 |
|
5377
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
96 |
# NB later OS versions than 2003 may report "Intel64" |
5747
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
97 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) Intel64),) |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
98 |
ARCH_DATA_MODEL=64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
99 |
PLATFORM=windows-amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
100 |
VM_PLATFORM=windows_amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
101 |
HS_ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
102 |
MAKE_ARGS += LP64=1 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
103 |
MAKE_ARGS += ARCH=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
104 |
MAKE_ARGS += BUILDARCH=amd64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
105 |
MAKE_ARGS += Platform_arch=x86 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
106 |
MAKE_ARGS += Platform_arch_model=x86_64 |
bc463c283871
6964882: 32 bit JDK does not build on 64 bit Windows platforms
prr
parents:
5663
diff
changeset
|
107 |
endif |
5377
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
108 |
endif |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
109 |
|
1 | 110 |
JDK_INCLUDE_SUBDIR=win32 |
111 |
||
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
112 |
# HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined |
1 | 113 |
# and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make. |
114 |
||
115 |
# next parameters are defined in $(GAMMADIR)/make/defs.make. |
|
116 |
MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) |
|
117 |
MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION) |
|
118 |
MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION) |
|
119 |
MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION) |
|
120 |
||
121 |
ifdef COOKED_JDK_UPDATE_VERSION |
|
122 |
MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION) |
|
123 |
endif |
|
124 |
||
125 |
# COOKED_BUILD_NUMBER should only be set if we have a numeric |
|
126 |
# build number. It must not be zero padded. |
|
127 |
ifdef COOKED_BUILD_NUMBER |
|
128 |
MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER) |
|
129 |
endif |
|
130 |
||
131 |
NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO |
|
132 |
||
133 |
# Check for CYGWIN |
|
134 |
ifneq (,$(findstring CYGWIN,$(shell uname))) |
|
135 |
USING_CYGWIN=true |
|
136 |
else |
|
137 |
USING_CYGWIN=false |
|
138 |
endif |
|
139 |
# FIXUP: The subdirectory for a debug build is NOT the same on all platforms |
|
140 |
VM_DEBUG=debug |
|
141 |
||
142 |
# Windows wants particular paths due to nmake (must be after macros defined) |
|
143 |
# It is important that gnumake invokes nmake with C:\\...\\ formated |
|
144 |
# strings so that nmake gets C:\...\ style strings. |
|
145 |
# Check for CYGWIN |
|
146 |
ifeq ($(USING_CYGWIN), true) |
|
147 |
ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)")) |
|
148 |
ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)")) |
|
149 |
ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)")) |
|
979
c9479f1e0a94
6730514: assertion failure in mangling code when expanding by 0 bytes
jmasa
parents:
670
diff
changeset
|
150 |
ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make |
1 | 151 |
else |
152 |
ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD))) |
|
153 |
ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD))) |
|
154 |
ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD))) |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
155 |
ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make) |
1 | 156 |
endif |
157 |
||
158 |
# Disable building SA on windows until we are sure |
|
159 |
# we want to release it. If we build it here, |
|
160 |
# the SDK makefiles will copy it over and put it into |
|
161 |
# the created image. |
|
1609
5eacab926e22
6743339: Enable building sa-jdi.jar and sawindbg.dll on Windows with hotspot build
poonam
parents:
1546
diff
changeset
|
162 |
BUILD_WIN_SA = 1 |
1 | 163 |
ifneq ($(ALT_BUILD_WIN_SA),) |
164 |
BUILD_WIN_SA = $(ALT_BUILD_WIN_SA) |
|
165 |
endif |
|
166 |
||
167 |
ifeq ($(BUILD_WIN_SA), 1) |
|
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
168 |
ifeq ($(ARCH),ia64) |
1 | 169 |
BUILD_WIN_SA = 0 |
170 |
endif |
|
171 |
endif |
|
172 |
||
173 |
EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server |
|
174 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt |
|
175 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll |
|
176 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb |
|
177 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map |
|
178 |
EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib |
|
179 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
180 |
EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client |
|
181 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt |
|
182 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll |
|
183 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb |
|
184 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map |
|
185 |
# kernel vm |
|
186 |
EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel |
|
187 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt |
|
188 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll |
|
189 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb |
|
190 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map |
|
191 |
endif |
|
192 |
||
193 |
ifeq ($(BUILD_WIN_SA), 1) |
|
194 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll |
|
195 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb |
|
196 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map |
|
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
197 |
EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar |
1 | 198 |
# Must pass this down to nmake. |
199 |
MAKE_ARGS += BUILD_WIN_SA=1 |
|
200 |
endif |