hotspot/make/bsd/makefiles/jvmti.make
author rdurbin
Mon, 10 Feb 2014 12:38:34 -0800
changeset 22754 427faa438d2d
parent 10565 dc90c239f4ec
child 26691 40ea2c41f53b
permissions -rw-r--r--
8005262: possible gamma launcher issues Summary: Cleaned out make targets and comments associated with the previously removed gamma launcher Reviewed-by: dcubed, stefank
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     2
# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
# published by the Free Software Foundation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    13
# accompanied this code).
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    14
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    18
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    21
# questions.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    22
#  
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    23
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    24
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    25
# This makefile (jvmti.make) is included from the jvmti.make in the
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    26
# build directories.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    27
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    28
# It knows how to build and run the tools to generate jvmti.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    29
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    30
include $(GAMMADIR)/make/bsd/makefiles/rules.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    31
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    32
# #########################################################################
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    33
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    34
TOPDIR      = $(shell echo `pwd`)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    35
GENERATED   = $(TOPDIR)/../generated
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    36
JvmtiOutDir = $(GENERATED)/jvmtifiles
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    37
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    38
JvmtiSrcDir = $(GAMMADIR)/src/share/vm/prims
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    39
InterpreterSrcDir = $(GAMMADIR)/src/share/vm/interpreter
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    40
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    41
# set VPATH so make knows where to look for source files
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    42
Src_Dirs_V += $(JvmtiSrcDir)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    43
VPATH += $(Src_Dirs_V:%=%:)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    44
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    45
JvmtiGeneratedNames = \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    46
        jvmtiEnv.hpp \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    47
        jvmtiEnter.cpp \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    48
        jvmtiEnterTrace.cpp \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    49
        jvmtiEnvRecommended.cpp \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    50
        bytecodeInterpreterWithChecks.cpp \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    51
        jvmti.h \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    52
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    53
JvmtiEnvFillSource = $(JvmtiSrcDir)/jvmtiEnvFill.java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    54
JvmtiEnvFillClass = $(JvmtiOutDir)/jvmtiEnvFill.class
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    55
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    56
JvmtiGenSource = $(JvmtiSrcDir)/jvmtiGen.java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    57
JvmtiGenClass = $(JvmtiOutDir)/jvmtiGen.class
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    58
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    59
JvmtiGeneratedFiles = $(JvmtiGeneratedNames:%=$(JvmtiOutDir)/%)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    60
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    61
XSLT = $(QUIETLY) $(REMOTE) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiGen
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    62
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    63
.PHONY: all jvmtidocs clean cleanall
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    65
# #########################################################################
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    66
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    67
all: $(JvmtiGeneratedFiles)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    68
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    69
both = $(JvmtiGenClass) $(JvmtiSrcDir)/jvmti.xml $(JvmtiSrcDir)/jvmtiLib.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    70
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    71
$(JvmtiGenClass): $(JvmtiGenSource)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    72
	$(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -d $(JvmtiOutDir) $(JvmtiGenSource)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    73
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    74
$(JvmtiEnvFillClass): $(JvmtiEnvFillSource)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    75
	$(QUIETLY) $(REMOTE) $(COMPILE.JAVAC) -d $(JvmtiOutDir) $(JvmtiEnvFillSource)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    76
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    77
$(JvmtiOutDir)/jvmtiEnter.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    78
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    79
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnter.cpp -PARAM interface jvmti
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    80
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    81
$(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp: $(JvmtiGenClass) $(InterpreterSrcDir)/bytecodeInterpreter.cpp $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    82
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    83
	$(XSLT) -IN $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xml -XSL $(InterpreterSrcDir)/bytecodeInterpreterWithChecks.xsl -OUT $(JvmtiOutDir)/bytecodeInterpreterWithChecks.cpp 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    84
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    85
$(JvmtiOutDir)/jvmtiEnterTrace.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnter.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    86
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    87
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnter.xsl -OUT $(JvmtiOutDir)/jvmtiEnterTrace.cpp -PARAM interface jvmti -PARAM trace Trace
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    88
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    89
$(JvmtiOutDir)/jvmtiEnvRecommended.cpp: $(both) $(JvmtiSrcDir)/jvmtiEnv.xsl $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiEnvFillClass)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    90
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    91
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiEnv.xsl -OUT $(JvmtiOutDir)/jvmtiEnvStub.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    92
	$(QUIETLY) $(REMOTE) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiEnvFill $(JvmtiSrcDir)/jvmtiEnv.cpp $(JvmtiOutDir)/jvmtiEnvStub.cpp $(JvmtiOutDir)/jvmtiEnvRecommended.cpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    93
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    94
$(JvmtiOutDir)/jvmtiEnv.hpp: $(both) $(JvmtiSrcDir)/jvmtiHpp.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    95
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    96
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiHpp.xsl -OUT $(JvmtiOutDir)/jvmtiEnv.hpp
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    97
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    98
$(JvmtiOutDir)/jvmti.h: $(both) $(JvmtiSrcDir)/jvmtiH.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    99
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   100
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmtiH.xsl -OUT $(JvmtiOutDir)/jvmti.h
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   101
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   102
jvmtidocs:  $(JvmtiOutDir)/jvmti.html 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   103
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   104
$(JvmtiOutDir)/jvmti.html: $(both) $(JvmtiSrcDir)/jvmti.xsl
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   105
	@echo Generating $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   106
	$(XSLT) -IN $(JvmtiSrcDir)/jvmti.xml -XSL $(JvmtiSrcDir)/jvmti.xsl -OUT $(JvmtiOutDir)/jvmti.html
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   107
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   108
# #########################################################################
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   109
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   110
clean :
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   111
	rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   112
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   113
cleanall :
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   114
	rm $(JvmtiGenClass) $(JvmtiEnvFillClass) $(JvmtiGeneratedFiles)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   115
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   116
# #########################################################################
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   117