21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 # or visit www.oracle.com if you need additional information or have any |
22 # or visit www.oracle.com if you need additional information or have any |
23 # questions. |
23 # questions. |
24 # |
24 # |
25 |
25 |
26 $(eval $(call IncludeCustomExtension, hotspot, gensrc/GensrcJvmti.gmk)) |
26 $(eval $(call IncludeCustomExtension, , hotspot/gensrc/GensrcJvmti.gmk)) |
27 |
27 |
28 ################################################################################ |
28 ################################################################################ |
29 # Build tools needed for the JVMTI source code generation |
29 # Build tools needed for the JVMTI source code generation |
30 |
30 |
31 JVMTI_TOOLS_SRCDIR := $(HOTSPOT_TOPDIR)/src/share/vm/prims |
31 JVMTI_TOOLS_SRCDIR := $(TOPDIR)/src/hotspot/share/prims |
32 JVMTI_TOOLS_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/tools/jvmti |
32 JVMTI_TOOLS_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/tools/jvmti |
33 |
33 |
34 $(eval $(call SetupJavaCompiler, GENERATE_OLDBYTECODE, \ |
34 $(eval $(call SetupJavaCompiler, GENERATE_OLDBYTECODE, \ |
35 JAVAC := $(JAVAC), \ |
35 JAVAC := $(JAVAC), \ |
36 FLAGS := $(DISABLE_WARNINGS), \ |
36 FLAGS := $(DISABLE_WARNINGS), \ |
77 endef |
77 endef |
78 |
78 |
79 ################################################################################ |
79 ################################################################################ |
80 # Create JVMTI files in gensrc/jvmtifiles |
80 # Create JVMTI files in gensrc/jvmtifiles |
81 |
81 |
82 JVMTI_SRCDIR := $(HOTSPOT_TOPDIR)/src/share/vm/prims |
82 JVMTI_SRCDIR := $(TOPDIR)/src/hotspot/share/prims |
83 JVMTI_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/gensrc/jvmtifiles |
83 JVMTI_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/gensrc/jvmtifiles |
84 |
84 |
85 # Setup rule for generating a jvmti file |
85 # Setup rule for generating a jvmti file |
86 # |
86 # |
87 # $1 is generated source file name in $(JVMTI_OUTPUTDIR) |
87 # $1 is generated source file name in $(JVMTI_OUTPUTDIR) |
104 $(eval $(call SetupJvmtiGeneration, jvmtiEnv.hpp, jvmtiHpp.xsl)) |
104 $(eval $(call SetupJvmtiGeneration, jvmtiEnv.hpp, jvmtiHpp.xsl)) |
105 $(eval $(call SetupJvmtiGeneration, jvmti.h, jvmtiH.xsl)) |
105 $(eval $(call SetupJvmtiGeneration, jvmti.h, jvmtiH.xsl)) |
106 $(eval $(call SetupJvmtiGeneration, jvmti.html, jvmti.xsl)) |
106 $(eval $(call SetupJvmtiGeneration, jvmti.html, jvmti.xsl)) |
107 $(eval $(call SetupJvmtiGeneration, jvmtiEnvStub.cpp, jvmtiEnv.xsl)) |
107 $(eval $(call SetupJvmtiGeneration, jvmtiEnvStub.cpp, jvmtiEnv.xsl)) |
108 |
108 |
109 JVMTI_BC_SRCDIR := $(HOTSPOT_TOPDIR)/src/share/vm/interpreter |
109 JVMTI_BC_SRCDIR := $(TOPDIR)/src/hotspot/share/interpreter |
110 |
110 |
111 $(eval $(call SetupXslTransform, bytecodeInterpreterWithChecks.cpp, \ |
111 $(eval $(call SetupXslTransform, bytecodeInterpreterWithChecks.cpp, \ |
112 XML_FILE := $(JVMTI_BC_SRCDIR)/bytecodeInterpreterWithChecks.xml, \ |
112 XML_FILE := $(JVMTI_BC_SRCDIR)/bytecodeInterpreterWithChecks.xml, \ |
113 XSL_FILE := $(JVMTI_BC_SRCDIR)/bytecodeInterpreterWithChecks.xsl, \ |
113 XSL_FILE := $(JVMTI_BC_SRCDIR)/bytecodeInterpreterWithChecks.xsl, \ |
114 OUTPUT_DIR := $(JVMTI_OUTPUTDIR), \ |
114 OUTPUT_DIR := $(JVMTI_OUTPUTDIR), \ |
144 |
144 |
145 ################################################################################ |
145 ################################################################################ |
146 # Create trace files in gensrc/tracefiles |
146 # Create trace files in gensrc/tracefiles |
147 |
147 |
148 TRACE_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/gensrc/tracefiles |
148 TRACE_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/gensrc/tracefiles |
149 TRACE_SRCDIR := $(HOTSPOT_TOPDIR)/src/share/vm/trace |
149 TRACE_SRCDIR := $(TOPDIR)/src/hotspot/share/trace |
150 |
150 |
151 # Append list of XSL files to search (might have been set by custom extensions) |
151 # Append list of XSL files to search (might have been set by custom extensions) |
152 TRACE_XSL_FILES += $(wildcard $(TRACE_SRCDIR)/*.xsl) |
152 TRACE_XSL_FILES += $(wildcard $(TRACE_SRCDIR)/*.xsl) |
153 |
153 |
154 TRACE_XML ?= $(TRACE_SRCDIR)/trace.xml |
154 TRACE_XML ?= $(TRACE_SRCDIR)/trace.xml |