Tue, 30 Nov 2010 18:07:18 -0800
6987107: Add variable to add to but not modify non-fcs version string
Reviewed-by: jcoomes, dholmes, andrew, kvn
1 #
2 # Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
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 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23 #
25 WorkSpace=$(HOTSPOTWORKSPACE)
27 !ifdef ALT_BOOTDIR
28 BootStrapDir=$(ALT_BOOTDIR)
29 !else
30 !ifdef BOOTDIR
31 BootStrapDir=$(BOOTDIR)
32 !else
33 !ifdef JAVA_HOME
34 BootStrapDir=$(JAVA_HOME)
35 !endif
36 !endif
37 !endif
39 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
41 # Pick up rules for building JVMTI (JSR-163)
42 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
43 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
45 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
49 IncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core \
50 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
51 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc \
52 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
54 # Parallel gc files
55 IncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel \
56 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
57 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
58 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
59 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
60 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
63 IncludeDBs_kernel =$(IncludeDBs_base) \
64 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
66 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
67 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
69 IncludeDBs_compiler1=$(IncludeDBs_core) \
70 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
72 IncludeDBs_compiler2=$(IncludeDBs_core) \
73 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
75 IncludeDBs_tiered=$(IncludeDBs_core) \
76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
77 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
80 !if "$(Variant)" == "compiler1"
81 IncludeDBs = $(IncludeDBs_compiler1)
82 !endif
84 !if "$(Variant)" == "compiler2"
85 IncludeDBs = $(IncludeDBs_compiler2)
86 # Pick up rules for building adlc
87 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
88 !endif
90 !if "$(Variant)" == "tiered"
91 IncludeDBs = $(IncludeDBs_tiered)
92 # Pick up rules for building adlc
93 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
94 !endif
96 !if "$(Variant)" == "core"
97 IncludeDBs = $(IncludeDBs_core)
98 !endif
100 !if "$(Variant)" == "kernel"
101 IncludeDBs = $(IncludeDBs_kernel)
102 !endif
104 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
106 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
107 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
108 !else
109 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
110 !endif
111 !if "$(USER_RELEASE_SUFFIX)" != ""
112 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX)
113 !else
114 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
115 !endif
116 !if "$(HOTSPOT_BUILD_VERSION)" != ""
117 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
118 !endif
119 !if "$(JRE_RELEASE_VERSION)" != ""
120 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
121 !else
122 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
123 !endif
125 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
126 # and if it is not see if we have the src/closed directory
127 !if "$(HOTSPOT_VM_DISTRO)" != ""
128 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
129 !else
130 !if exists($(HOTSPOTWORKSPACE)\src\closed)
131 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
132 !else
133 HOTSPOT_VM_DISTRO="OpenJDK"
134 !endif
135 !endif
137 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \
138 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
139 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
140 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
141 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
142 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
143 -platform $(Platform) \
144 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
145 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
146 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
148 incls:
149 @mkdir incls
151 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
152 $(IncludeDBs) incls
153 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
154 $(HOTSPOTBUILDSPACE)\includeDB_core \
155 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
156 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
157 $(HOTSPOTBUILDSPACE)\includeDB_tiered
158 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
159 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
160 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
161 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
162 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
163 @echo java.cpp jni.h > includeDB
164 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
165 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
166 @rm -f includeDB.current
167 @cp includeDB includeDB.current
169 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
170 @if exist incls rmdir /s /q incls
171 @rm -f includeDB
172 @cat $(IncludeDBs) > includeDB
173 @mkdir incls
174 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
175 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
176 @rm -f includeDB.current
177 @cp includeDB includeDB.current
179 clean:
180 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
181 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
183 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
184 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
185 @mkdir $(HOTSPOTBUILDSPACE)\classes
186 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
188 FORCE: