Mercurial > hg > truffle
annotate make/windows/projectfiles/common/Makefile @ 236:2bdd95ad93d7
Added tag jdk7-b31 for changeset 9c2ecc2ffb12
author | xdono |
---|---|
date | Thu, 17 Jul 2008 11:28:34 -0700 |
parents | d1605aabd0a1 |
children | 8fa025608ec6 |
rev | line source |
---|---|
0 | 1 # |
196 | 2 # Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved. |
0 | 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 # CA 95054 USA or visit www.sun.com if you need additional information or | |
21 # have any questions. | |
22 # | |
23 # | |
24 | |
25 WorkSpace=$(HOTSPOTWORKSPACE) | |
26 | |
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 | |
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 | 40 |
41 # Pick up rules for building JVMTI (JSR-163) | |
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 | 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 | 46 |
47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) | |
48 | |
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 | |
53 | |
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 | |
61 | |
62 IncludeDBs_kernel =$(IncludeDBs_base) \ | |
63 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 | |
64 | |
65 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \ | |
66 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features | |
67 | |
68 IncludeDBs_compiler1=$(IncludeDBs_core) \ | |
69 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 | |
70 | |
71 IncludeDBs_compiler2=$(IncludeDBs_core) \ | |
72 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2 | |
73 | |
74 IncludeDBs_tiered=$(IncludeDBs_core) \ | |
75 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \ | |
76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2 | |
77 | |
78 | |
79 !if "$(Variant)" == "compiler1" | |
80 IncludeDBs = $(IncludeDBs_compiler1) | |
81 !endif | |
82 | |
83 !if "$(Variant)" == "compiler2" | |
84 IncludeDBs = $(IncludeDBs_compiler2) | |
85 # 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
|
86 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 87 !endif |
88 | |
89 !if "$(Variant)" == "tiered" | |
90 IncludeDBs = $(IncludeDBs_tiered) | |
91 # 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
|
92 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 93 !endif |
94 | |
95 !if "$(Variant)" == "core" | |
96 IncludeDBs = $(IncludeDBs_core) | |
97 !endif | |
98 | |
99 !if "$(Variant)" == "kernel" | |
100 IncludeDBs = $(IncludeDBs_kernel) | |
101 !endif | |
102 | |
103 !include $(HOTSPOTWORKSPACE)/make/hotspot_version | |
104 | |
105 !if "$(HOTSPOT_RELEASE_VERSION)" != "" | |
106 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)" | |
107 !else | |
108 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)" | |
109 !endif | |
110 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal | |
111 !if "$(HOTSPOT_BUILD_VERSION)" != "" | |
112 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)" | |
113 !endif | |
114 !if "$(JRE_RELEASE_VERSION)" != "" | |
115 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)" | |
116 !else | |
117 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)" | |
118 !endif | |
119 | |
120 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, | |
121 # and if it is not see if we have the src/closed directory | |
122 !if "$(HOTSPOT_VM_DISTRO)" != "" | |
123 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)" | |
124 !else | |
125 !if exists($(HOTSPOTWORKSPACE)\src\closed) | |
126 HOTSPOT_VM_DISTRO="Java HotSpot(TM)" | |
127 !else | |
128 HOTSPOT_VM_DISTRO="OpenJDK" | |
129 !endif | |
130 !endif | |
131 | |
132 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \ | |
133 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \ | |
134 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \ | |
135 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \ | |
136 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \ | |
137 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \ | |
138 -platform $(Platform) \ | |
139 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \ | |
140 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \ | |
141 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\" | |
142 | |
143 incls: | |
144 @mkdir incls | |
145 | |
146 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \ | |
147 $(IncludeDBs) incls | |
148 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \ | |
149 $(HOTSPOTBUILDSPACE)\includeDB_core \ | |
150 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \ | |
151 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \ | |
152 $(HOTSPOTBUILDSPACE)\includeDB_tiered | |
153 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel | |
154 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core | |
155 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1 | |
156 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2 | |
157 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered | |
158 @echo java.cpp jni.h > includeDB | |
159 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \ | |
160 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions) | |
161 @rm -f includeDB.current | |
162 @cp includeDB includeDB.current | |
163 | |
164 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE | |
165 @if exist incls rmdir /s /q incls | |
166 @rm -f includeDB | |
167 @cat $(IncludeDBs) > includeDB | |
168 @mkdir incls | |
169 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \ | |
170 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions) | |
171 @rm -f includeDB.current | |
172 @cp includeDB includeDB.current | |
173 | |
174 clean: | |
175 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes | |
176 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies | |
177 | |
178 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources) | |
179 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes | |
180 @mkdir $(HOTSPOTBUILDSPACE)\classes | |
181 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -g -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources) | |
182 | |
183 FORCE: |