|
1 # |
|
2 # Copyright 2005-2007 Sun Microsystems, Inc. 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 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 !include ../local.make |
|
26 !include $(WorkSpace)/make/windows/makefiles/makedeps.make |
|
27 !include local.make |
|
28 |
|
29 # Pick up rules for building JVMTI (JSR-163) |
|
30 JvmtiOutDir=jvmtifiles |
|
31 !include $(WorkSpace)/make/windows/makefiles/jvmti.make |
|
32 |
|
33 # Pick up rules for building SA |
|
34 !include $(WorkSpace)/make/windows/makefiles/sa.make |
|
35 |
|
36 !if ("$(Variant)" == "compiler2") || ("$(Variant)" == "tiered") |
|
37 default:: includeDB.current Dependencies incls/ad_$(Platform_arch_model).cpp incls/dfa_$(Platform_arch_model).cpp $(JvmtiGeneratedFiles) |
|
38 !else |
|
39 default:: includeDB.current Dependencies $(JvmtiGeneratedFiles) |
|
40 !endif |
|
41 |
|
42 # core plus serial gc |
|
43 IncludeDBs_base=$(WorkSpace)/src/share/vm/includeDB_core \ |
|
44 $(WorkSpace)/src/share/vm/includeDB_jvmti \ |
|
45 $(WorkSpace)/src/share/vm/includeDB_gc \ |
|
46 $(WorkSpace)/src/share/vm/gc_implementation/includeDB_gc_serial |
|
47 |
|
48 # parallel gc |
|
49 IncludeDBs_gc= $(WorkSpace)/src/share/vm/includeDB_gc_parallel \ |
|
50 $(WorkSpace)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \ |
|
51 $(WorkSpace)/src/share/vm/gc_implementation/includeDB_gc_shared \ |
|
52 $(WorkSpace)/src/share/vm/gc_implementation/includeDB_gc_parNew \ |
|
53 $(WorkSpace)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep |
|
54 |
|
55 IncludeDBs_core=$(IncludeDBs_base) $(IncludeDBs_gc) \ |
|
56 $(WorkSpace)/src/share/vm/includeDB_features |
|
57 |
|
58 !if "$(Variant)" == "core" |
|
59 IncludeDBs=$(IncludeDBs_core) |
|
60 !endif |
|
61 |
|
62 !if "$(Variant)" == "kernel" |
|
63 IncludeDBs=$(IncludeDBs_base) $(WorkSpace)/src/share/vm/includeDB_compiler1 |
|
64 !endif |
|
65 |
|
66 !if "$(Variant)" == "compiler1" |
|
67 IncludeDBs=$(IncludeDBs_core) $(WorkSpace)/src/share/vm/includeDB_compiler1 |
|
68 !endif |
|
69 |
|
70 |
|
71 !if "$(Variant)" == "compiler2" |
|
72 IncludeDBs=$(IncludeDBs_core) $(WorkSpace)/src/share/vm/includeDB_compiler2 |
|
73 !endif |
|
74 |
|
75 !if "$(Variant)" == "tiered" |
|
76 IncludeDBs=$(IncludeDBs_core) $(WorkSpace)/src/share/vm/includeDB_compiler1 \ |
|
77 $(WorkSpace)/src/share/vm/includeDB_compiler2 |
|
78 !endif |
|
79 |
|
80 # Note we don't generate a Visual C++ project file using MakeDeps for |
|
81 # the batch build. |
|
82 includeDB.current Dependencies: classes/MakeDeps.class $(IncludeDBs) |
|
83 cat $(IncludeDBs) > includeDB |
|
84 if exist incls rmdir /s /q incls |
|
85 mkdir incls |
|
86 $(RUN_JAVA) -Djava.class.path=classes MakeDeps WinGammaPlatform$(VcVersion) $(WorkSpace)/make/windows/platform_$(BUILDARCH) includeDB $(MakeDepsOptions) |
|
87 rm -f includeDB.current |
|
88 cp includeDB includeDB.current |
|
89 |
|
90 classes/MakeDeps.class: $(MakeDepsSources) |
|
91 if exist classes rmdir /s /q classes |
|
92 mkdir classes |
|
93 $(COMPILE_JAVAC) -classpath $(WorkSpace)\src\share\tools\MakeDeps -g -d classes $(MakeDepsSources) |
|
94 |
|
95 !if ("$(Variant)" == "compiler2") || ("$(Variant)" == "tiered") |
|
96 |
|
97 !include $(WorkSpace)/make/windows/makefiles/adlc.make |
|
98 |
|
99 !endif |
|
100 |
|
101 !include $(WorkSpace)/make/windows/makefiles/shared.make |