hotspot/make/windows/build.make
author alanb
Tue, 03 May 2016 09:11:31 +0100
changeset 37827 09fa0c82a5f7
parent 37115 f9c20e87f9ec
permissions -rw-r--r--
8154956: Module system implementation refresh (4/2016) Reviewed-by: alanb, mchung, chegar, redestad Contributed-by: alan.bateman@oracle.com, erik.joelsson@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
     2
# Copyright (c) 1998, 2015, 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
# If we haven't set an ARCH yet use x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
# create.bat and build.bat will set it, if used.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
!ifndef ARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
# Must be one of these values (if value comes in from env, can't trust it)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
!if "$(ARCH)" != "x86"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
!if "$(ARCH)" != "ia64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
!endif
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
# At this point we should be certain that ARCH has a definition
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
# now determine the BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
# the default BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
BUILDARCH=i486
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
# Allow control workspace to force Itanium or AMD64 builds with LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
ARCH_TEXT=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
!ifdef LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
!if "$(LP64)" == "1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
ARCH_TEXT=64-Bit
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
!if "$(ARCH)" == "x86"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
BUILDARCH=amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
BUILDARCH=ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
!if "$(BUILDARCH)" != "ia64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
!ifndef CC_INTERP
7119
fda8c40f4729 6997456: Not possible to build just compiler2
iveresov
parents: 6453
diff changeset
    69
!ifndef FORCE_TIERED
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
FORCE_TIERED=1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
!endif
7119
fda8c40f4729 6997456: Not possible to build just compiler2
iveresov
parents: 6453
diff changeset
    73
!endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
!if "$(BUILDARCH)" == "amd64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
Platform_arch_model=x86_64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
!if "$(BUILDARCH)" == "i486"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
Platform_arch_model=x86_32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
# Supply these from the command line or the environment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
#  It doesn't make sense to default this one
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
Variant=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
#  It doesn't make sense to default this one
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
WorkSpace=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
variantDir = windows_$(BUILDARCH)_$(Variant)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
realVariant=$(Variant)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
VARIANT_TEXT=Core
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
!if "$(Variant)" == "compiler1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
VARIANT_TEXT=Client
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
!elseif "$(Variant)" == "compiler2"
7119
fda8c40f4729 6997456: Not possible to build just compiler2
iveresov
parents: 6453
diff changeset
    97
!if "$(FORCE_TIERED)" == "1"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
VARIANT_TEXT=Server
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
realVariant=tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
VARIANT_TEXT=Server
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
!elseif "$(Variant)" == "tiered"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
VARIANT_TEXT=Tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
#########################################################################
14815
41114a74463a 7153050: remove crufty '_g' support from HotSpot repo makefiles
dcubed
parents: 12503
diff changeset
   108
# Parameters for VERSIONINFO resource for jvm.dll.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
# These can be overridden via the nmake.exe command line.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
# They are overridden by RE during the control builds.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
#
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 18025
diff changeset
   112
!include "$(WorkSpace)/make/jdk_version"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   114
# 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
   115
# or make/hotspot_distro.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
!ifndef HOTSPOT_VM_DISTRO
37115
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 34319
diff changeset
   117
!ifndef OPENJDK
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   118
!if exists($(WorkSpace)\src\closed)
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   119
!include $(WorkSpace)\make\hotspot_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
!else
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   121
!include $(WorkSpace)\make\openjdk_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
!endif
37115
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 34319
diff changeset
   123
!else
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 34319
diff changeset
   124
!include $(WorkSpace)\make\openjdk_distro
f9c20e87f9ec 8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents: 34319
diff changeset
   125
!endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
# JDK ProductVersion:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
# 1.5.0_<wx>-b<yz> will have DLL version 5.0.wx*10.yz
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
# Thus, 1.5.0_10-b04  will be 5.0.100.4
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
#       1.6.0-b01     will be 6.0.0.1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
#       1.6.0_01a-b02 will be 6.0.11.2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
#
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   136
# STANDALONE_JDK_* variables are defined in make/jdk_version or on command line
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   137
#
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   138
!if "$(JDK_VER)" == ""
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   139
JDK_VER=$(STANDALONE_JDK_MAJOR_VER),$(STANDALONE_JDK_MINOR_VER),$(STANDALONE_JDK_SECURITY_VER),$(STANDALONE_JDK_PATCH_VER)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
!endif
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   141
!if "$(JDK_DOTVER)" == ""
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   142
JDK_DOTVER=$(STANDALONE_JDK_MAJOR_VER).$(STANDALONE_JDK_MINOR_VER).$(STANDALONE_JDK_SECURITY_VER).$(STANDALONE_JDK_PATCH_VER)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   143
!endif
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   144
!if "$(VERSION_SHORT)" == ""
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   145
VERSION_SHORT=$(STANDALONE_JDK_MAJOR_VER).$(STANDALONE_JDK_MINOR_VER).$(STANDALONE_JDK_SECURITY_VER)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 18025
diff changeset
   148
HS_VER=$(JDK_VER)
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 18025
diff changeset
   149
HS_DOTVER=$(JDK_DOTVER)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
!if "$(HOTSPOT_RELEASE_VERSION)" == ""
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   152
HOTSPOT_RELEASE_VERSION=$(VERSION_STRING)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   155
!if "$(HOTSPOT_VERSION_STRING)" == ""
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   156
HOTSPOT_VERSION_STRING=$(HOTSPOT_RELEASE_VERSION)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
# End VERSIONINFO parameters
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   161
# if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   162
!ifndef OPENJDK
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   163
!if !exists($(WorkSpace)\src\closed)
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   164
OPENJDK=true
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   165
!endif
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   166
!endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
#########################################################################
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
defaultTarget: product
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
# The product or release build is an optimized build, and is the default
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
# note that since all the build targets depend on local.make that BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
# and Platform_arch and Platform_arch_model will get set in local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
# and there is no need to pass them thru here on the command line
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
product release optimized: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   180
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=product ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
17006
b9bfa72b7dda 7104565: trim jprt build targets
drchase
parents: 16447
diff changeset
   182
# The debug build is an optional build
b9bfa72b7dda 7104565: trim jprt build targets
drchase
parents: 16447
diff changeset
   183
debug: checks $(variantDir) $(variantDir)\local.make sanity
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   185
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=debug ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
fastdebug: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   188
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=fastdebug ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
5087
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   190
# target to create just the directory structure
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   191
tree: checks $(variantDir) $(variantDir)\local.make sanity
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   192
	mkdir $(variantDir)\product
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   193
	mkdir $(variantDir)\debug
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   194
	mkdir $(variantDir)\fastdebug
72635506e447 6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents: 1609
diff changeset
   195
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
sanity:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
	@ echo;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
	@ cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   199
	@ nmake -nologo -f $(WorkSpace)\make\windows\makefiles\sanity.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
	@ cd ..
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
	@ echo;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
clean: checkVariant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
	- rm -r -f $(variantDir)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
$(variantDir):
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
	mkdir $(variantDir)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
$(variantDir)\local.make: checks
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
	@ echo # Generated file					>  $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
	@ echo Variant=$(realVariant)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
	@ echo WorkSpace=$(WorkSpace)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
	@ echo BootStrapDir=$(BootStrapDir)			>> $@
9411
a52e64081a0c 6986065: Rebrand exe/dll company names
zgu
parents: 7119
diff changeset
   214
	@ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME)	>> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
	@ echo HS_VER=$(HS_VER)					>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
	@ echo HS_DOTVER=$(HS_DOTVER)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
	@ echo HS_COMPANY=$(COMPANY_NAME)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
	@ echo HS_FILEDESC=$(HS_FILEDESC)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
	@ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)		>> $@
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17006
diff changeset
   220
	@ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK)	>> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
	@ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)		>> $@
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   222
	@ echo HS_NAME=$(PRODUCT_NAME) $(VERSION_SHORT)		>> $@
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   223
	@ echo HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING)	>> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
	@ echo JDK_VER=$(JDK_VER)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
	@ echo JDK_DOTVER=$(JDK_DOTVER)				>> $@
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25639
diff changeset
   226
	@ echo VERSION_STRING=$(VERSION_STRING)			>> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
	@ echo BUILDARCH=$(BUILDARCH)         			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
	@ echo Platform_arch=$(Platform_arch)        		>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
	@ 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
   230
	@ echo CXX=$(CXX)					>> $@
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 9411
diff changeset
   231
	@ echo LD=$(LD)						>> $@
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 9411
diff changeset
   232
	@ echo MT=$(MT)						>> $@
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 9411
diff changeset
   233
	@ echo RC=$(RC)						>> $@
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   234
	@ 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
   235
	@ 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
   236
	@ 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
   237
	@ if "$(RM)" NEQ "" echo RM=$(RM)                       >> $@
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 24238
diff changeset
   238
	@ if "$(CP)" NEQ "" echo CP=$(CP)                       >> $@
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 24238
diff changeset
   239
	@ if "$(MV)" NEQ "" echo MV=$(MV)                       >> $@
12501
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 9411
diff changeset
   240
	@ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE)           >> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
34289
2d1821a50263 8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents: 25639
diff changeset
   242
checks: checkVariant checkWorkSpace
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
checkVariant:
16447
234db5e2ae5e 8010651: create.bat still builds the kernel
zgu
parents: 14815
diff changeset
   245
	@ 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
   246
	@ 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
   247
          echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
checkWorkSpace:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
	@ if "$(WorkSpace)"=="" echo Need to specify "WorkSpace=..." && false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
checkBuildID:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
	@ if "$(BuildID)"=="" echo Need to specify "BuildID=..." && false