annotate make/windows/projectfiles/common/Makefile @ 1552:c18cbe5936b8

6941466: Oracle rebranding changes for Hotspot repositories Summary: Change all the Sun copyrights to Oracle copyright Reviewed-by: ohair
author trims
date Thu, 27 May 2010 19:08:38 -0700
parents 0fc81f0a8ca8
children f95d63e2154a c7db7adb83b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
2 # Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
21 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 WorkSpace=$(HOTSPOTWORKSPACE)
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 !ifdef ALT_BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
28 BootStrapDir=$(ALT_BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
29 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
30 !ifdef BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
31 BootStrapDir=$(BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
32 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
33 !ifdef JAVA_HOME
a61af66fc99e Initial load
duke
parents:
diff changeset
34 BootStrapDir=$(JAVA_HOME)
a61af66fc99e Initial load
duke
parents:
diff changeset
35 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
36 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
37 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
38
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
39 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 # Pick up rules for building JVMTI (JSR-163)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
43 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
44
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
45 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 IncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
50 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
a61af66fc99e Initial load
duke
parents:
diff changeset
51 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc \
a61af66fc99e Initial load
duke
parents:
diff changeset
52 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 # Parallel gc files
a61af66fc99e Initial load
duke
parents:
diff changeset
55 IncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel \
a61af66fc99e Initial load
duke
parents:
diff changeset
56 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
a61af66fc99e Initial load
duke
parents:
diff changeset
57 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
a61af66fc99e Initial load
duke
parents:
diff changeset
58 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
442
8fa025608ec6 6771742: Remove duplicate files from G1 merge
jmasa
parents: 196
diff changeset
59 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
8fa025608ec6 6771742: Remove duplicate files from G1 merge
jmasa
parents: 196
diff changeset
60 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
0
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62
a61af66fc99e Initial load
duke
parents:
diff changeset
63 IncludeDBs_kernel =$(IncludeDBs_base) \
a61af66fc99e Initial load
duke
parents:
diff changeset
64 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
a61af66fc99e Initial load
duke
parents:
diff changeset
67 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 IncludeDBs_compiler1=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
70 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 IncludeDBs_compiler2=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
73 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 IncludeDBs_tiered=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
77 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 !if "$(Variant)" == "compiler1"
a61af66fc99e Initial load
duke
parents:
diff changeset
81 IncludeDBs = $(IncludeDBs_compiler1)
a61af66fc99e Initial load
duke
parents:
diff changeset
82 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 !if "$(Variant)" == "compiler2"
a61af66fc99e Initial load
duke
parents:
diff changeset
85 IncludeDBs = $(IncludeDBs_compiler2)
a61af66fc99e Initial load
duke
parents:
diff changeset
86 # Pick up rules for building adlc
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
87 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
88 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
89
a61af66fc99e Initial load
duke
parents:
diff changeset
90 !if "$(Variant)" == "tiered"
a61af66fc99e Initial load
duke
parents:
diff changeset
91 IncludeDBs = $(IncludeDBs_tiered)
a61af66fc99e Initial load
duke
parents:
diff changeset
92 # Pick up rules for building adlc
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
93 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
94 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 !if "$(Variant)" == "core"
a61af66fc99e Initial load
duke
parents:
diff changeset
97 IncludeDBs = $(IncludeDBs_core)
a61af66fc99e Initial load
duke
parents:
diff changeset
98 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 !if "$(Variant)" == "kernel"
a61af66fc99e Initial load
duke
parents:
diff changeset
101 IncludeDBs = $(IncludeDBs_kernel)
a61af66fc99e Initial load
duke
parents:
diff changeset
102 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
107 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
108 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
109 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
110 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
111 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
a61af66fc99e Initial load
duke
parents:
diff changeset
112 !if "$(HOTSPOT_BUILD_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
113 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
114 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
115 !if "$(JRE_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
116 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
117 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
118 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
119 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
120
a61af66fc99e Initial load
duke
parents:
diff changeset
121 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
a61af66fc99e Initial load
duke
parents:
diff changeset
122 # and if it is not see if we have the src/closed directory
a61af66fc99e Initial load
duke
parents:
diff changeset
123 !if "$(HOTSPOT_VM_DISTRO)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
124 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
a61af66fc99e Initial load
duke
parents:
diff changeset
125 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
126 !if exists($(HOTSPOTWORKSPACE)\src\closed)
a61af66fc99e Initial load
duke
parents:
diff changeset
127 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
a61af66fc99e Initial load
duke
parents:
diff changeset
128 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
129 HOTSPOT_VM_DISTRO="OpenJDK"
a61af66fc99e Initial load
duke
parents:
diff changeset
130 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
131 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \
a61af66fc99e Initial load
duke
parents:
diff changeset
134 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
a61af66fc99e Initial load
duke
parents:
diff changeset
135 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
136 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
137 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
a61af66fc99e Initial load
duke
parents:
diff changeset
138 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
a61af66fc99e Initial load
duke
parents:
diff changeset
139 -platform $(Platform) \
a61af66fc99e Initial load
duke
parents:
diff changeset
140 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
141 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
142 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
a61af66fc99e Initial load
duke
parents:
diff changeset
143
a61af66fc99e Initial load
duke
parents:
diff changeset
144 incls:
a61af66fc99e Initial load
duke
parents:
diff changeset
145 @mkdir incls
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
a61af66fc99e Initial load
duke
parents:
diff changeset
148 $(IncludeDBs) incls
a61af66fc99e Initial load
duke
parents:
diff changeset
149 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
a61af66fc99e Initial load
duke
parents:
diff changeset
150 $(HOTSPOTBUILDSPACE)\includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
151 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
152 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
a61af66fc99e Initial load
duke
parents:
diff changeset
153 $(HOTSPOTBUILDSPACE)\includeDB_tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
154 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
a61af66fc99e Initial load
duke
parents:
diff changeset
155 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
a61af66fc99e Initial load
duke
parents:
diff changeset
156 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
157 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
158 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
159 @echo java.cpp jni.h > includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
160 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
a61af66fc99e Initial load
duke
parents:
diff changeset
161 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
a61af66fc99e Initial load
duke
parents:
diff changeset
162 @rm -f includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
163 @cp includeDB includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
164
a61af66fc99e Initial load
duke
parents:
diff changeset
165 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
a61af66fc99e Initial load
duke
parents:
diff changeset
166 @if exist incls rmdir /s /q incls
a61af66fc99e Initial load
duke
parents:
diff changeset
167 @rm -f includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
168 @cat $(IncludeDBs) > includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
169 @mkdir incls
a61af66fc99e Initial load
duke
parents:
diff changeset
170 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
a61af66fc99e Initial load
duke
parents:
diff changeset
171 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
a61af66fc99e Initial load
duke
parents:
diff changeset
172 @rm -f includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
173 @cp includeDB includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
174
a61af66fc99e Initial load
duke
parents:
diff changeset
175 clean:
a61af66fc99e Initial load
duke
parents:
diff changeset
176 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
a61af66fc99e Initial load
duke
parents:
diff changeset
177 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
a61af66fc99e Initial load
duke
parents:
diff changeset
178
a61af66fc99e Initial load
duke
parents:
diff changeset
179 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
a61af66fc99e Initial load
duke
parents:
diff changeset
180 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
a61af66fc99e Initial load
duke
parents:
diff changeset
181 @mkdir $(HOTSPOTBUILDSPACE)\classes
971
0fc81f0a8ca8 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 442
diff changeset
182 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
183
a61af66fc99e Initial load
duke
parents:
diff changeset
184 FORCE: