Mercurial > hg > graal-compiler
annotate make/windows/makefiles/defs.make @ 1557:70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
Reviewed-by: ohair, jcoomes
author | prr |
---|---|
date | Wed, 16 Jun 2010 09:42:20 -0700 |
parents | c18cbe5936b8 |
children | e13a5c0ed5e2 |
rev | line source |
---|---|
0 | 1 # |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1485
diff
changeset
|
2 # Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1485
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1485
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1485
diff
changeset
|
21 # questions. |
0 | 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. | |
427
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
271
diff
changeset
|
28 # On windows it is only used to construct parameters for |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
29 # make/windows/build.make when make/Makefile is used to build VM. |
0 | 30 |
31 SLASH_JAVA ?= J: | |
32 PATH_SEP = ; | |
33 | |
34 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name | |
35 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),) | |
36 ARCH_DATA_MODEL=32 | |
37 PLATFORM=windows-i586 | |
38 VM_PLATFORM=windows_i486 | |
39 HS_ARCH=x86 | |
40 MAKE_ARGS += ARCH=x86 | |
41 MAKE_ARGS += BUILDARCH=i486 | |
42 MAKE_ARGS += Platform_arch=x86 | |
43 MAKE_ARGS += Platform_arch_model=x86_32 | |
44 endif | |
45 | |
46 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),) | |
47 ARCH_DATA_MODEL=64 | |
48 PLATFORM=windows-ia64 | |
49 VM_PLATFORM=windows_ia64 | |
50 HS_ARCH=ia64 | |
51 MAKE_ARGS += LP64=1 | |
52 MAKE_ARGS += ARCH=ia64 | |
53 MAKE_ARGS += BUILDARCH=ia64 | |
54 MAKE_ARGS += Platform_arch=ia64 | |
55 MAKE_ARGS += Platform_arch_model=ia64 | |
56 endif | |
57 | |
1485
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
58 # http://support.microsoft.com/kb/888731 : this can be either |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
59 # AMD64 for AMD, or EM64T for Intel chips. |
0 | 60 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),) |
61 ARCH_DATA_MODEL=64 | |
62 PLATFORM=windows-amd64 | |
63 VM_PLATFORM=windows_amd64 | |
64 HS_ARCH=x86 | |
65 MAKE_ARGS += LP64=1 | |
66 MAKE_ARGS += ARCH=x86 | |
67 MAKE_ARGS += BUILDARCH=amd64 | |
68 MAKE_ARGS += Platform_arch=x86 | |
69 MAKE_ARGS += Platform_arch_model=x86_64 | |
70 endif | |
71 | |
1557
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
72 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) EM64T),) |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
73 ARCH_DATA_MODEL=64 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
74 PLATFORM=windows-amd64 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
75 VM_PLATFORM=windows_amd64 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
76 HS_ARCH=x86 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
77 MAKE_ARGS += LP64=1 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
78 MAKE_ARGS += ARCH=x86 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
79 MAKE_ARGS += BUILDARCH=amd64 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
80 MAKE_ARGS += Platform_arch=x86 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
81 MAKE_ARGS += Platform_arch_model=x86_64 |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
82 endif |
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
83 |
1485
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
84 # NB later OS versions than 2003 may report "Intel64" |
1557
70191885f707
6961079: Build JDK7 for 64 bit Windows using free Windows 7.1 SDK 64 bit compilers
prr
parents:
1552
diff
changeset
|
85 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) Intel64),) |
1485
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
86 ARCH_DATA_MODEL=64 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
87 PLATFORM=windows-amd64 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
88 VM_PLATFORM=windows_amd64 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
89 HS_ARCH=x86 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
90 MAKE_ARGS += LP64=1 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
91 MAKE_ARGS += ARCH=x86 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
92 MAKE_ARGS += BUILDARCH=amd64 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
93 MAKE_ARGS += Platform_arch=x86 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
94 MAKE_ARGS += Platform_arch_model=x86_64 |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
95 endif |
fb57d4cf76c2
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
456
diff
changeset
|
96 |
0 | 97 JDK_INCLUDE_SUBDIR=win32 |
98 | |
427
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
271
diff
changeset
|
99 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined |
0 | 100 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make. |
101 | |
102 # next parameters are defined in $(GAMMADIR)/make/defs.make. | |
103 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) | |
104 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION) | |
105 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION) | |
106 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION) | |
107 | |
108 ifdef COOKED_JDK_UPDATE_VERSION | |
109 MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION) | |
110 endif | |
111 | |
112 # COOKED_BUILD_NUMBER should only be set if we have a numeric | |
113 # build number. It must not be zero padded. | |
114 ifdef COOKED_BUILD_NUMBER | |
115 MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER) | |
116 endif | |
117 | |
118 NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO | |
119 | |
120 # Check for CYGWIN | |
121 ifneq (,$(findstring CYGWIN,$(shell uname))) | |
122 USING_CYGWIN=true | |
123 else | |
124 USING_CYGWIN=false | |
125 endif | |
126 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms | |
127 VM_DEBUG=debug | |
128 | |
129 # Windows wants particular paths due to nmake (must be after macros defined) | |
130 # It is important that gnumake invokes nmake with C:\\...\\ formated | |
131 # strings so that nmake gets C:\...\ style strings. | |
132 # Check for CYGWIN | |
133 ifeq ($(USING_CYGWIN), true) | |
134 ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)")) | |
135 ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)")) | |
136 ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)")) | |
271
818a18cd69a8
6730514: assertion failure in mangling code when expanding by 0 bytes
jmasa
parents:
196
diff
changeset
|
137 ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make |
0 | 138 else |
139 ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD))) | |
140 ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD))) | |
141 ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD))) | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
142 ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make) |
0 | 143 endif |
144 | |
145 # Disable building SA on windows until we are sure | |
146 # we want to release it. If we build it here, | |
147 # the SDK makefiles will copy it over and put it into | |
148 # the created image. | |
456
b6272ef4a18f
6743339: Enable building sa-jdi.jar and sawindbg.dll on Windows with hotspot build
poonam
parents:
427
diff
changeset
|
149 BUILD_WIN_SA = 1 |
0 | 150 ifneq ($(ALT_BUILD_WIN_SA),) |
151 BUILD_WIN_SA = $(ALT_BUILD_WIN_SA) | |
152 endif | |
153 | |
154 ifeq ($(BUILD_WIN_SA), 1) | |
427
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
271
diff
changeset
|
155 ifeq ($(ARCH),ia64) |
0 | 156 BUILD_WIN_SA = 0 |
157 endif | |
158 endif | |
159 | |
160 EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server | |
161 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt | |
162 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll | |
163 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb | |
164 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map | |
165 EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib | |
166 ifeq ($(ARCH_DATA_MODEL), 32) | |
167 EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client | |
168 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt | |
169 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll | |
170 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb | |
171 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map | |
172 # kernel vm | |
173 EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel | |
174 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt | |
175 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll | |
176 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb | |
177 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map | |
178 endif | |
179 | |
180 ifeq ($(BUILD_WIN_SA), 1) | |
181 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll | |
182 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb | |
183 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map | |
427
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
271
diff
changeset
|
184 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar |
0 | 185 # Must pass this down to nmake. |
186 MAKE_ARGS += BUILD_WIN_SA=1 | |
187 endif |