author | lana |
Mon, 27 Jan 2014 21:01:55 -0800 | |
changeset 22412 | 81bb5f538220 |
parent 21070 | f661176f2d73 |
child 36384 | b0b41336a9a8 |
permissions | -rw-r--r-- |
18025 | 1 |
# |
2 |
# Copyright (c) 2003, 2013, 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. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 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 USA |
|
20 |
# or visit www.oracle.com if you need additional information or have any |
|
21 |
# questions. |
|
22 |
# |
|
23 |
# |
|
24 |
||
25 |
# This makefile (trace.make) is included from the trace.make in the |
|
26 |
# build directories. |
|
27 |
# |
|
28 |
# It knows how to build and run the tools to generate trace files. |
|
29 |
||
30 |
!include $(WorkSpace)/make/windows/makefiles/rules.make |
|
31 |
||
32 |
# ######################################################################### |
|
33 |
||
34 |
||
35 |
TraceAltSrcDir = $(WorkSpace)/src/closed/share/vm/trace |
|
36 |
TraceSrcDir = $(WorkSpace)/src/share/vm/trace |
|
37 |
||
38 |
TraceGeneratedNames = \ |
|
39 |
traceEventClasses.hpp \ |
|
40 |
traceEventIds.hpp \ |
|
41 |
traceTypes.hpp |
|
42 |
||
21070
f661176f2d73
8026792: HOTSPOT: licensee reports a JDK8 build failure after 8005849/8005008 fixes integrated.
erikj
parents:
19270
diff
changeset
|
43 |
!if EXISTS($(TraceAltSrcDir)) |
18025 | 44 |
TraceGeneratedNames = $(TraceGeneratedNames) \ |
45 |
traceRequestables.hpp \ |
|
46 |
traceEventControl.hpp \ |
|
47 |
traceProducer.cpp |
|
48 |
!endif |
|
49 |
||
50 |
||
51 |
#Note: TraceGeneratedFiles must be kept in sync with TraceGeneratedNames by hand. |
|
52 |
#Should be equivalent to "TraceGeneratedFiles = $(TraceGeneratedNames:%=$(TraceOutDir)/%)" |
|
53 |
TraceGeneratedFiles = \ |
|
54 |
$(TraceOutDir)/traceEventClasses.hpp \ |
|
55 |
$(TraceOutDir)/traceEventIds.hpp \ |
|
56 |
$(TraceOutDir)/traceTypes.hpp |
|
57 |
||
21070
f661176f2d73
8026792: HOTSPOT: licensee reports a JDK8 build failure after 8005849/8005008 fixes integrated.
erikj
parents:
19270
diff
changeset
|
58 |
!if EXISTS($(TraceAltSrcDir)) |
18025 | 59 |
TraceGeneratedFiles = $(TraceGeneratedFiles) \ |
60 |
$(TraceOutDir)/traceRequestables.hpp \ |
|
61 |
$(TraceOutDir)/traceEventControl.hpp \ |
|
62 |
$(TraceOutDir)/traceProducer.cpp |
|
63 |
!endif |
|
64 |
||
65 |
XSLT = $(QUIETLY) $(REMOTE) $(RUN_JAVA) -classpath $(JvmtiOutDir) jvmtiGen |
|
66 |
||
67 |
XML_DEPS = $(TraceSrcDir)/trace.xml $(TraceSrcDir)/tracetypes.xml \ |
|
68 |
$(TraceSrcDir)/trace.dtd $(TraceSrcDir)/xinclude.mod |
|
69 |
||
21070
f661176f2d73
8026792: HOTSPOT: licensee reports a JDK8 build failure after 8005849/8005008 fixes integrated.
erikj
parents:
19270
diff
changeset
|
70 |
!if EXISTS($(TraceAltSrcDir)) |
18025 | 71 |
XML_DEPS = $(XML_DEPS) $(TraceAltSrcDir)/traceevents.xml |
72 |
!endif |
|
73 |
||
74 |
.PHONY: all clean cleanall |
|
75 |
||
76 |
# ######################################################################### |
|
77 |
||
78 |
default:: |
|
79 |
@if not exist $(TraceOutDir) mkdir $(TraceOutDir) |
|
80 |
||
81 |
$(TraceOutDir)/traceEventIds.hpp: $(TraceSrcDir)/trace.xml $(TraceSrcDir)/traceEventIds.xsl $(XML_DEPS) |
|
82 |
@echo Generating $@ |
|
83 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceSrcDir)/traceEventIds.xsl -OUT $(TraceOutDir)/traceEventIds.hpp |
|
84 |
||
85 |
$(TraceOutDir)/traceTypes.hpp: $(TraceSrcDir)/trace.xml $(TraceSrcDir)/traceTypes.xsl $(XML_DEPS) |
|
86 |
@echo Generating $@ |
|
87 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceSrcDir)/traceTypes.xsl -OUT $(TraceOutDir)/traceTypes.hpp |
|
88 |
||
21070
f661176f2d73
8026792: HOTSPOT: licensee reports a JDK8 build failure after 8005849/8005008 fixes integrated.
erikj
parents:
19270
diff
changeset
|
89 |
!if !EXISTS($(TraceAltSrcDir)) |
18025 | 90 |
|
91 |
$(TraceOutDir)/traceEventClasses.hpp: $(TraceSrcDir)/trace.xml $(TraceSrcDir)/traceEventClasses.xsl $(XML_DEPS) |
|
19270
607d97508c60
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
18025
diff
changeset
|
92 |
@echo Generating OpenJDK $@ |
18025 | 93 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceSrcDir)/traceEventClasses.xsl -OUT $(TraceOutDir)/traceEventClasses.hpp |
94 |
||
95 |
!else |
|
96 |
||
97 |
$(TraceOutDir)/traceEventClasses.hpp: $(TraceSrcDir)/trace.xml $(TraceAltSrcDir)/traceEventClasses.xsl $(XML_DEPS) |
|
19270
607d97508c60
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
18025
diff
changeset
|
98 |
@echo Generating AltSrc $@ |
18025 | 99 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceAltSrcDir)/traceEventClasses.xsl -OUT $(TraceOutDir)/traceEventClasses.hpp |
100 |
||
101 |
$(TraceOutDir)/traceProducer.cpp: $(TraceSrcDir)/trace.xml $(TraceAltSrcDir)/traceProducer.xsl $(XML_DEPS) |
|
19270
607d97508c60
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
18025
diff
changeset
|
102 |
@echo Generating AltSrc $@ |
18025 | 103 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceAltSrcDir)/traceProducer.xsl -OUT $(TraceOutDir)/traceProducer.cpp |
104 |
||
105 |
$(TraceOutDir)/traceRequestables.hpp: $(TraceSrcDir)/trace.xml $(TraceAltSrcDir)/traceRequestables.xsl $(XML_DEPS) |
|
19270
607d97508c60
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
18025
diff
changeset
|
106 |
@echo Generating AltSrc $@ |
18025 | 107 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceAltSrcDir)/traceRequestables.xsl -OUT $(TraceOutDir)/traceRequestables.hpp |
108 |
||
109 |
$(TraceOutDir)/traceEventControl.hpp: $(TraceSrcDir)/trace.xml $(TraceAltSrcDir)/traceEventControl.xsl $(XML_DEPS) |
|
19270
607d97508c60
8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
dcubed
parents:
18025
diff
changeset
|
110 |
@echo Generating AltSrc $@ |
18025 | 111 |
@$(XSLT) -IN $(TraceSrcDir)/trace.xml -XSL $(TraceAltSrcDir)/traceEventControl.xsl -OUT $(TraceOutDir)/traceEventControl.hpp |
112 |
||
113 |
!endif |
|
114 |
||
115 |
# ######################################################################### |
|
116 |
||
117 |
cleanall : |
|
118 |
rm $(TraceGeneratedFiles) |
|
119 |
||
120 |