author | simonis |
Fri, 06 Sep 2013 20:08:29 +0200 | |
changeset 22830 | df1bb606b2ca |
child 23221 | b70675ece1ce |
permissions | -rw-r--r-- |
22830
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
1 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
2 |
# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
3 |
# Copyright 2012, 2013 SAP AG. All rights reserved. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
4 |
# 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
|
5 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
6 |
# 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
|
7 |
# 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
|
8 |
# published by the Free Software Foundation. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
9 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
10 |
# 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
|
11 |
# 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
|
12 |
# 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
|
13 |
# 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
|
14 |
# accompanied this code). |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
15 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
16 |
# 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
|
17 |
# 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
|
18 |
# 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
|
19 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
20 |
# 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
|
21 |
# 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
|
22 |
# questions. |
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 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
26 |
# This makefile creates a build tree and lights off a build. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
27 |
# You can go back into the build tree and perform rebuilds or |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
28 |
# incremental builds as desired. Be sure to reestablish |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
29 |
# environment variable settings for LD_LIBRARY_PATH and JAVA_HOME. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
30 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
31 |
# The make process now relies on java and javac. These can be |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
32 |
# specified either implicitly on the PATH, by setting the |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
33 |
# (JDK-inherited) ALT_BOOTDIR environment variable to full path to a |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
34 |
# JDK in which bin/java and bin/javac are present and working (e.g., |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
35 |
# /usr/local/java/jdk1.3/solaris), or via the (JDK-inherited) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
36 |
# default BOOTDIR path value. Note that one of ALT_BOOTDIR |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
37 |
# or BOOTDIR has to be set. We do *not* search javac, javah, rmic etc. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
38 |
# from the PATH. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
39 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
40 |
# One can set ALT_BOOTDIR or BOOTDIR to point to a jdk that runs on |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
41 |
# an architecture that differs from the target architecture, as long |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
42 |
# as the bootstrap jdk runs under the same flavor of OS as the target |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
43 |
# (i.e., if the target is linux, point to a jdk that runs on a linux |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
44 |
# box). In order to use such a bootstrap jdk, set the make variable |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
45 |
# REMOTE to the desired remote command mechanism, e.g., |
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 |
# make REMOTE="rsh -l me myotherlinuxbox" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
48 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
49 |
# Along with VM, Serviceability Agent (SA) is built for SA/JDI binding. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
50 |
# JDI binding on SA produces two binaries: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
51 |
# 1. sa-jdi.jar - This is built before building libjvm.so |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
52 |
# Please refer to ./makefiles/sa.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
53 |
# 2. libsa.so - Native library for SA - This is built after |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
54 |
# libjsig.so (signal interposition library) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
55 |
# Please refer to ./makefiles/vm.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
56 |
# If $(GAMMADIR)/agent dir is not present, SA components are not built. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
57 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
58 |
# No tests on Aix. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
59 |
TEST_IN_BUILD=false |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
60 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
61 |
ifeq ($(GAMMADIR),) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
62 |
include ../../make/defs.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
63 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
64 |
include $(GAMMADIR)/make/defs.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
65 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
66 |
include $(GAMMADIR)/make/$(OSNAME)/makefiles/rules.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
67 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
68 |
ifndef CC_INTERP |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
69 |
ifndef FORCE_TIERED |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
70 |
FORCE_TIERED=1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
71 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
72 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
73 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
74 |
ifdef LP64 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
75 |
ifeq ("$(filter $(LP64_ARCH),$(BUILDARCH))","") |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
76 |
_JUNK_ := $(shell echo >&2 \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
77 |
$(OSNAME) $(ARCH) "*** ERROR: this platform does not support 64-bit compilers!") |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
78 |
@exit 1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
79 |
endif |
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 |
# we need to set up LP64 correctly to satisfy sanity checks in adlc |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
83 |
ifneq ("$(filter $(LP64_ARCH),$(BUILDARCH))","") |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
84 |
MFLAGS += " LP64=1 " |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
85 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
86 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
87 |
# pass USE_SUNCC further, through MFLAGS |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
88 |
ifdef USE_SUNCC |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
89 |
MFLAGS += " USE_SUNCC=1 " |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
90 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
91 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
92 |
# The following renders pathnames in generated Makefiles valid on |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
93 |
# machines other than the machine containing the build tree. |
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 |
# For example, let's say my build tree lives on /files12 on |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
96 |
# exact.east.sun.com. This logic will cause GAMMADIR to begin with |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
97 |
# /net/exact/files12/... |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
98 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
99 |
# We only do this on SunOS variants, for a couple of reasons: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
100 |
# * It is extremely rare that source trees exist on other systems |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
101 |
# * It has been claimed that the Linux automounter is flakey, so |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
102 |
# changing GAMMADIR in a way that exercises the automounter could |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
103 |
# prove to be a source of unreliability in the build process. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
104 |
# Obviously, this Makefile is only relevant on SunOS boxes to begin |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
105 |
# with, but the SunOS conditionalization will make it easier to |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
106 |
# combine Makefiles in the future (assuming we ever do that). |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
107 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
108 |
ifeq ($(OSNAME),solaris) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
109 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
110 |
# prepend current directory to relative pathnames. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
111 |
NEW_GAMMADIR := \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
112 |
$(shell echo $(GAMMADIR) | \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
113 |
sed -e "s=^\([^/].*\)=$(shell pwd)/\1=" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
114 |
) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
115 |
unexport NEW_GAMMADIR |
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 |
# If NEW_GAMMADIR doesn't already start with "/net/": |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
118 |
ifeq ($(strip $(filter /net/%,$(NEW_GAMMADIR))),) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
119 |
# prepend /net/$(HOST) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
120 |
# remove /net/$(HOST) if name already began with /home/ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
121 |
# remove /net/$(HOST) if name already began with /java/ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
122 |
# remove /net/$(HOST) if name already began with /lab/ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
123 |
NEW_GAMMADIR := \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
124 |
$(shell echo $(NEW_GAMMADIR) | \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
125 |
sed -e "s=^\(.*\)=/net/$(HOST)\1=" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
126 |
-e "s=^/net/$(HOST)/home/=/home/=" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
127 |
-e "s=^/net/$(HOST)/java/=/java/=" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
128 |
-e "s=^/net/$(HOST)/lab/=/lab/=" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
129 |
) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
130 |
# Don't use the new value for GAMMADIR unless a file with the new |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
131 |
# name actually exists. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
132 |
ifneq ($(wildcard $(NEW_GAMMADIR)),) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
133 |
GAMMADIR := $(NEW_GAMMADIR) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
134 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
135 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
136 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
137 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
138 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
139 |
# BUILDARCH is set to "zero" for Zero builds. VARIANTARCH |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
140 |
# is used to give the build directories meaningful names. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
141 |
VARIANTARCH = $(subst i386,i486,$(ZERO_LIBARCH)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
142 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
143 |
# There is a (semi-) regular correspondence between make targets and actions: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
144 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
145 |
# Target Tree Type Build Dir |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
146 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
147 |
# debug compiler2 <os>_<arch>_compiler2/debug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
148 |
# fastdebug compiler2 <os>_<arch>_compiler2/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
149 |
# optimized compiler2 <os>_<arch>_compiler2/optimized |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
150 |
# product compiler2 <os>_<arch>_compiler2/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
151 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
152 |
# debug1 compiler1 <os>_<arch>_compiler1/debug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
153 |
# fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
154 |
# optimized1 compiler1 <os>_<arch>_compiler1/optimized |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
155 |
# product1 compiler1 <os>_<arch>_compiler1/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
156 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
157 |
# debugcore core <os>_<arch>_core/debug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
158 |
# fastdebugcore core <os>_<arch>_core/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
159 |
# optimizedcore core <os>_<arch>_core/optimized |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
160 |
# productcore core <os>_<arch>_core/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
161 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
162 |
# debugzero zero <os>_<arch>_zero/debug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
163 |
# fastdebugzero zero <os>_<arch>_zero/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
164 |
# optimizedzero zero <os>_<arch>_zero/optimized |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
165 |
# productzero zero <os>_<arch>_zero/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
166 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
167 |
# debugshark shark <os>_<arch>_shark/debug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
168 |
# fastdebugshark shark <os>_<arch>_shark/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
169 |
# optimizedshark shark <os>_<arch>_shark/optimized |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
170 |
# productshark shark <os>_<arch>_shark/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
171 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
172 |
# fastdebugminimal1 minimal1 <os>_<arch>_minimal1/fastdebug |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
173 |
# productminimal1 minimal1 <os>_<arch>_minimal1/product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
174 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
175 |
# What you get with each target: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
176 |
# |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
177 |
# debug* - debug compile with asserts enabled |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
178 |
# fastdebug* - optimized compile, but with asserts enabled |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
179 |
# optimized* - optimized compile, no asserts |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
180 |
# product* - the shippable thing: optimized compile, no asserts, -DPRODUCT |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
181 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
182 |
# This target list needs to be coordinated with the usage message |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
183 |
# in the build.sh script: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
184 |
TARGETS = debug fastdebug optimized product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
185 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
186 |
ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
187 |
SUBDIR_DOCS = $(OSNAME)_$(VARIANTARCH)_docs |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
188 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
189 |
SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
190 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
191 |
SUBDIRS_C1 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler1/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
192 |
SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
193 |
SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
194 |
SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
195 |
SUBDIRS_ZERO = $(addprefix $(OSNAME)_$(VARIANTARCH)_zero/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
196 |
SUBDIRS_SHARK = $(addprefix $(OSNAME)_$(VARIANTARCH)_shark/,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
197 |
SUBDIRS_MINIMAL1 = $(addprefix $(OSNAME)_$(BUILDARCH)_minimal1/,$(TARGETS)) |
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 |
TARGETS_C2 = $(TARGETS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
200 |
TARGETS_C1 = $(addsuffix 1,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
201 |
TARGETS_TIERED = $(addsuffix tiered,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
202 |
TARGETS_CORE = $(addsuffix core,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
203 |
TARGETS_ZERO = $(addsuffix zero,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
204 |
TARGETS_SHARK = $(addsuffix shark,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
205 |
TARGETS_MINIMAL1 = $(addsuffix minimal1,$(TARGETS)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
206 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
207 |
BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
208 |
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
209 |
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
210 |
BUILDTREE_VARS += ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY) ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) ZIPEXE=$(ZIPEXE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
211 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
212 |
BUILDTREE = $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_VARS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
213 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
214 |
#------------------------------------------------------------------------------- |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
215 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
216 |
# Could make everything by default, but that would take a while. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
217 |
all: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
218 |
@echo "Try '$(MAKE) <target> ...' where <target> is one or more of" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
219 |
@echo " $(TARGETS_C2)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
220 |
@echo " $(TARGETS_C1)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
221 |
@echo " $(TARGETS_CORE)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
222 |
@echo " $(TARGETS_ZERO)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
223 |
@echo " $(TARGETS_SHARK)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
224 |
@echo " $(TARGETS_MINIMAL1)" |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
225 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
226 |
checks: check_os_version check_j2se_version |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
227 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
228 |
# We do not want people accidentally building on old systems (e.g. Linux 2.2.x, |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
229 |
# Solaris 2.5.1, 2.6). |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
230 |
# Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
231 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
232 |
SUPPORTED_OS_VERSION = AIX |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
233 |
OS_VERSION := $(shell uname -a) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
234 |
EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
235 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
236 |
check_os_version: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
237 |
ifeq ($(DISABLE_HOTSPOT_OS_VERSION_CHECK)$(EMPTY_IF_NOT_SUPPORTED),) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
238 |
$(QUIETLY) >&2 echo "*** This OS is not supported:" `uname -a`; exit 1; |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
239 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
240 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
241 |
# jvmti.make requires XSLT (J2SE 1.4.x or newer): |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
242 |
XSLT_CHECK = $(REMOTE) $(RUN.JAVAP) javax.xml.transform.TransformerFactory |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
243 |
# If not found then fail fast. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
244 |
check_j2se_version: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
245 |
$(QUIETLY) $(XSLT_CHECK) > /dev/null 2>&1; \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
246 |
if [ $$? -ne 0 ]; then \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
247 |
$(REMOTE) $(RUN.JAVA) -version; \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
248 |
echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
249 |
"to bootstrap this build" 1>&2; \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
250 |
exit 1; \ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
251 |
fi |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
252 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
253 |
$(SUBDIRS_TIERED): $(BUILDTREE_MAKE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
254 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
255 |
$(BUILDTREE) VARIANT=tiered |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
256 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
257 |
$(SUBDIRS_C2): $(BUILDTREE_MAKE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
258 |
ifeq ($(FORCE_TIERED),1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
259 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
260 |
$(BUILDTREE) VARIANT=tiered FORCE_TIERED=1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
261 |
else |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
262 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
263 |
$(BUILDTREE) VARIANT=compiler2 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
264 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
265 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
266 |
$(SUBDIRS_C1): $(BUILDTREE_MAKE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
267 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
268 |
$(BUILDTREE) VARIANT=compiler1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
269 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
270 |
$(SUBDIRS_CORE): $(BUILDTREE_MAKE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
271 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
272 |
$(BUILDTREE) VARIANT=core |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
273 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
274 |
$(SUBDIRS_ZERO): $(BUILDTREE_MAKE) platform_zero |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
275 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
276 |
$(BUILDTREE) VARIANT=zero VARIANTARCH=$(VARIANTARCH) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
277 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
278 |
$(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
279 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
280 |
$(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
281 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
282 |
$(SUBDIRS_MINIMAL1): $(BUILDTREE_MAKE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
283 |
$(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
284 |
$(BUILDTREE) VARIANT=minimal1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
285 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
286 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
287 |
platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
288 |
$(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@ZERO_LIBARCH@/$(ZERO_LIBARCH)/g;' < $< > $@ |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
289 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
290 |
# Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
291 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
292 |
$(TARGETS_C2): $(SUBDIRS_C2) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
293 |
cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
294 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
295 |
cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
296 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
297 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
298 |
$(TARGETS_TIERED): $(SUBDIRS_TIERED) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
299 |
cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
300 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
301 |
cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
302 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
303 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
304 |
$(TARGETS_C1): $(SUBDIRS_C1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
305 |
cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
306 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
307 |
cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
308 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
309 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
310 |
$(TARGETS_CORE): $(SUBDIRS_CORE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
311 |
cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
312 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
313 |
cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
314 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
315 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
316 |
$(TARGETS_ZERO): $(SUBDIRS_ZERO) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
317 |
cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
318 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
319 |
cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
320 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
321 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
322 |
$(TARGETS_SHARK): $(SUBDIRS_SHARK) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
323 |
cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
324 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
325 |
cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
326 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
327 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
328 |
$(TARGETS_MINIMAL1): $(SUBDIRS_MINIMAL1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
329 |
cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
330 |
ifdef INSTALL |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
331 |
cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) install |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
332 |
endif |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
333 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
334 |
# Just build the tree, and nothing else: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
335 |
tree: $(SUBDIRS_C2) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
336 |
tree1: $(SUBDIRS_C1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
337 |
treecore: $(SUBDIRS_CORE) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
338 |
treezero: $(SUBDIRS_ZERO) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
339 |
treeshark: $(SUBDIRS_SHARK) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
340 |
treeminimal1: $(SUBDIRS_MINIMAL1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
341 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
342 |
# Doc target. This is the same for all build options. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
343 |
# Hence create a docs directory beside ...$(ARCH)_[...] |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
344 |
# We specify 'BUILD_FLAVOR=product' so that the proper |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
345 |
# ENABLE_FULL_DEBUG_SYMBOLS value is used. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
346 |
docs: checks |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
347 |
$(QUIETLY) mkdir -p $(SUBDIR_DOCS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
348 |
$(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) BUILD_FLAVOR=product jvmtidocs |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
349 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
350 |
# Synonyms for win32-like targets. |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
351 |
compiler2: debug product |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
352 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
353 |
compiler1: debug1 product1 |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
354 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
355 |
core: debugcore productcore |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
356 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
357 |
zero: debugzero productzero |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
358 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
359 |
shark: debugshark productshark |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
360 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
361 |
clean_docs: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
362 |
rm -rf $(SUBDIR_DOCS) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
363 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
364 |
clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
365 |
rm -rf $(OSNAME)_$(BUILDARCH)_$(subst clean_,,$@) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
366 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
367 |
clean: clean_compiler2 clean_compiler1 clean_core clean_zero clean_shark clean_minimal1 clean_docs |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
368 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
369 |
include $(GAMMADIR)/make/cscope.make |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
370 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
371 |
#------------------------------------------------------------------------------- |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
372 |
|
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
373 |
.PHONY: $(TARGETS_C2) $(TARGETS_C1) $(TARGETS_CORE) $(TARGETS_ZERO) $(TARGETS_SHARK) $(TARGETS_MINIMAL1) |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
374 |
.PHONY: tree tree1 treecore treezero treeshark |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
375 |
.PHONY: all compiler1 compiler2 core zero shark |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
376 |
.PHONY: clean clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark docs clean_docs |
df1bb606b2ca
8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff
changeset
|
377 |
.PHONY: checks check_os_version check_j2se_version |