hotspot/make/windows/projectfiles/common/Makefile
author amurillo
Thu, 24 Apr 2014 14:06:40 -0700
changeset 24238 641b2b1b0163
parent 19277 8952a5e25673
child 24427 f657efe9faf6
permissions -rw-r--r--
8030011: Update Hotspot version string output Reviewed-by: dholmes, jcoomes, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
     2
# Copyright (c) 1999, 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: 3818
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3818
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: 3818
diff changeset
    21
# questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    25
!ifdef LOCAL_MAKE
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    26
!include $(LOCAL_MAKE)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    27
!endif
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    28
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
WorkSpace=$(HOTSPOTWORKSPACE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
!ifdef ALT_BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
BootStrapDir=$(ALT_BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
!ifdef BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
BootStrapDir=$(BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
!ifdef JAVA_HOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
BootStrapDir=$(JAVA_HOME)
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    40
!else
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    41
!ifdef HOTSPOTJDKDIST
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    42
BootStrapDir=$(HOTSPOTJDKDIST)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    43
!endif
1
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
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    48
# 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: 17382
diff changeset
    49
!ifndef OPENJDK
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    50
!if !exists($(WorkSpace)\src\closed)
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    51
OPENJDK=true
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    52
!endif
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    53
!endif
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    54
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    55
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    56
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    57
!include $(WorkSpace)/make/windows/makefiles/compile.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
# Pick up rules for building JVMTI (JSR-163)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    60
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    61
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    63
# Pick up rules for building trace
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    64
TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    65
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    66
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
!if "$(Variant)" == "compiler2"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
# Pick up rules for building adlc
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    69
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
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 "$(Variant)" == "tiered"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
# Pick up rules for building adlc
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    74
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    77
HS_INTERNAL_NAME=jvm
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
    78
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17382
diff changeset
    79
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    81
!include $(HOTSPOTWORKSPACE)/make/jdk_version
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
    83
!if "$(USER_RELEASE_SUFFIX)" != ""
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
    84
HOTSPOT_BUILD_VERSION = internal-$(USER_RELEASE_SUFFIX)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
!else
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
    86
HOTSPOT_BUILD_VERSION = internal
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
!if "$(JRE_RELEASE_VERSION)" != ""
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
    89
JRE_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
!else
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
    91
JRE_RELEASE_VERSION="\\\"$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)\\\""
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
!endif
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    93
!if "$(HOTSPOT_RELEASE_VERSION)" != ""
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    94
HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    95
!else
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    96
HOTSPOT_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 19277
diff changeset
    97
!endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
# and if it is not see if we have the src/closed directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
!if "$(HOTSPOT_VM_DISTRO)" != ""
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
   101
HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
!if exists($(HOTSPOTWORKSPACE)\src\closed)
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
   104
HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
!else
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
   106
HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
14629
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
   110
ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
9a0420652ef1 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 13963
diff changeset
   111
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
8303
81a0b8663748 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 7452
diff changeset
   113
$(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
19277
8952a5e25673 8022740: Visual 2008 IDE build is broken
iklam
parents: 18025
diff changeset
   114
	@if "$(MSC_VER)"=="1500" echo Make sure you have VS2008 SP1 or later, or you may see 'expanded command line too long'
13477
2ac00cd97cf6 7190512: Fix for 7181175 broke hotspot/make/windows/create.bat builds
tbell
parents: 8303
diff changeset
   115
	@$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
clean:
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   118
	@rm -rf $(HOTSPOTBUILDSPACE)/classes
8303
81a0b8663748 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 7452
diff changeset
   119
	@rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   121
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
	@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
	@mkdir $(HOTSPOTBUILDSPACE)\classes
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   124
	@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
FORCE: