hotspot/make/aix/makefiles/jvmti.make
changeset 22830 df1bb606b2ca
child 26691 40ea2c41f53b
equal deleted inserted replaced
22829:08b62d0e80ed 22830:df1bb606b2ca
       
     1 #
       
     2 # Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
       
     3 # Copyright 2012, 2013 SAP AG. All rights reserved.
       
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     5 #
       
     6 # This code is free software; you can redistribute it and/or modify it
       
     7 # under the terms of the GNU General Public License version 2 only, as
       
     8 # published by the Free Software Foundation.
       
     9 #
       
    10 # This code is distributed in the hope that it will be useful, but WITHOUT
       
    11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    13 # version 2 for more details (a copy is included in the LICENSE file that
       
    14 # accompanied this code).
       
    15 #
       
    16 # You should have received a copy of the GNU General Public License version
       
    17 # 2 along with this work; if not, write to the Free Software Foundation,
       
    18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    19 #
       
    20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    21 # or visit www.oracle.com if you need additional information or have any
       
    22 # questions.
       
    23 #  
       
    24 #
       
    25 
       
    26 # This makefile (jvmti.make) is included from the jvmti.make in the
       
    27 # build directories.
       
    28 #
       
    29 # It knows how to build and run the tools to generate jvmti.
       
    30 
       
    31 include $(GAMMADIR)/make/aix/makefiles/rules.make
       
    32 
       
    33 # #########################################################################
       
    34 
       
    35 TOPDIR      = $(shell echo `pwd`)
       
    36 GENERATED   = $(TOPDIR)/../generated
       
    37 JvmtiOutDir = $(GENERATED)/jvmtifiles
       
    38 
       
    39 JvmtiSrcDir = $(GAMMADIR)/src/share/vm/prims
       
    40 InterpreterSrcDir = $(GAMMADIR)/src/share/vm/interpreter
       
    41 
       
    42 # set VPATH so make knows where to look for source files
       
    43 Src_Dirs_V += $(JvmtiSrcDir)
       
    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) -d $(JvmtiOutDir) $(JvmtiGenSource)
       
    74 
       
    75 $(JvmtiEnvFillClass): $(JvmtiEnvFillSource)
       
    76 	$(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -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