author | stefank |
Tue, 23 Nov 2010 13:22:55 -0800 | |
changeset 7397 | 5b173b4ca846 |
parent 5547 | f4b087cbb361 |
child 7403 | 56d379ba4a3c |
permissions | -rw-r--r-- |
1 | 1 |
# |
7397 | 2 |
# Copyright (c) 1999, 2010, 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 |
||
7397 | 25 |
!include local.make |
26 |
||
1 | 27 |
WorkSpace=$(HOTSPOTWORKSPACE) |
28 |
||
29 |
!ifdef ALT_BOOTDIR |
|
30 |
BootStrapDir=$(ALT_BOOTDIR) |
|
31 |
!else |
|
32 |
!ifdef BOOTDIR |
|
33 |
BootStrapDir=$(BOOTDIR) |
|
34 |
!else |
|
35 |
!ifdef JAVA_HOME |
|
36 |
BootStrapDir=$(JAVA_HOME) |
|
37 |
!endif |
|
38 |
!endif |
|
39 |
!endif |
|
40 |
||
7397 | 41 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make |
1 | 42 |
|
43 |
# Pick up rules for building JVMTI (JSR-163) |
|
7397 | 44 |
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
45 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make |
1 | 46 |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
47 |
Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH) |
1 | 48 |
|
49 |
!if "$(Variant)" == "compiler2" |
|
50 |
# 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
|
51 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 52 |
!endif |
53 |
||
54 |
!if "$(Variant)" == "tiered" |
|
55 |
# 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
|
56 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 57 |
!endif |
58 |
||
7397 | 59 |
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) |
1 | 60 |
|
61 |
!include $(HOTSPOTWORKSPACE)/make/hotspot_version |
|
62 |
||
63 |
!if "$(HOTSPOT_RELEASE_VERSION)" != "" |
|
64 |
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)" |
|
65 |
!else |
|
66 |
HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)" |
|
67 |
!endif |
|
68 |
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal |
|
69 |
!if "$(HOTSPOT_BUILD_VERSION)" != "" |
|
70 |
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)" |
|
71 |
!endif |
|
72 |
!if "$(JRE_RELEASE_VERSION)" != "" |
|
73 |
JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)" |
|
74 |
!else |
|
75 |
JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)" |
|
76 |
!endif |
|
77 |
||
78 |
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, |
|
79 |
# and if it is not see if we have the src/closed directory |
|
80 |
!if "$(HOTSPOT_VM_DISTRO)" != "" |
|
81 |
HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)" |
|
82 |
!else |
|
83 |
!if exists($(HOTSPOTWORKSPACE)\src\closed) |
|
84 |
HOTSPOT_VM_DISTRO="Java HotSpot(TM)" |
|
85 |
!else |
|
86 |
HOTSPOT_VM_DISTRO="OpenJDK" |
|
87 |
!endif |
|
88 |
!endif |
|
89 |
||
7397 | 90 |
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \ |
1 | 91 |
-platform $(Platform) \ |
92 |
-define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \ |
|
93 |
-define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \ |
|
94 |
-define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\" |
|
95 |
||
7397 | 96 |
$(HOTSPOTBUILDSPACE)/$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class |
97 |
@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions) |
|
1 | 98 |
|
99 |
clean: |
|
7397 | 100 |
@rm -rf $(HOTSPOTBUILDSPACE)/classes |
101 |
@rm -r ../$(ProjectFile) |
|
1 | 102 |
|
7397 | 103 |
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources) |
1 | 104 |
@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes |
105 |
@mkdir $(HOTSPOTBUILDSPACE)\classes |
|
7397 | 106 |
@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources) |
1 | 107 |
|
108 |
FORCE: |