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