Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/windows/makefiles/jfr.make
32285 views
#1# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2018-2019, Azul Systems, 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 it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#23#2425# This makefile (jfr.make) is included from the jfr.make in the26# build directories.27#28# It knows how to build and run the tools to generate jfr.2930!include $(WorkSpace)/make/windows/makefiles/rules.make3132# #########################################################################33# Build tools needed for the Jfr source code generation3435GENERATED = ../generated3637JFR_TOOLS_SRCDIR = $(WorkSpace)/src/share/vm/jfr38JFR_TOOLS_OUTPUTDIR = $(GENERATED)/tools/jfr3940JFR_OUTPUTDIR = $(GENERATED)/jfrfiles41JFR_SRCDIR = $(WorkSpace)/src/share/vm/jfr/metadata4243METADATA_XML = $(JFR_SRCDIR)/metadata.xml44METADATA_XSD = $(JFR_SRCDIR)/metadata.xsd4546# Changing these will trigger a rebuild of generated jfr files.47JFR_DEPS = $(METADATA_XML) \48$(METADATA_XSD)4950JfrGeneratedFiles = \51$(JFR_OUTPUTDIR)/jfrEventControl.hpp \52$(JFR_OUTPUTDIR)/jfrEventIds.hpp \53$(JFR_OUTPUTDIR)/jfrPeriodic.hpp \54$(JFR_OUTPUTDIR)/jfrTypes.hpp5556JfrGenSource = $(JFR_TOOLS_SRCDIR)/GenerateJfrFiles.java57JfrGenClass = $(JFR_TOOLS_OUTPUTDIR)/build/tools/jfr/GenerateJfrFiles.class5859.PHONY: all cleanall6061# #########################################################################6263all: $(JfrGeneratedFiles)6465$(JfrGenClass): $(JfrGenSource)66mkdir -p $(@D)67$(COMPILE_JAVAC) -d $(JFR_TOOLS_OUTPUTDIR) $(JfrGenSource)6869$(JFR_OUTPUTDIR)/jfrEventClasses.hpp: $(METADATA_XML) $(METADATA_XSD) $(JfrGenClass)70echo Generating $(@F)71mkdir -p $(@D)72$(RUN_JAVA) -cp $(JFR_TOOLS_OUTPUTDIR) build.tools.jfr.GenerateJfrFiles $(METADATA_XML) $(METADATA_XSD) $(JFR_OUTPUTDIR)73test -f $@7475$(JfrGeneratedFiles): $(JFR_OUTPUTDIR)/jfrEventClasses.hpp7677# #########################################################################7879cleanall :80rm $(JfrGenClass) $(JfrGeneratedFiles) $(JFR_OUTPUTDIR)/jfrEventClasses.hpp818283