Mercurial > hg > graal-compiler
annotate make/linux/makefiles/jvmti.make @ 158:a49545cab84a
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
Summary: Allows for building with SS12, no longer requires SS11, warns if not SS11 for now. Once SS12 is validated and performance measurements look ok, SS12 will be the validated compiler.
Reviewed-by: sspitsyn, ikrylov
author | ohair |
---|---|
date | Tue, 27 May 2008 09:47:18 -0700 |
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 |