author | erikj |
Tue, 15 Mar 2016 13:55:23 +0100 | |
changeset 37115 | f9c20e87f9ec |
parent 36384 | b0b41336a9a8 |
child 37437 | f824aabc7af8 |
permissions | -rw-r--r-- |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
1 |
# |
36384 | 2 |
# Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
4 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
8 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
13 |
# accompanied this code). |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
14 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
15 |
# You should have received a copy of the GNU General Public License version |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
18 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
21 |
# questions. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
22 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
23 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
24 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
25 |
# This makefile (trace.make) is included from the trace.make in the |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
26 |
# build directories. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
27 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
28 |
# It knows how to build and run the tools to generate trace files. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
29 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
30 |
include $(GAMMADIR)/make/aix/makefiles/rules.make |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
31 |
include $(GAMMADIR)/make/altsrc.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
32 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
33 |
# ######################################################################### |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
34 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
35 |
HAS_ALT_SRC := false |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
36 |
ifndef OPENJDK |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
37 |
ifneq ($(wildcard $(HS_ALT_SRC)/share/vm/trace), ) |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
38 |
HAS_ALT_SRC := true |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
39 |
endif |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
40 |
endif |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
41 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
42 |
TOPDIR = $(shell echo `pwd`) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
43 |
GENERATED = $(TOPDIR)/../generated |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
44 |
JvmtiOutDir = $(GENERATED)/jvmtifiles |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
45 |
TraceOutDir = $(GENERATED)/tracefiles |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
46 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
47 |
TraceAltSrcDir = $(HS_ALT_SRC)/share/vm/trace |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
48 |
TraceSrcDir = $(HS_COMMON_SRC)/share/vm/trace |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
49 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
50 |
# set VPATH so make knows where to look for source files |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
51 |
Src_Dirs_V += $(TraceSrcDir) $(TraceAltSrcDir) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
52 |
VPATH += $(Src_Dirs_V:%=%:) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
53 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
54 |
TraceGeneratedNames = \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
55 |
traceEventClasses.hpp \ |
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
56 |
traceEventIds.hpp \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
57 |
traceTypes.hpp |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
58 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
59 |
ifeq ($(HAS_ALT_SRC), true) |
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
60 |
TraceGeneratedNames += \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
61 |
traceRequestables.hpp \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
62 |
traceEventControl.hpp |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
63 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
64 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
65 |
TraceGeneratedFiles = $(TraceGeneratedNames:%=$(TraceOutDir)/%) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
66 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
67 |
XSLT = $(REMOTE) $(RUN.JAVA) -classpath $(JvmtiOutDir) jvmtiGen |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
68 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
69 |
TraceXml = $(TraceSrcDir)/trace.xml |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
70 |
ifeq ($(HAS_ALT_SRC), true) |
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
71 |
TraceXml = $(TraceAltSrcDir)/trace.xml |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
72 |
endif |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
73 |
|
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
74 |
XML_DEPS = $(TraceXml) $(TraceSrcDir)/tracetypes.xml \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
75 |
$(TraceSrcDir)/trace.dtd $(TraceSrcDir)/xinclude.mod \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
76 |
$(TraceSrcDir)/tracerelationdecls.xml $(TraceSrcDir)/traceevents.xml |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
77 |
ifeq ($(HAS_ALT_SRC), true) |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
78 |
XML_DEPS += $(TraceAltSrcDir)/traceeventscustom.xml \ |
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
79 |
$(TraceAltSrcDir)/traceeventtypes.xml |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
80 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
81 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
82 |
.PHONY: all clean cleanall |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
83 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
84 |
# ######################################################################### |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
85 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
86 |
all: $(TraceGeneratedFiles) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
87 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
88 |
GENERATE_CODE= \ |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
22830
diff
changeset
|
89 |
$(QUIETLY) echo $(LOG_INFO) Generating $@; \ |
33773
caf1d935e1c7
8141035: Let jvmtiGen exit with a non-zero exit code upon failure
sspitsyn
parents:
26691
diff
changeset
|
90 |
$(XSLT) -IN $(word 1,$^) -XSL $(word 2,$^) -OUT $@ |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
91 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
92 |
$(TraceOutDir)/traceEventIds.hpp: $(TraceXml) $(TraceSrcDir)/traceEventIds.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
93 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
94 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
95 |
$(TraceOutDir)/traceTypes.hpp: $(TraceXml) $(TraceSrcDir)/traceTypes.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
96 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
97 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
98 |
ifeq ($(HAS_ALT_SRC), false) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
99 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
100 |
$(TraceOutDir)/traceEventClasses.hpp: $(TraceXml) $(TraceSrcDir)/traceEventClasses.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
101 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
102 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
103 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
104 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
105 |
$(TraceOutDir)/traceEventClasses.hpp: $(TraceXml) $(TraceAltSrcDir)/traceEventClasses.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
106 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
107 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
108 |
$(TraceOutDir)/traceRequestables.hpp: $(TraceXml) $(TraceAltSrcDir)/traceRequestables.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
109 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
110 |
|
37115
f9c20e87f9ec
8151653: Hotspot build does not respect --enable-openjdk-only
erikj
parents:
36384
diff
changeset
|
111 |
$(TraceOutDir)/traceEventControl.hpp: $(TraceXml) $(TraceAltSrcDir)/traceEventControl.xsl $(XML_DEPS) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
112 |
$(GENERATE_CODE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
113 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
114 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
115 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
116 |
# ######################################################################### |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
117 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
118 |
clean cleanall: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
119 |
rm $(TraceGeneratedFiles) |