author | sla |
Thu, 10 Feb 2011 13:03:22 +0100 | |
changeset 8303 | 81a0b8663748 |
parent 7452 | b3fa838286de |
child 13477 | 2ac00cd97cf6 |
permissions | -rw-r--r-- |
1 | 1 |
# |
8303
81a0b8663748
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
7452
diff
changeset
|
2 |
# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
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 | 22 |
# |
23 |
# |
|
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 | 29 |
|
1 | 30 |
WorkSpace=$(HOTSPOTWORKSPACE) |
31 |
||
32 |
!ifdef ALT_BOOTDIR |
|
33 |
BootStrapDir=$(ALT_BOOTDIR) |
|
34 |
!else |
|
35 |
!ifdef BOOTDIR |
|
36 |
BootStrapDir=$(BOOTDIR) |
|
37 |
!else |
|
38 |
!ifdef JAVA_HOME |
|
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 | 44 |
!endif |
45 |
!endif |
|
46 |
!endif |
|
47 |
||
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
48 |
|
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
49 |
|
7397 | 50 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make |
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
51 |
!include $(WorkSpace)/make/windows/makefiles/compile.make |
1 | 52 |
|
53 |
# Pick up rules for building JVMTI (JSR-163) |
|
7397 | 54 |
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
55 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make |
1 | 56 |
|
57 |
!if "$(Variant)" == "compiler2" |
|
58 |
# 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
|
59 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 60 |
!endif |
61 |
||
62 |
!if "$(Variant)" == "tiered" |
|
63 |
# 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
|
64 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 65 |
!endif |
66 |
||
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
67 |
HS_INTERNAL_NAME=jvm |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
68 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/launcher.make |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
69 |
|
7397 | 70 |
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) |
1 | 71 |
|
72 |
!include $(HOTSPOTWORKSPACE)/make/hotspot_version |
|
73 |
||
74 |
!if "$(HOTSPOT_RELEASE_VERSION)" != "" |
|
75 |
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)" |
|
76 |
!else |
|
77 |
HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)" |
|
78 |
!endif |
|
7402
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
5547
diff
changeset
|
79 |
!if "$(USER_RELEASE_SUFFIX)" != "" |
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
5547
diff
changeset
|
80 |
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX) |
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
5547
diff
changeset
|
81 |
!else |
1 | 82 |
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal |
7402
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
5547
diff
changeset
|
83 |
!endif |
1 | 84 |
!if "$(HOTSPOT_BUILD_VERSION)" != "" |
85 |
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)" |
|
86 |
!endif |
|
87 |
!if "$(JRE_RELEASE_VERSION)" != "" |
|
88 |
JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)" |
|
89 |
!else |
|
90 |
JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)" |
|
91 |
!endif |
|
92 |
||
93 |
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, |
|
94 |
# and if it is not see if we have the src/closed directory |
|
95 |
!if "$(HOTSPOT_VM_DISTRO)" != "" |
|
96 |
HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)" |
|
97 |
!else |
|
98 |
!if exists($(HOTSPOTWORKSPACE)\src\closed) |
|
99 |
HOTSPOT_VM_DISTRO="Java HotSpot(TM)" |
|
100 |
!else |
|
101 |
HOTSPOT_VM_DISTRO="OpenJDK" |
|
102 |
!endif |
|
103 |
!endif |
|
104 |
||
7397 | 105 |
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \ |
1 | 106 |
-define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \ |
107 |
-define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \ |
|
108 |
-define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\" |
|
109 |
||
8303
81a0b8663748
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
7452
diff
changeset
|
110 |
$(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class |
7397 | 111 |
@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions) |
1 | 112 |
|
113 |
clean: |
|
7397 | 114 |
@rm -rf $(HOTSPOTBUILDSPACE)/classes |
8303
81a0b8663748
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
7452
diff
changeset
|
115 |
@rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile) |
1 | 116 |
|
7397 | 117 |
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources) |
1 | 118 |
@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes |
119 |
@mkdir $(HOTSPOTBUILDSPACE)\classes |
|
7397 | 120 |
@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources) |
1 | 121 |
|
122 |
FORCE: |