hotspot/make/windows/build.make
author rupashka
Wed, 03 Mar 2010 20:08:55 +0300
changeset 4967 da853cd502c8
parent 1609 5eacab926e22
child 5087 72635506e447
permissions -rw-r--r--
6913768: With default SynthLookAndFeel instance installed new JTable creation leads to throwing NPE Reviewed-by: peterz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
670
ddf3e9583f2f 6719955: Update copyright year
xdono
parents: 338
diff changeset
     2
# Copyright 1998-2008 Sun Microsystems, Inc.  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
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
# CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
# have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
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
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
# SA components are built if BUILD_WIN_SA=1 is specified.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
# See notes in README. This produces files:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
#  1. sa-jdi.jar       - This is built before building jvm.dll
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
#  2. sawindbg[_g].dll - Native library for SA - This is built after jvm.dll
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
#                      - Also, .lib, .map, .pdb.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
# Please refer to ./makefiles/sa.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
# If we haven't set an ARCH yet use x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
# create.bat and build.bat will set it, if used.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
!ifndef ARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
# Must be one of these values (if value comes in from env, can't trust it)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
!if "$(ARCH)" != "x86"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
!if "$(ARCH)" != "ia64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
ARCH=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
# At this point we should be certain that ARCH has a definition
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
# now determine the BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
# the default BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
BUILDARCH=i486
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
# Allow control workspace to force Itanium or AMD64 builds with LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
ARCH_TEXT=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
!ifdef LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
!if "$(LP64)" == "1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
ARCH_TEXT=64-Bit
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
!if "$(ARCH)" == "x86"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
BUILDARCH=amd64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
BUILDARCH=ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
!if "$(BUILDARCH)" != "amd64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
!if "$(BUILDARCH)" != "ia64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
!ifndef CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
FORCE_TIERED=1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
!if "$(BUILDARCH)" == "amd64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
Platform_arch_model=x86_64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
!if "$(BUILDARCH)" == "i486"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
Platform_arch=x86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
Platform_arch_model=x86_32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
# Supply these from the command line or the environment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
#  It doesn't make sense to default this one
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
Variant=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
#  It doesn't make sense to default this one
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
WorkSpace=
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
variantDir = windows_$(BUILDARCH)_$(Variant)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
realVariant=$(Variant)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
VARIANT_TEXT=Core
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
!if "$(Variant)" == "compiler1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
VARIANT_TEXT=Client
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
!elseif "$(Variant)" == "compiler2"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
!ifdef FORCE_TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
VARIANT_TEXT=Server
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
realVariant=tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
VARIANT_TEXT=Server
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
!elseif "$(Variant)" == "tiered"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
VARIANT_TEXT=Tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
!elseif "$(Variant)" == "kernel"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
VARIANT_TEXT=Kernel
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
#########################################################################
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
# Parameters for VERSIONINFO resource for jvm[_g].dll.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
# These can be overridden via the nmake.exe command line.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
# They are overridden by RE during the control builds.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
!include "$(WorkSpace)/make/hotspot_version"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   121
# 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
   122
# or make/hotspot_distro.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
!ifndef HOTSPOT_VM_DISTRO
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   124
!if exists($(WorkSpace)\src\closed)
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   125
!include $(WorkSpace)\make\hotspot_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
!else
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   127
!include $(WorkSpace)\make\openjdk_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
# Following the Web Start / Plugin model here....
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
# We can have update versions like "01a", but Windows requires
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
# we use only integers in the file version field.  So:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
# JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
# 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
JDK_UPDATE_VER=0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
JDK_BUILD_NUMBER=0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
# JDK ProductVersion:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
# 1.5.0_<wx>-b<yz> will have DLL version 5.0.wx*10.yz
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
# Thus, 1.5.0_10-b04  will be 5.0.100.4
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
#       1.6.0-b01     will be 6.0.0.1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
#       1.6.0_01a-b02 will be 6.0.11.2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
# JDK_* variables are defined in make/hotspot_version or on command line
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
# 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
JDK_VER=$(JDK_MINOR_VER),$(JDK_MICRO_VER),$(JDK_UPDATE_VER),$(JDK_BUILD_NUMBER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
JDK_DOTVER=$(JDK_MINOR_VER).$(JDK_MICRO_VER).$(JDK_UPDATE_VER).$(JDK_BUILD_NUMBER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
!if "$(JRE_RELEASE_VERSION)" == ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
JRE_RELEASE_VER=$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
JRE_RELEASE_VER=$(JRE_RELEASE_VERSION)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
!if "$(JDK_MKTG_VERSION)" == ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
JDK_MKTG_VERSION=$(JDK_MINOR_VER).$(JDK_MICRO_VER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
# Hotspot Express VM FileVersion:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
# 10.0-b<yz> will have DLL version 10.0.0.yz (need 4 numbers).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
# 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
# HS_* variables are defined in make/hotspot_version
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
HS_VER=$(HS_MAJOR_VER),$(HS_MINOR_VER),0,$(HS_BUILD_NUMBER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
HS_DOTVER=$(HS_MAJOR_VER).$(HS_MINOR_VER).0.$(HS_BUILD_NUMBER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
!if "$(HOTSPOT_RELEASE_VERSION)" == ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
HOTSPOT_RELEASE_VERSION=$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
!if "$(HOTSPOT_BUILD_VERSION)" == ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
# End VERSIONINFO parameters
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
# We don't support SA on ia64, and we can't
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
# build it if we are using a version of Vis Studio 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
# older than .Net 2003.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
# SA_INCLUDE and SA_LIB are hold-overs from a previous
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
# implementation in which we could build SA using
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
# Debugging Tools For Windows, in which the .h/.lib files
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
# and the .dlls are in different places than
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
# they are for Vis Studio .Net 2003.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
# If that code ever needs to be resurrected, these vars
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
# can be set here.  They are used in makefiles/sa.make.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
checkSA::
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
!if "$(BUILD_WIN_SA)" != "1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
checkSA::
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
	@echo     Not building SA:  BUILD_WIN_SA != 1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
!elseif "$(ARCH)" == "ia64"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
BUILD_WIN_SA = 0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
checkSA::
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
	@echo     Not building SA:  ARCH = ia64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
!endif  # ! "$(BUILD_WIN_SA)" != "1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
#########################################################################
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
# With the jvm_g.dll now being named jvm.dll, we can't build both and place
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
#   the dll's in the same directory, so we only build one at a time,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
#   re-directing the output to different output directories (done by user
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
#   of this makefile).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
defaultTarget: product
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
# The product or release build is an optimized build, and is the default
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
# note that since all the build targets depend on local.make that BUILDARCH
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
# and Platform_arch and Platform_arch_model will get set in local.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
# and there is no need to pass them thru here on the command line
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
product release optimized: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   222
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=product ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
# The debug or jvmg (all the same thing) is an optional build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
debug jvmg: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   227
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=debug ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
fastdebug: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   230
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=fastdebug ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
develop: checks $(variantDir) $(variantDir)\local.make sanity
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
	cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   234
	nmake -nologo -f $(WorkSpace)\make\windows\makefiles\top.make BUILD_FLAVOR=product DEVELOP=1 ARCH=$(ARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
sanity:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
	@ echo;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
	@ cd $(variantDir)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   239
	@ nmake -nologo -f $(WorkSpace)\make\windows\makefiles\sanity.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
	@ cd ..
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
	@ echo;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
clean: checkVariant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
	- rm -r -f $(variantDir)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
$(variantDir):
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
	mkdir $(variantDir)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
$(variantDir)\local.make: checks
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
	@ echo # Generated file					>  $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
	@ echo Variant=$(realVariant)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
	@ echo WorkSpace=$(WorkSpace)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
	@ echo BootStrapDir=$(BootStrapDir)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
        @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME)	>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
	@ echo HS_VER=$(HS_VER)					>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
	@ echo HS_DOTVER=$(HS_DOTVER)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
	@ echo HS_COMPANY=$(COMPANY_NAME)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
	@ echo HS_FILEDESC=$(HS_FILEDESC)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
	@ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)		>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
	@ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)		>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
	@ echo HS_NAME=$(PRODUCT_NAME) $(JDK_MKTG_VERSION)	>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
	@ echo HS_BUILD_VER=$(HS_BUILD_VER)			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
	@ echo BUILD_WIN_SA=$(BUILD_WIN_SA)    			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
	@ echo SA_BUILD_VERSION=$(HS_BUILD_VER)                 >> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
	@ echo SA_INCLUDE=$(SA_INCLUDE)      			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
	@ echo SA_LIB=$(SA_LIB)         			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
	@ echo JDK_VER=$(JDK_VER)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
	@ echo JDK_DOTVER=$(JDK_DOTVER)				>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
	@ echo JRE_RELEASE_VER=$(JRE_RELEASE_VER)		>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
	@ echo BUILDARCH=$(BUILDARCH)         			>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
	@ echo Platform_arch=$(Platform_arch)        		>> $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
	@ echo Platform_arch_model=$(Platform_arch_model)	>> $@
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   273
	@ sh $(WorkSpace)/make/windows/get_msc_ver.sh		>> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
checks: checkVariant checkWorkSpace checkSA
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
checkVariant:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
	@ if "$(Variant)"=="" echo Need to specify "Variant=[tiered|compiler2|compiler1|kernel|core]" && false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
	@ if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "kernel" if "$(Variant)" NEQ "core" \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
          echo Need to specify "Variant=[tiered|compiler2|compiler1|kernel|core]" && false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
checkWorkSpace:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
	@ if "$(WorkSpace)"=="" echo Need to specify "WorkSpace=..." && false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
checkBuildID:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
	@ if "$(BuildID)"=="" echo Need to specify "BuildID=..." && false