author | jchen |
Thu, 23 May 2013 12:16:17 -0700 | |
changeset 17673 | 33e311ad099a |
parent 7662 | 5f31baaff55b |
child 26691 | 40ea2c41f53b |
permissions | -rw-r--r-- |
1 | 1 |
# |
7662
5f31baaff55b
7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
trims
parents:
7397
diff
changeset
|
2 |
# Copyright (c) 2003, 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 |
||
25 |
# This makefile (jvmti.make) is included from the jvmti.make in the |
|
26 |
# build directories. |
|
27 |
# |
|
28 |
# It knows how to build and run the tools to generate jvmti. |
|
29 |
||
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
30 |
include $(GAMMADIR)/make/solaris/makefiles/rules.make |
1 | 31 |
|
32 |
# ######################################################################### |
|
33 |
||
34 |
GENERATED = ../generated |
|
35 |
JvmtiOutDir = $(GENERATED)/jvmtifiles |
|
36 |
||
37 |
JvmtiSrcDir = $(GAMMADIR)/src/share/vm/prims |
|
38 |
InterpreterSrcDir = $(GAMMADIR)/src/share/vm/interpreter |
|
39 |
||
40 |
# set VPATH so make knows where to look for source files |
|
7397 | 41 |
Src_Dirs_V += $(JvmtiSrcDir) |
42 |
VPATH += $(Src_Dirs_V:%=%:) |
|
1 | 43 |
|
44 |
JvmtiGeneratedNames = \ |
|
45 |
jvmtiEnv.hpp \ |
|
46 |
jvmtiEnter.cpp \ |
|
47 |
jvmtiEnterTrace.cpp \ |
|
48 |
jvmtiEnvRecommended.cpp\ |
|
49 |
bytecodeInterpreterWithChecks.cpp\ |
|
50 |
jvmti.h \ |
|
51 |
||
52 |
JvmtiEnvFillSource = $(JvmtiSrcDir)/jvmtiEnvFill.java |
|
53 |
JvmtiEnvFillClass = $(JvmtiOutDir)/jvmtiEnvFill.class |
|
54 |
||
55 |
JvmtiGenSource = $(JvmtiSrcDir)/jvmtiGen.java |
|
56 |
JvmtiGenClass = $(JvmtiOutDir)/jvmtiGen.class |
|
57 |
||
58 |
JvmtiGeneratedFiles = $(JvmtiGeneratedNames:%=$(JvmtiOutDir)/%) |
|
59 |
||
60 |
XSLT = $(QUIETLY) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiGen |
|
61 |
||
62 |
.PHONY: all jvmtidocs clean cleanall |
|
63 |
||
64 |
# ######################################################################### |
|
65 |
||
66 |
all: $(JvmtiGeneratedFiles) |
|
67 |
||
68 |
both = $(JvmtiGenClass) $(JvmtiSrcDir)/jvmti.xml $(JvmtiSrcDir)/jvmtiLib.xsl |
|
69 |
||
70 |
$(JvmtiGenClass): $(JvmtiGenSource) |
|
3818
75004bf9026c
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents:
670
diff
changeset
|
71 |
$(QUIETLY) $(COMPILE.JAVAC) -d $(JvmtiOutDir) $(JvmtiGenSource) |
1 | 72 |
|
73 |
$(JvmtiEnvFillClass): $(JvmtiEnvFillSource) |
|
3818
75004bf9026c
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents:
670
diff
changeset
|
74 |
$(QUIETLY) $(COMPILE.JAVAC) -d $(JvmtiOutDir) $(JvmtiEnvFillSource) |
1 | 75 |
|
76 |
$(JvmtiOutDir)/jvmtiEnter.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl |
|
77 |
@echo Generating $@ |
|
78 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnter.cpp -PARAM interface jvmti |
|
79 |
||
80 |
$(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp: $(JvmtiGenClass) $(InterpreterSrcDir)/bytecodeInterpreter.cpp $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl |
|
81 |
@echo Generating $@ |
|
82 |
$(XSLT) -IN $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml -XSL $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl -OUT $(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp |
|
83 |
||
84 |
$(JvmtiOutDir)/jvmtiEnterTrace.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl |
|
85 |
@echo Generating $@ |
|
86 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnterTrace.cpp -PARAM interface jvmti -PARAM trace Trace |
|
87 |
||
88 |
$(JvmtiOutDir)/jvmtiEnvRecommended.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnv.xsl $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiEnvFillClass) |
|
89 |
@echo Generating $@ |
|
90 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnv.xsl -OUT $(JvmtiOutDir)/jvmtiEnvStub.cpp |
|
91 |
$(QUIETLY) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiEnvFill $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiOutDir)/jvmtiEnvStub.cpp $(JvmtiOutDir)/jvmtiEnvRecommended.cpp |
|
92 |
||
93 |
$(JvmtiOutDir)/jvmtiEnv.hpp: $(both) $(JvmtiSrcDir)/jvmtiHpp.xsl |
|
94 |
@echo Generating $@ |
|
95 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiHpp.xsl -OUT $(JvmtiOutDir)/jvmtiEnv.hpp |
|
96 |
||
97 |
$(JvmtiOutDir)/jvmti.h: $(both) $(JvmtiSrcDir)/jvmtiH.xsl |
|
98 |
@echo Generating $@ |
|
99 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiH.xsl -OUT $(JvmtiOutDir)/jvmti.h |
|
100 |
||
101 |
jvmtidocs: $(JvmtiOutDir)/jvmti.html |
|
102 |
||
103 |
$(JvmtiOutDir)/jvmti.html: $(both) $(JvmtiSrcDir)/jvmti.xsl |
|
104 |
@echo Generating $@ |
|
105 |
$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmti.xsl -OUT $(JvmtiOutDir)/jvmti.html |
|
106 |
||
107 |
# ######################################################################### |
|
108 |
||
109 |
clean : |
|
110 |
rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles) |
|
111 |
||
112 |
cleanall : |
|
113 |
rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles) |
|
114 |
||
115 |
# ######################################################################### |
|
116 |