1 #
2 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. 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. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
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
146 $(TRACE_SRCDIR)/traceevents.xml \
147 $(TRACE_SRCDIR)/trace.dtd \
148 $(TRACE_SRCDIR)/xinclude.mod \
149 #
150
151 # Setup rule for generating a trace file
152 #
153 # $1 is generated source file name in $(TRACE_OUTPUTDIR)
154 define SetupTraceGeneration
155 $$(eval $$(call SetupXslTransform, $1, \
156 XML_FILE := $$(TRACE_XML), \
157 XSL_FILE := $$(firstword $$(filter %/$$(basename $1).xsl, $$(TRACE_XSL_FILES))), \
158 OUTPUT_DIR := $$(TRACE_OUTPUTDIR), \
159 DEPS := $$(TRACE_DEPS), \
160 ))
161 endef
162
163 # Append files to generated (might have been set by custom extensions)
164 TRACE_GENSRC_FILES += \
165 traceEventClasses.hpp \
166 traceEventIds.hpp \
167 traceTypes.hpp \
168 #
169
170 # Call SetupTraceGeneration for all trace gensrc files
171 $(foreach tracefile, $(TRACE_GENSRC_FILES), \
172 $(eval $(call SetupTraceGeneration, $(tracefile))) \
173 )
|
1 #
2 # Copyright (c) 2013, 2018, Oracle and/or its affiliates. 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. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
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
146 $(TRACE_SRCDIR)/traceevents.xml \
147 $(TRACE_SRCDIR)/trace.dtd \
148 $(TRACE_SRCDIR)/xinclude.mod \
149 #
150
151 # Setup rule for generating a trace file
152 #
153 # $1 is generated source file name in $(TRACE_OUTPUTDIR)
154 define SetupTraceGeneration
155 $$(eval $$(call SetupXslTransform, $1, \
156 XML_FILE := $$(TRACE_XML), \
157 XSL_FILE := $$(firstword $$(filter %/$$(basename $1).xsl, $$(TRACE_XSL_FILES))), \
158 OUTPUT_DIR := $$(TRACE_OUTPUTDIR), \
159 DEPS := $$(TRACE_DEPS), \
160 ))
161 endef
162
163 # Append files to generated (might have been set by custom extensions)
164 TRACE_GENSRC_FILES += \
165 traceEventClasses.hpp \
166 traceEventControl.hpp \
167 traceEventIds.hpp \
168 tracePeriodic.hpp \
169 traceTypes.hpp \
170 #
171
172 # Call SetupTraceGeneration for all trace gensrc files
173 $(foreach tracefile, $(TRACE_GENSRC_FILES), \
174 $(eval $(call SetupTraceGeneration, $(tracefile))) \
175 )
|