author | prr |
Tue, 11 May 2010 14:35:43 -0700 | |
changeset 5377 | bcf55c5acf4e |
parent 1609 | 5eacab926e22 |
child 5547 | f4b087cbb361 |
permissions | -rw-r--r-- |
1 | 1 |
# |
670 | 2 |
# Copyright 2006-2008 Sun Microsystems, Inc. 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 |
# |
|
19 |
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
20 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
21 |
# have any questions. |
|
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 |
|
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 |
||
5377
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
58 |
# 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
|
59 |
# AMD64 for AMD, or EM64T for Intel chips. |
1 | 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 |
||
5377
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
72 |
# NB later OS versions than 2003 may report "Intel64" |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
73 |
ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) "EM64T\|Intel64"),) |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
74 |
ARCH_DATA_MODEL=64 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
75 |
PLATFORM=windows-amd64 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
76 |
VM_PLATFORM=windows_amd64 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
77 |
HS_ARCH=x86 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
78 |
MAKE_ARGS += LP64=1 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
79 |
MAKE_ARGS += ARCH=x86 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
80 |
MAKE_ARGS += BUILDARCH=amd64 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
81 |
MAKE_ARGS += Platform_arch=x86 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
82 |
MAKE_ARGS += Platform_arch_model=x86_64 |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
83 |
endif |
bcf55c5acf4e
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
1609
diff
changeset
|
84 |
|
1 | 85 |
JDK_INCLUDE_SUBDIR=win32 |
86 |
||
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
87 |
# HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined |
1 | 88 |
# and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make. |
89 |
||
90 |
# next parameters are defined in $(GAMMADIR)/make/defs.make. |
|
91 |
MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) |
|
92 |
MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION) |
|
93 |
MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION) |
|
94 |
MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION) |
|
95 |
||
96 |
ifdef COOKED_JDK_UPDATE_VERSION |
|
97 |
MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION) |
|
98 |
endif |
|
99 |
||
100 |
# COOKED_BUILD_NUMBER should only be set if we have a numeric |
|
101 |
# build number. It must not be zero padded. |
|
102 |
ifdef COOKED_BUILD_NUMBER |
|
103 |
MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER) |
|
104 |
endif |
|
105 |
||
106 |
NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO |
|
107 |
||
108 |
# Check for CYGWIN |
|
109 |
ifneq (,$(findstring CYGWIN,$(shell uname))) |
|
110 |
USING_CYGWIN=true |
|
111 |
else |
|
112 |
USING_CYGWIN=false |
|
113 |
endif |
|
114 |
# FIXUP: The subdirectory for a debug build is NOT the same on all platforms |
|
115 |
VM_DEBUG=debug |
|
116 |
||
117 |
# Windows wants particular paths due to nmake (must be after macros defined) |
|
118 |
# It is important that gnumake invokes nmake with C:\\...\\ formated |
|
119 |
# strings so that nmake gets C:\...\ style strings. |
|
120 |
# Check for CYGWIN |
|
121 |
ifeq ($(USING_CYGWIN), true) |
|
122 |
ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)")) |
|
123 |
ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)")) |
|
124 |
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
|
125 |
ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make |
1 | 126 |
else |
127 |
ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD))) |
|
128 |
ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD))) |
|
129 |
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
|
130 |
ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make) |
1 | 131 |
endif |
132 |
||
133 |
# Disable building SA on windows until we are sure |
|
134 |
# we want to release it. If we build it here, |
|
135 |
# the SDK makefiles will copy it over and put it into |
|
136 |
# the created image. |
|
1609
5eacab926e22
6743339: Enable building sa-jdi.jar and sawindbg.dll on Windows with hotspot build
poonam
parents:
1546
diff
changeset
|
137 |
BUILD_WIN_SA = 1 |
1 | 138 |
ifneq ($(ALT_BUILD_WIN_SA),) |
139 |
BUILD_WIN_SA = $(ALT_BUILD_WIN_SA) |
|
140 |
endif |
|
141 |
||
142 |
ifeq ($(BUILD_WIN_SA), 1) |
|
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
143 |
ifeq ($(ARCH),ia64) |
1 | 144 |
BUILD_WIN_SA = 0 |
145 |
endif |
|
146 |
endif |
|
147 |
||
148 |
EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server |
|
149 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt |
|
150 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll |
|
151 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb |
|
152 |
EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map |
|
153 |
EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib |
|
154 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
155 |
EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client |
|
156 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt |
|
157 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll |
|
158 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb |
|
159 |
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map |
|
160 |
# kernel vm |
|
161 |
EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel |
|
162 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt |
|
163 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll |
|
164 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb |
|
165 |
EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map |
|
166 |
endif |
|
167 |
||
168 |
ifeq ($(BUILD_WIN_SA), 1) |
|
169 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll |
|
170 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb |
|
171 |
EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map |
|
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
979
diff
changeset
|
172 |
EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar |
1 | 173 |
# Must pass this down to nmake. |
174 |
MAKE_ARGS += BUILD_WIN_SA=1 |
|
175 |
endif |