Mercurial > hg > graal-jvmci-8
annotate make/linux/makefiles/jvmti.make @ 116:018d5b58dd4f
6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
Summary: Initial checkin of JSDT code
Reviewed-by: acorn, sbohne
author | kamg |
---|---|
date | Thu, 17 Apr 2008 22:18:15 -0400 |
parents | a294fd0c4b38 |
children | d1605aabd0a1 |
rev | line source |
---|---|
0 | 1 # |
2 # Copyright 2003-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 # 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 | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
30 include $(GAMMADIR)/make/linux/makefiles/rules.make |
0 | 31 |
32 # ######################################################################### | |
33 | |
34 TOPDIR = $(shell echo `pwd`) | |
35 GENERATED = $(TOPDIR)/../generated | |
36 JvmtiOutDir = $(GENERATED)/jvmtifiles | |
37 | |
38 JvmtiSrcDir = $(GAMMADIR)/src/share/vm/prims | |
39 InterpreterSrcDir = $(GAMMADIR)/src/share/vm/interpreter | |
40 Src_Dirs += $(JvmtiSrcDir) | |
41 | |
42 # set VPATH so make knows where to look for source files | |
43 Src_Dirs_V = ${Src_Dirs} | |
44 VPATH += $(Src_Dirs_V:%=%:) | |
45 | |
46 JvmtiGeneratedNames = \ | |
47 jvmtiEnv.hpp \ | |
48 jvmtiEnter.cpp \ | |
49 jvmtiEnterTrace.cpp \ | |
50 jvmtiEnvRecommended.cpp \ | |
51 bytecodeInterpreterWithChecks.cpp \ | |
52 jvmti.h \ | |
53 | |
54 JvmtiEnvFillSource = $(JvmtiSrcDir)/jvmtiEnvFill.java | |
55 JvmtiEnvFillClass = $(JvmtiOutDir)/jvmtiEnvFill.class | |
56 | |
57 JvmtiGenSource = $(JvmtiSrcDir)/jvmtiGen.java | |
58 JvmtiGenClass = $(JvmtiOutDir)/jvmtiGen.class | |
59 | |
60 JvmtiGeneratedFiles = $(JvmtiGeneratedNames:%=$(JvmtiOutDir)/%) | |
61 | |
62 XSLT = $(QUIETLY) $(REMOTE) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiGen | |
63 | |
64 .PHONY: all jvmtidocs clean cleanall | |
65 | |
66 # ######################################################################### | |
67 | |
68 all: $(JvmtiGeneratedFiles) | |
69 | |
70 both = $(JvmtiGenClass) $(JvmtiSrcDir)/jvmti.xml $(JvmtiSrcDir)/jvmtiLib.xsl | |
71 | |
72 $(JvmtiGenClass): $(JvmtiGenSource) | |
73 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -g -d $(JvmtiOutDir) $(JvmtiGenSource) | |
74 | |
75 $(JvmtiEnvFillClass): $(JvmtiEnvFillSource) | |
76 $(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -g -d $(JvmtiOutDir) $(JvmtiEnvFillSource) | |
77 | |
78 $(JvmtiOutDir)/jvmtiEnter.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl | |
79 @echo Generating $@ | |
80 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnter.cpp -PARAM interface jvmti | |
81 | |
82 $(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp: $(JvmtiGenClass) $(InterpreterSrcDir)/bytecodeInterpreter.cpp $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl | |
83 @echo Generating $@ | |
84 $(XSLT) -IN $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml -XSL $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl -OUT $(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp | |
85 | |
86 $(JvmtiOutDir)/jvmtiEnterTrace.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl | |
87 @echo Generating $@ | |
88 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnterTrace.cpp -PARAM interface jvmti -PARAM trace Trace | |
89 | |
90 $(JvmtiOutDir)/jvmtiEnvRecommended.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnv.xsl $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiEnvFillClass) | |
91 @echo Generating $@ | |
92 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnv.xsl -OUT $(JvmtiOutDir)/jvmtiEnvStub.cpp | |
93 $(QUIETLY) $(REMOTE) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiEnvFill $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiOutDir)/jvmtiEnvStub.cpp $(JvmtiOutDir)/jvmtiEnvRecommended.cpp | |
94 | |
95 $(JvmtiOutDir)/jvmtiEnv.hpp: $(both) $(JvmtiSrcDir)/jvmtiHpp.xsl | |
96 @echo Generating $@ | |
97 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiHpp.xsl -OUT $(JvmtiOutDir)/jvmtiEnv.hpp | |
98 | |
99 $(JvmtiOutDir)/jvmti.h: $(both) $(JvmtiSrcDir)/jvmtiH.xsl | |
100 @echo Generating $@ | |
101 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiH.xsl -OUT $(JvmtiOutDir)/jvmti.h | |
102 | |
103 jvmtidocs: $(JvmtiOutDir)/jvmti.html | |
104 | |
105 $(JvmtiOutDir)/jvmti.html: $(both) $(JvmtiSrcDir)/jvmti.xsl | |
106 @echo Generating $@ | |
107 $(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmti.xsl -OUT $(JvmtiOutDir)/jvmti.html | |
108 | |
109 # ######################################################################### | |
110 | |
111 clean : | |
112 rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles) | |
113 | |
114 cleanall : | |
115 rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles) | |
116 | |
117 # ######################################################################### | |
118 |