author | mikael |
Tue, 10 Mar 2015 09:42:23 -0700 | |
changeset 29463 | 4b16497408b9 |
parent 26691 | 40ea2c41f53b |
child 34289 | 2d1821a50263 |
permissions | -rw-r--r-- |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
1 |
# |
25639
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
22830
diff
changeset
|
2 |
# Copyright (c) 2003, 2014, 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. |
25639
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
22830
diff
changeset
|
22 |
# |
22830
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 |
# Common rules/macros for the vm, adlc. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
26 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
27 |
# Tell make that .cpp is important |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
28 |
.SUFFIXES: .cpp $(SUFFIXES) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
29 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
30 |
DEMANGLER = c++filt |
25639
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
22830
diff
changeset
|
31 |
DEMANGLE = $(DEMANGLER) < $@ > .$@ && $(MV) -f .$@ $@ |
22830
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 |
# $(CC) is the c compiler (cc/gcc), $(CXX) is the c++ compiler (CC/g++). |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
34 |
CC_COMPILE = $(CC) $(CXXFLAGS) $(CFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
35 |
CXX_COMPILE = $(CXX) $(CXXFLAGS) $(CFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
36 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
37 |
AS.S = $(AS) $(ASFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
38 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
39 |
COMPILE.CC = $(CC_COMPILE) -c |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
40 |
GENASM.CC = $(CC_COMPILE) -S |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
41 |
LINK.CC = $(CC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
42 |
LINK_LIB.CC = $(CC) $(LFLAGS) $(SHARED_FLAG) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
43 |
PREPROCESS.CC = $(CC_COMPILE) -E |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
44 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
45 |
COMPILE.CXX = $(CXX_COMPILE) -c |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
46 |
GENASM.CXX = $(CXX_COMPILE) -S |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
47 |
LINK.CXX = $(CXX) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
48 |
LINK_NOPROF.CXX = $(CXX) $(LFLAGS) $(AOUT_FLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
49 |
LINK_LIB.CXX = $(CXX) $(LFLAGS) $(SHARED_FLAG) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
50 |
PREPROCESS.CXX = $(CXX_COMPILE) -E |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
51 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
52 |
# cross compiling the jvm with c2 requires host compilers to build |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
53 |
# adlc tool |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
54 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
55 |
HOST.CXX_COMPILE = $(HOSTCXX) $(CXXFLAGS) $(CFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
56 |
HOST.COMPILE.CXX = $(HOST.CXX_COMPILE) -c |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
57 |
HOST.LINK_NOPROF.CXX = $(HOSTCXX) $(LFLAGS) $(AOUT_FLAGS) |
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 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
60 |
# Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k". |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
61 |
REMOVE_TARGET = rm -f $@ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
62 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
63 |
# Note use of ALT_BOOTDIR to explicitly specify location of java and |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
64 |
# javac; this is the same environment variable used in the J2SE build |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
65 |
# process for overriding the default spec, which is BOOTDIR. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
66 |
# Note also that we fall back to using JAVA_HOME if neither of these is |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
67 |
# specified. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
68 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
69 |
ifdef ALT_BOOTDIR |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
70 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
71 |
RUN.JAVA = $(ALT_BOOTDIR)/bin/java |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
72 |
RUN.JAVAP = $(ALT_BOOTDIR)/bin/javap |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
73 |
RUN.JAVAH = $(ALT_BOOTDIR)/bin/javah |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
74 |
RUN.JAR = $(ALT_BOOTDIR)/bin/jar |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
75 |
COMPILE.JAVAC = $(ALT_BOOTDIR)/bin/javac |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
76 |
COMPILE.RMIC = $(ALT_BOOTDIR)/bin/rmic |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
77 |
BOOT_JAVA_HOME = $(ALT_BOOTDIR) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
78 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
79 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
80 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
81 |
ifdef BOOTDIR |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
82 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
83 |
RUN.JAVA = $(BOOTDIR)/bin/java |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
84 |
RUN.JAVAP = $(BOOTDIR)/bin/javap |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
85 |
RUN.JAVAH = $(BOOTDIR)/bin/javah |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
86 |
RUN.JAR = $(BOOTDIR)/bin/jar |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
87 |
COMPILE.JAVAC = $(BOOTDIR)/bin/javac |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
88 |
COMPILE.RMIC = $(BOOTDIR)/bin/rmic |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
89 |
BOOT_JAVA_HOME = $(BOOTDIR) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
90 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
91 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
92 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
93 |
ifdef JAVA_HOME |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
94 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
95 |
RUN.JAVA = $(JAVA_HOME)/bin/java |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
96 |
RUN.JAVAP = $(JAVA_HOME)/bin/javap |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
97 |
RUN.JAVAH = $(JAVA_HOME)/bin/javah |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
98 |
RUN.JAR = $(JAVA_HOME)/bin/jar |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
99 |
COMPILE.JAVAC = $(JAVA_HOME)/bin/javac |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
100 |
COMPILE.RMIC = $(JAVA_HOME)/bin/rmic |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
101 |
BOOT_JAVA_HOME = $(JAVA_HOME) |
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 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
105 |
# take from the PATH, if ALT_BOOTDIR, BOOTDIR and JAVA_HOME are not defined |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
106 |
# note that this is to support hotspot build without SA. To build |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
107 |
# SA along with hotspot, you need to define ALT_BOOTDIR, BOOTDIR or JAVA_HOME |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
108 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
109 |
RUN.JAVA = java |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
110 |
RUN.JAVAP = javap |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
111 |
RUN.JAVAH = javah |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
112 |
RUN.JAR = jar |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
113 |
COMPILE.JAVAC = javac |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
114 |
COMPILE.RMIC = rmic |
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 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
117 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
118 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
119 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
120 |
COMPILE.JAVAC += $(BOOTSTRAP_JAVAC_FLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
121 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
122 |
SUM = /usr/bin/sum |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
123 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
124 |
# 'gmake MAKE_VERBOSE=y' gives all the gory details. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
125 |
QUIETLY$(MAKE_VERBOSE) = @ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
126 |
RUN.JAR$(MAKE_VERBOSE) += >/dev/null |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
127 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
128 |
# Settings for javac |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
129 |
JAVAC_FLAGS = -g -encoding ascii |
29463
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
130 |
|
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
131 |
# Prefer BOOT_JDK_SOURCETARGET if it's set (typically by the top build system) |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
132 |
# Fall back to the values here if it's not set (hotspot only builds) |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
133 |
ifeq ($(BOOT_JDK_SOURCETARGET),) |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
134 |
BOOTSTRAP_SOURCETARGET := -source 8 -target 8 |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
135 |
else |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
136 |
BOOTSTRAP_SOURCETARGET := $(BOOT_JDK_SOURCETARGET) |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
137 |
endif |
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
138 |
|
4b16497408b9
8074726: Update source and target version used when compiling hotspot class files
mikael
parents:
26691
diff
changeset
|
139 |
BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) $(BOOTSTRAP_SOURCETARGET) |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
140 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
141 |
# With parallel makes, print a message at the end of compilation. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
142 |
ifeq ($(findstring j,$(MFLAGS)),j) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
143 |
COMPILE_DONE = && { echo Done with $<; } |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
144 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
145 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
146 |
# Include $(NONPIC_OBJ_FILES) definition |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
147 |
ifndef LP64 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
148 |
include $(GAMMADIR)/make/pic.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
149 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
150 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
151 |
include $(GAMMADIR)/make/altsrc.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
152 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
153 |
# The non-PIC object files are only generated for 32 bit platforms. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
154 |
ifdef LP64 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
155 |
%.o: %.cpp |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
25639
diff
changeset
|
156 |
@echo $(LOG_INFO) Compiling $< |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
157 |
$(QUIETLY) $(REMOVE_TARGET) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
158 |
$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
159 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
160 |
%.o: %.cpp |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
25639
diff
changeset
|
161 |
@echo $(LOG_INFO) Compiling $< |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
162 |
$(QUIETLY) $(REMOVE_TARGET) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
163 |
$(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
164 |
$(subst $(VM_PICFLAG), ,$(COMPILE.CXX)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
165 |
$(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
166 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
167 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
168 |
%.o: %.s |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
25639
diff
changeset
|
169 |
@echo $(LOG_INFO) Assembling $< |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
170 |
$(QUIETLY) $(REMOVE_TARGET) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
171 |
$(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
172 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
173 |
%.s: %.cpp |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
25639
diff
changeset
|
174 |
@echo $(LOG_INFO) Generating assembly for $< |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
175 |
$(QUIETLY) $(GENASM.CXX) -o $@ $< |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
176 |
$(QUIETLY) $(DEMANGLE) $(COMPILE_DONE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
177 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
178 |
# Intermediate files (for debugging macros) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
179 |
%.i: %.cpp |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
25639
diff
changeset
|
180 |
@echo $(LOG_INFO) Preprocessing $< to $@ |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
181 |
$(QUIETLY) $(PREPROCESS.CXX) $< > $@ $(COMPILE_DONE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
182 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
183 |
# Override gnumake built-in rules which do sccs get operations badly. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
184 |
# (They put the checked out code in the current directory, not in the |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
185 |
# directory of the original file.) Since this is a symptom of a teamware |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
186 |
# failure, and since not all problems can be detected by gnumake due |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
187 |
# to incomplete dependency checking... just complain and stop. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
188 |
%:: s.% |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
189 |
@echo "=========================================================" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
190 |
@echo File $@ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
191 |
@echo is out of date with respect to its SCCS file. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
192 |
@echo This file may be from an unresolved Teamware conflict. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
193 |
@echo This is also a symptom of a Teamware bringover/putback failure |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
194 |
@echo in which SCCS files are updated but not checked out. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
195 |
@echo Check for other out of date files in your workspace. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
196 |
@echo "=========================================================" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
197 |
@exit 666 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
198 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
199 |
%:: SCCS/s.% |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
200 |
@echo "=========================================================" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
201 |
@echo File $@ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
202 |
@echo is out of date with respect to its SCCS file. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
203 |
@echo This file may be from an unresolved Teamware conflict. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
204 |
@echo This is also a symptom of a Teamware bringover/putback failure |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
205 |
@echo in which SCCS files are updated but not checked out. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
206 |
@echo Check for other out of date files in your workspace. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
207 |
@echo "=========================================================" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
208 |
@exit 666 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
209 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
210 |
.PHONY: default |