annotate make/windows/build.make @ 6275:957c266d8bc5

Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author Doug Simon <doug.simon@oracle.com>
date Tue, 21 Aug 2012 10:39:19 +0200
parents 76841bdd5f3e 74c359c4a9e5
children 989155e2d07a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
6020
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 3310
diff changeset
2 # Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1328
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1328
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: 1328
diff changeset
21 # questions.
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1552
diff changeset
22 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 # Note: this makefile is invoked both from build.bat and from the J2SE
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # control workspace in exactly the same manner; the required
a61af66fc99e Initial load
duke
parents:
diff changeset
27 # environment variables (Variant, WorkSpace, BootStrapDir, BuildUser, HOTSPOT_BUILD_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
28 # are passed in as command line arguments.
a61af66fc99e Initial load
duke
parents:
diff changeset
29
1328
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 1322
diff changeset
30 # Note: Running nmake or build.bat from the Windows command shell requires
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 1322
diff changeset
31 # that "sh" be accessible on the PATH. An MKS install does this.
39e409a664b3 6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents: 1322
diff changeset
32
0
a61af66fc99e Initial load
duke
parents:
diff changeset
33 # SA components are built if BUILD_WIN_SA=1 is specified.
a61af66fc99e Initial load
duke
parents:
diff changeset
34 # See notes in README. This produces files:
a61af66fc99e Initial load
duke
parents:
diff changeset
35 # 1. sa-jdi.jar - This is built before building jvm.dll
a61af66fc99e Initial load
duke
parents:
diff changeset
36 # 2. sawindbg[_g].dll - Native library for SA - This is built after jvm.dll
a61af66fc99e Initial load
duke
parents:
diff changeset
37 # - Also, .lib, .map, .pdb.
a61af66fc99e Initial load
duke
parents:
diff changeset
38 #
a61af66fc99e Initial load
duke
parents:
diff changeset
39 # Please refer to ./makefiles/sa.make
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 # If we haven't set an ARCH yet use x86
a61af66fc99e Initial load
duke
parents:
diff changeset
42 # create.bat and build.bat will set it, if used.
a61af66fc99e Initial load
duke
parents:
diff changeset
43 !ifndef ARCH
a61af66fc99e Initial load
duke
parents:
diff changeset
44 ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
45 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 # Must be one of these values (if value comes in from env, can't trust it)
a61af66fc99e Initial load
duke
parents:
diff changeset
49 !if "$(ARCH)" != "x86"
a61af66fc99e Initial load
duke
parents:
diff changeset
50 !if "$(ARCH)" != "ia64"
a61af66fc99e Initial load
duke
parents:
diff changeset
51 ARCH=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
52 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
53 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 # At this point we should be certain that ARCH has a definition
a61af66fc99e Initial load
duke
parents:
diff changeset
56 # now determine the BUILDARCH
a61af66fc99e Initial load
duke
parents:
diff changeset
57 #
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 # the default BUILDARCH
a61af66fc99e Initial load
duke
parents:
diff changeset
60 BUILDARCH=i486
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 # Allow control workspace to force Itanium or AMD64 builds with LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
63 ARCH_TEXT=
a61af66fc99e Initial load
duke
parents:
diff changeset
64 !ifdef LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 !if "$(LP64)" == "1"
a61af66fc99e Initial load
duke
parents:
diff changeset
66 ARCH_TEXT=64-Bit
a61af66fc99e Initial load
duke
parents:
diff changeset
67 !if "$(ARCH)" == "x86"
a61af66fc99e Initial load
duke
parents:
diff changeset
68 BUILDARCH=amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
69 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
70 BUILDARCH=ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
71 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
72 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
73 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 !if "$(BUILDARCH)" != "ia64"
a61af66fc99e Initial load
duke
parents:
diff changeset
76 !ifndef CC_INTERP
1918
34bd82eba3bb 6997456: Not possible to build just compiler2
iveresov
parents: 1783
diff changeset
77 !ifndef FORCE_TIERED
0
a61af66fc99e Initial load
duke
parents:
diff changeset
78 FORCE_TIERED=1
a61af66fc99e Initial load
duke
parents:
diff changeset
79 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
80 !endif
1918
34bd82eba3bb 6997456: Not possible to build just compiler2
iveresov
parents: 1783
diff changeset
81 !endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 !if "$(BUILDARCH)" == "amd64"
a61af66fc99e Initial load
duke
parents:
diff changeset
84 Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
85 Platform_arch_model=x86_64
a61af66fc99e Initial load
duke
parents:
diff changeset
86 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
87 !if "$(BUILDARCH)" == "i486"
a61af66fc99e Initial load
duke
parents:
diff changeset
88 Platform_arch=x86
a61af66fc99e Initial load
duke
parents:
diff changeset
89 Platform_arch_model=x86_32
a61af66fc99e Initial load
duke
parents:
diff changeset
90 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 # Supply these from the command line or the environment
a61af66fc99e Initial load
duke
parents:
diff changeset
93 # It doesn't make sense to default this one
a61af66fc99e Initial load
duke
parents:
diff changeset
94 Variant=
a61af66fc99e Initial load
duke
parents:
diff changeset
95 # It doesn't make sense to default this one
a61af66fc99e Initial load
duke
parents:
diff changeset
96 WorkSpace=
a61af66fc99e Initial load
duke
parents:
diff changeset
97
a61af66fc99e Initial load
duke
parents:
diff changeset
98 variantDir = windows_$(BUILDARCH)_$(Variant)
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 realVariant=$(Variant)
a61af66fc99e Initial load
duke
parents:
diff changeset
101 VARIANT_TEXT=Core
a61af66fc99e Initial load
duke
parents:
diff changeset
102 !if "$(Variant)" == "compiler1"
a61af66fc99e Initial load
duke
parents:
diff changeset
103 VARIANT_TEXT=Client
a61af66fc99e Initial load
duke
parents:
diff changeset
104 !elseif "$(Variant)" == "compiler2"
1918
34bd82eba3bb 6997456: Not possible to build just compiler2
iveresov
parents: 1783
diff changeset
105 !if "$(FORCE_TIERED)" == "1"
0
a61af66fc99e Initial load
duke
parents:
diff changeset
106 VARIANT_TEXT=Server
a61af66fc99e Initial load
duke
parents:
diff changeset
107 realVariant=tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
108 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
109 VARIANT_TEXT=Server
a61af66fc99e Initial load
duke
parents:
diff changeset
110 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
111 !elseif "$(Variant)" == "tiered"
a61af66fc99e Initial load
duke
parents:
diff changeset
112 VARIANT_TEXT=Tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
113 !elseif "$(Variant)" == "kernel"
a61af66fc99e Initial load
duke
parents:
diff changeset
114 VARIANT_TEXT=Kernel
4572
76841bdd5f3e (Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents: 3310
diff changeset
115 !elseif "$(Variant)" == "graal"
76841bdd5f3e (Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents: 3310
diff changeset
116 VARIANT_TEXT=Graal
0
a61af66fc99e Initial load
duke
parents:
diff changeset
117 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 #########################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
120 # Parameters for VERSIONINFO resource for jvm[_g].dll.
a61af66fc99e Initial load
duke
parents:
diff changeset
121 # These can be overridden via the nmake.exe command line.
a61af66fc99e Initial load
duke
parents:
diff changeset
122 # They are overridden by RE during the control builds.
a61af66fc99e Initial load
duke
parents:
diff changeset
123 #
a61af66fc99e Initial load
duke
parents:
diff changeset
124 !include "$(WorkSpace)/make/hotspot_version"
a61af66fc99e Initial load
duke
parents:
diff changeset
125
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
126 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
127 # or make/hotspot_distro.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
128 !ifndef HOTSPOT_VM_DISTRO
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
129 !if exists($(WorkSpace)\src\closed)
3310
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
130
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
131 # if the build is for JDK6 or earlier version, it should include jdk6_hotspot_distro,
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
132 # instead of hotspot_distro.
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
133 JDK6_OR_EARLIER=0
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
134 !if "$(JDK_MAJOR_VERSION)" != "" && "$(JDK_MINOR_VERSION)" != "" && "$(JDK_MICRO_VERSION)" != ""
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
135 !if $(JDK_MAJOR_VERSION) == 1 && $(JDK_MINOR_VERSION) < 7
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
136 JDK6_OR_EARLIER=1
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
137 !endif
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
138 !else
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
139 !if $(JDK_MAJOR_VER) == 1 && $(JDK_MINOR_VER) < 7
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
140 JDK6_OR_EARLIER=1
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
141 !endif
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
142 !endif
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
143
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
144 !if $(JDK6_OR_EARLIER) == 1
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
145 !include $(WorkSpace)\make\jdk6_hotspot_distro
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
146 !else
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
147 !include $(WorkSpace)\make\hotspot_distro
3310
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
148 !endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
149 !else
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
150 !include $(WorkSpace)\make\openjdk_distro
0
a61af66fc99e Initial load
duke
parents:
diff changeset
151 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
152 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
153
a61af66fc99e Initial load
duke
parents:
diff changeset
154 # Following the Web Start / Plugin model here....
a61af66fc99e Initial load
duke
parents:
diff changeset
155 # We can have update versions like "01a", but Windows requires
a61af66fc99e Initial load
duke
parents:
diff changeset
156 # we use only integers in the file version field. So:
a61af66fc99e Initial load
duke
parents:
diff changeset
157 # JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1552
diff changeset
158 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
159 JDK_UPDATE_VER=0
a61af66fc99e Initial load
duke
parents:
diff changeset
160 JDK_BUILD_NUMBER=0
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM
a61af66fc99e Initial load
duke
parents:
diff changeset
163
a61af66fc99e Initial load
duke
parents:
diff changeset
164 # JDK ProductVersion:
a61af66fc99e Initial load
duke
parents:
diff changeset
165 # 1.5.0_<wx>-b<yz> will have DLL version 5.0.wx*10.yz
a61af66fc99e Initial load
duke
parents:
diff changeset
166 # Thus, 1.5.0_10-b04 will be 5.0.100.4
a61af66fc99e Initial load
duke
parents:
diff changeset
167 # 1.6.0-b01 will be 6.0.0.1
a61af66fc99e Initial load
duke
parents:
diff changeset
168 # 1.6.0_01a-b02 will be 6.0.11.2
a61af66fc99e Initial load
duke
parents:
diff changeset
169 #
a61af66fc99e Initial load
duke
parents:
diff changeset
170 # JDK_* variables are defined in make/hotspot_version or on command line
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1552
diff changeset
171 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
172 JDK_VER=$(JDK_MINOR_VER),$(JDK_MICRO_VER),$(JDK_UPDATE_VER),$(JDK_BUILD_NUMBER)
a61af66fc99e Initial load
duke
parents:
diff changeset
173 JDK_DOTVER=$(JDK_MINOR_VER).$(JDK_MICRO_VER).$(JDK_UPDATE_VER).$(JDK_BUILD_NUMBER)
a61af66fc99e Initial load
duke
parents:
diff changeset
174 !if "$(JRE_RELEASE_VERSION)" == ""
a61af66fc99e Initial load
duke
parents:
diff changeset
175 JRE_RELEASE_VER=$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)
a61af66fc99e Initial load
duke
parents:
diff changeset
176 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
177 JRE_RELEASE_VER=$(JRE_RELEASE_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
178 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
179 !if "$(JDK_MKTG_VERSION)" == ""
a61af66fc99e Initial load
duke
parents:
diff changeset
180 JDK_MKTG_VERSION=$(JDK_MINOR_VER).$(JDK_MICRO_VER)
a61af66fc99e Initial load
duke
parents:
diff changeset
181 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 # Hotspot Express VM FileVersion:
a61af66fc99e Initial load
duke
parents:
diff changeset
184 # 10.0-b<yz> will have DLL version 10.0.0.yz (need 4 numbers).
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1552
diff changeset
185 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
186 # HS_* variables are defined in make/hotspot_version
a61af66fc99e Initial load
duke
parents:
diff changeset
187 #
a61af66fc99e Initial load
duke
parents:
diff changeset
188 HS_VER=$(HS_MAJOR_VER),$(HS_MINOR_VER),0,$(HS_BUILD_NUMBER)
a61af66fc99e Initial load
duke
parents:
diff changeset
189 HS_DOTVER=$(HS_MAJOR_VER).$(HS_MINOR_VER).0.$(HS_BUILD_NUMBER)
a61af66fc99e Initial load
duke
parents:
diff changeset
190
a61af66fc99e Initial load
duke
parents:
diff changeset
191 !if "$(HOTSPOT_RELEASE_VERSION)" == ""
a61af66fc99e Initial load
duke
parents:
diff changeset
192 HOTSPOT_RELEASE_VERSION=$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)
a61af66fc99e Initial load
duke
parents:
diff changeset
193 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
194
a61af66fc99e Initial load
duke
parents:
diff changeset
195 !if "$(HOTSPOT_BUILD_VERSION)" == ""
a61af66fc99e Initial load
duke
parents:
diff changeset
196 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
197 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
198 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
199 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
200
a61af66fc99e Initial load
duke
parents:
diff changeset
201 # End VERSIONINFO parameters
a61af66fc99e Initial load
duke
parents:
diff changeset
202
a61af66fc99e Initial load
duke
parents:
diff changeset
203
a61af66fc99e Initial load
duke
parents:
diff changeset
204 # We don't support SA on ia64, and we can't
1783
d5d065957597 6953144: Tiered compilation
iveresov
parents: 1552
diff changeset
205 # build it if we are using a version of Vis Studio
0
a61af66fc99e Initial load
duke
parents:
diff changeset
206 # older than .Net 2003.
a61af66fc99e Initial load
duke
parents:
diff changeset
207 # SA_INCLUDE and SA_LIB are hold-overs from a previous
a61af66fc99e Initial load
duke
parents:
diff changeset
208 # implementation in which we could build SA using
a61af66fc99e Initial load
duke
parents:
diff changeset
209 # Debugging Tools For Windows, in which the .h/.lib files
a61af66fc99e Initial load
duke
parents:
diff changeset
210 # and the .dlls are in different places than
a61af66fc99e Initial load
duke
parents:
diff changeset
211 # they are for Vis Studio .Net 2003.
a61af66fc99e Initial load
duke
parents:
diff changeset
212 # If that code ever needs to be resurrected, these vars
a61af66fc99e Initial load
duke
parents:
diff changeset
213 # can be set here. They are used in makefiles/sa.make.
a61af66fc99e Initial load
duke
parents:
diff changeset
214
a61af66fc99e Initial load
duke
parents:
diff changeset
215 checkSA::
a61af66fc99e Initial load
duke
parents:
diff changeset
216
a61af66fc99e Initial load
duke
parents:
diff changeset
217 !if "$(BUILD_WIN_SA)" != "1"
a61af66fc99e Initial load
duke
parents:
diff changeset
218 checkSA::
a61af66fc99e Initial load
duke
parents:
diff changeset
219 @echo Not building SA: BUILD_WIN_SA != 1
a61af66fc99e Initial load
duke
parents:
diff changeset
220
a61af66fc99e Initial load
duke
parents:
diff changeset
221 !elseif "$(ARCH)" == "ia64"
a61af66fc99e Initial load
duke
parents:
diff changeset
222 BUILD_WIN_SA = 0
a61af66fc99e Initial load
duke
parents:
diff changeset
223 checkSA::
a61af66fc99e Initial load
duke
parents:
diff changeset
224 @echo Not building SA: ARCH = ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
225
a61af66fc99e Initial load
duke
parents:
diff changeset
226 !endif # ! "$(BUILD_WIN_SA)" != "1"
a61af66fc99e Initial load
duke
parents:
diff changeset
227
a61af66fc99e Initial load
duke
parents:
diff changeset
228 #########################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
229
a61af66fc99e Initial load
duke
parents:
diff changeset
230 # With the jvm_g.dll now being named jvm.dll, we can't build both and place
a61af66fc99e Initial load
duke
parents:
diff changeset
231 # the dll's in the same directory, so we only build one at a time,
a61af66fc99e Initial load
duke
parents:
diff changeset
232 # re-directing the output to different output directories (done by user
a61af66fc99e Initial load
duke
parents:
diff changeset
233 # of this makefile).
a61af66fc99e Initial load
duke
parents:
diff changeset
234 #
a61af66fc99e Initial load
duke
parents:
diff changeset
235 defaultTarget: product
a61af66fc99e Initial load
duke
parents:
diff changeset
236
a61af66fc99e Initial load
duke
parents:
diff changeset
237 # The product or release build is an optimized build, and is the default
a61af66fc99e Initial load
duke
parents:
diff changeset
238
a61af66fc99e Initial load
duke
parents:
diff changeset
239 # note that since all the build targets depend on local.make that BUILDARCH
a61af66fc99e Initial load
duke
parents:
diff changeset
240 # and Platform_arch and Platform_arch_model will get set in local.make
a61af66fc99e Initial load
duke
parents:
diff changeset
241 # and there is no need to pass them thru here on the command line
a61af66fc99e Initial load
duke
parents:
diff changeset
242 #
a61af66fc99e Initial load
duke
parents:
diff changeset
243 product release optimized: checks $(variantDir) $(variantDir)\local.make sanity
a61af66fc99e Initial load
duke
parents:
diff changeset
244 cd $(variantDir)
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
245 nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=product ARCH=$(ARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
246
a61af66fc99e Initial load
duke
parents:
diff changeset
247 # The debug or jvmg (all the same thing) is an optional build
a61af66fc99e Initial load
duke
parents:
diff changeset
248 debug jvmg: checks $(variantDir) $(variantDir)\local.make sanity
a61af66fc99e Initial load
duke
parents:
diff changeset
249 cd $(variantDir)
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
250 nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=debug ARCH=$(ARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
251 fastdebug: checks $(variantDir) $(variantDir)\local.make sanity
a61af66fc99e Initial load
duke
parents:
diff changeset
252 cd $(variantDir)
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
253 nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=fastdebug ARCH=$(ARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
254
a61af66fc99e Initial load
duke
parents:
diff changeset
255 develop: checks $(variantDir) $(variantDir)\local.make sanity
a61af66fc99e Initial load
duke
parents:
diff changeset
256 cd $(variantDir)
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
257 nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=product DEVELOP=1 ARCH=$(ARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
258
1322
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
259 # target to create just the directory structure
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
260 tree: checks $(variantDir) $(variantDir)\local.make sanity
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
261 mkdir $(variantDir)\product
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
262 mkdir $(variantDir)\debug
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
263 mkdir $(variantDir)\fastdebug
21141e23627a 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 456
diff changeset
264
0
a61af66fc99e Initial load
duke
parents:
diff changeset
265 sanity:
a61af66fc99e Initial load
duke
parents:
diff changeset
266 @ echo;
a61af66fc99e Initial load
duke
parents:
diff changeset
267 @ cd $(variantDir)
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
268 @ nmake -nologo -f $(WorkSpace)\make\windows\makefiles\sanity.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
269 @ cd ..
a61af66fc99e Initial load
duke
parents:
diff changeset
270 @ echo;
a61af66fc99e Initial load
duke
parents:
diff changeset
271
a61af66fc99e Initial load
duke
parents:
diff changeset
272 clean: checkVariant
a61af66fc99e Initial load
duke
parents:
diff changeset
273 - rm -r -f $(variantDir)
a61af66fc99e Initial load
duke
parents:
diff changeset
274
a61af66fc99e Initial load
duke
parents:
diff changeset
275 $(variantDir):
a61af66fc99e Initial load
duke
parents:
diff changeset
276 mkdir $(variantDir)
a61af66fc99e Initial load
duke
parents:
diff changeset
277
a61af66fc99e Initial load
duke
parents:
diff changeset
278 $(variantDir)\local.make: checks
a61af66fc99e Initial load
duke
parents:
diff changeset
279 @ echo # Generated file > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
280 @ echo Variant=$(realVariant) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
281 @ echo WorkSpace=$(WorkSpace) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
282 @ echo BootStrapDir=$(BootStrapDir) >> $@
3310
69e41359aef0 6986065: Rebrand exe/dll company names
zgu
parents: 1918
diff changeset
283 @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME) >> $@
0
a61af66fc99e Initial load
duke
parents:
diff changeset
284 @ echo HS_VER=$(HS_VER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
285 @ echo HS_DOTVER=$(HS_DOTVER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
286 @ echo HS_COMPANY=$(COMPANY_NAME) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
287 @ echo HS_FILEDESC=$(HS_FILEDESC) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
288 @ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
289 @ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
290 @ echo HS_NAME=$(PRODUCT_NAME) $(JDK_MKTG_VERSION) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
291 @ echo HS_BUILD_VER=$(HS_BUILD_VER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
292 @ echo BUILD_WIN_SA=$(BUILD_WIN_SA) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
293 @ echo SA_BUILD_VERSION=$(HS_BUILD_VER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
294 @ echo SA_INCLUDE=$(SA_INCLUDE) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
295 @ echo SA_LIB=$(SA_LIB) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
296 @ echo JDK_VER=$(JDK_VER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
297 @ echo JDK_DOTVER=$(JDK_DOTVER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
298 @ echo JRE_RELEASE_VER=$(JRE_RELEASE_VER) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
299 @ echo BUILDARCH=$(BUILDARCH) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
300 @ echo Platform_arch=$(Platform_arch) >> $@
a61af66fc99e Initial load
duke
parents:
diff changeset
301 @ echo Platform_arch_model=$(Platform_arch_model) >> $@
5897
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 3310
diff changeset
302 @ echo CXX=$(CXX) >> $@
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 3310
diff changeset
303 @ echo LD=$(LD) >> $@
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 3310
diff changeset
304 @ echo MT=$(MT) >> $@
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 3310
diff changeset
305 @ echo RC=$(RC) >> $@
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
306 @ sh $(WorkSpace)/make/windows/get_msc_ver.sh >> $@
6020
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 3310
diff changeset
307 @ if "$(ENABLE_FULL_DEBUG_SYMBOLS)" NEQ "" echo ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) >> $@
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 3310
diff changeset
308 @ if "$(ZIP_DEBUGINFO_FILES)" NEQ "" echo ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) >> $@
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 3310
diff changeset
309 @ if "$(RM)" NEQ "" echo RM=$(RM) >> $@
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 3310
diff changeset
310 @ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE) >> $@
0
a61af66fc99e Initial load
duke
parents:
diff changeset
311
a61af66fc99e Initial load
duke
parents:
diff changeset
312 checks: checkVariant checkWorkSpace checkSA
a61af66fc99e Initial load
duke
parents:
diff changeset
313
a61af66fc99e Initial load
duke
parents:
diff changeset
314 checkVariant:
4572
76841bdd5f3e (Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents: 3310
diff changeset
315 @ if "$(Variant)"=="" echo Need to specify "Variant=[graal|tiered|compiler2|compiler1|kernel|core]" && false
76841bdd5f3e (Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents: 3310
diff changeset
316 @ if "$(Variant)" NEQ "graal" if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "kernel" if "$(Variant)" NEQ "core" \
76841bdd5f3e (Windows) Add Graal build configurations (with GRAAL defined) and fix build command.
Andreas Woess <andreas.woess@jku.at>
parents: 3310
diff changeset
317 echo Need to specify "Variant=[graal|tiered|compiler2|compiler1|kernel|core]" && false
0
a61af66fc99e Initial load
duke
parents:
diff changeset
318
a61af66fc99e Initial load
duke
parents:
diff changeset
319 checkWorkSpace:
a61af66fc99e Initial load
duke
parents:
diff changeset
320 @ if "$(WorkSpace)"=="" echo Need to specify "WorkSpace=..." && false
a61af66fc99e Initial load
duke
parents:
diff changeset
321
a61af66fc99e Initial load
duke
parents:
diff changeset
322 checkBuildID:
a61af66fc99e Initial load
duke
parents:
diff changeset
323 @ if "$(BuildID)"=="" echo Need to specify "BuildID=..." && false