hotspot/make/aix/makefiles/vm.make
author amurillo
Thu, 24 Apr 2014 14:06:40 -0700
changeset 24238 641b2b1b0163
parent 23483 0130945560ee
child 24430 47a764232b9c
permissions -rw-r--r--
8030011: Update Hotspot version string output Reviewed-by: dholmes, jcoomes, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
# Rules to build JVM and related libraries, included from vm.make in the build
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    27
# directory.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    28
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    29
# Common build rules.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    30
MAKEFILES_DIR=$(GAMMADIR)/make/$(Platform_os_family)/makefiles
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    31
include $(MAKEFILES_DIR)/rules.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    32
include $(GAMMADIR)/make/altsrc.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    33
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    34
default: build
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    35
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
# Defs
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
GENERATED     = ../generated
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    40
DEP_DIR       = $(GENERATED)/dependencies
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    41
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    42
# reads the generated files defining the set of .o's and the .o .h dependencies
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    43
-include $(DEP_DIR)/*.d
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
# read machine-specific adjustments (%%% should do this via buildtree.make?)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    46
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
    47
  include $(MAKEFILES_DIR)/zeroshark.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    48
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    49
  include $(MAKEFILES_DIR)/$(BUILDARCH).make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    50
endif
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
# set VPATH so make knows where to look for source files
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    53
# Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    54
# The adfiles directory contains ad_<arch>.[ch]pp.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    55
# The jvmtifiles directory contains jvmti*.[ch]pp
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    56
Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    57
VPATH += $(Src_Dirs_V:%=%:)
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
# set INCLUDES for C preprocessor.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    60
Src_Dirs_I += $(GENERATED)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    61
# The order is important for the precompiled headers to work.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    62
INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    63
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    64
# SYMFLAG is used by {jsig,saproc}.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    65
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    66
  # always build with debug info when we can create .debuginfo files
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    67
  SYMFLAG = -g
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    68
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    69
  ifeq (${VERSION}, debug)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    70
    SYMFLAG = -g
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    71
  else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    72
    SYMFLAG =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    73
  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    74
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    75
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    76
# The following variables are defined in the generated flags.make file.
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    77
JDK_VER_DEFS  = -DJDK_MAJOR_VERSION="\"$(JDK_MAJOR_VERSION)\"" \
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    78
		-DJDK_MINOR_VERSION="\"$(JDK_MINOR_VERSION)\"" \
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    79
		-DJDK_MICRO_VERSION="\"$(JDK_MICRO_VERSION)\"" \
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    80
		-DJDK_BUILD_NUMBER="\"$(JDK_BUILD_NUMBER)\""
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    81
VM_VER_DEFS   = -DHOTSPOT_RELEASE_VERSION="\"$(HS_BUILD_VER)\"" \
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    82
		-DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\""  \
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    83
		$(JDK_VER_DEFS)
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    84
HS_LIB_ARCH   = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\"
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    85
BUILD_TARGET  = -DHOTSPOT_BUILD_TARGET="\"$(TARGET)\""
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    86
BUILD_USER    = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\""
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    87
VM_DISTRO     = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\""
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    88
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    89
CXXFLAGS =           \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    90
  ${SYSDEFS}         \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    91
  ${INCLUDES}        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    92
  ${BUILD_TARGET}    \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    93
  ${BUILD_USER}      \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    94
  ${HS_LIB_ARCH}     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    95
  ${VM_DISTRO}
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    96
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    97
# This is VERY important! The version define must only be supplied to vm_version.o
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    98
# If not, ccache will not re-use the cache at all, since the version string might contain
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    99
# a time and date.
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
   100
CXXFLAGS/vm_version.o += ${VM_VER_DEFS}
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   101
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   102
CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   103
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   104
# File specific flags
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   105
CXXFLAGS += $(CXXFLAGS/BYFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   106
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
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   109
CFLAGS += $(CFLAGS_WARN/BYFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   110
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   111
# Do not use C++ exception handling
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   112
CFLAGS += $(CFLAGS/NOEX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   113
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   114
# Extra flags from gnumake's invocation or environment
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   115
CFLAGS += $(EXTRA_CFLAGS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   116
LFLAGS += $(EXTRA_CFLAGS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   117
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   118
# Don't set excutable bit on stack segment
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   119
# the same could be done by separate execstack command
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   120
#LFLAGS += -Xlinker -z -Xlinker noexecstack
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
LIBS += -lm -ldl -lpthread
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
# By default, link the *.o into the library, not the executable.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   125
LINK_INTO$(LINK_INTO) = LIBJVM
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   126
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   127
JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   128
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
# jvm_db & dtrace
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   131
include $(MAKEFILES_DIR)/dtrace.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   132
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   133
#----------------------------------------------------------------------
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   134
# JVM
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   135
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   136
JVM      = jvm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   137
LIBJVM   = lib$(JVM).so
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
CFLAGS += -DALLOW_OPERATOR_NEW_USAGE
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
LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   142
LIBJVM_DIZ         = lib$(JVM).diz
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   143
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   144
SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
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
SOURCE_PATHS=\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   147
  $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   148
      \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   149
SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   150
SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   151
SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(SRCARCH)/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   152
SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_family)_$(SRCARCH)/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   153
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   154
CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   155
CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
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
ifneq ($(INCLUDE_TRACE), false)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   158
CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   159
  find $(HS_ALT_SRC)/share/vm/jfr -type d; \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   160
  fi)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   161
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   162
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   163
COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   164
COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   165
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   166
COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   167
COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   168
COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   169
COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   170
COMPILER2_PATHS += $(GENERATED)/adfiles
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
SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   173
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   174
# Include dirs per type.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   175
Src_Dirs/CORE      := $(CORE_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   176
Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   177
Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   178
Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   179
Src_Dirs/ZERO      := $(CORE_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   180
Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   181
Src_Dirs := $(Src_Dirs/$(TYPE))
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
COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp c2_\* runtime_\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   184
COMPILER1_SPECIFIC_FILES := c1_\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   185
SHARK_SPECIFIC_FILES     := shark
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   186
ZERO_SPECIFIC_FILES      := zero
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   187
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   188
# Always exclude these.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   189
Src_Files_EXCLUDE += jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   190
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   191
# Exclude per type.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   192
Src_Files_EXCLUDE/CORE      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   193
Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   194
Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   195
Src_Files_EXCLUDE/TIERED    := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   196
Src_Files_EXCLUDE/ZERO      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   197
Src_Files_EXCLUDE/SHARK     := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
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
Src_Files_EXCLUDE +=  $(Src_Files_EXCLUDE/$(TYPE))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   200
22857
2167396cfc83 8019929: PPC64 (part 107): Extend ELF-decoder to support PPC64 function descriptor tables
simonis
parents: 22830
diff changeset
   201
# Disable ELF decoder on AIX (AIX uses XCOFF).
2167396cfc83 8019929: PPC64 (part 107): Extend ELF-decoder to support PPC64 function descriptor tables
simonis
parents: 22830
diff changeset
   202
Src_Files_EXCLUDE += decoder_elf.cpp elfFile.cpp elfStringTable.cpp elfSymbolTable.cpp elfFuncDescTable.cpp
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   203
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   204
# Special handling of arch model.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   205
ifeq ($(Platform_arch_model), x86_32)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   206
Src_Files_EXCLUDE += \*x86_64\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   207
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   208
ifeq ($(Platform_arch_model), x86_64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   209
Src_Files_EXCLUDE += \*x86_32\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   210
endif
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
# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   213
define findsrc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   214
	$(notdir $(shell find $(1)/. ! -name . -prune \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   215
		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   216
		-a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   217
endef
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   218
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   219
Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   220
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   221
Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   222
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   223
JVM_OBJ_FILES = $(Obj_Files)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   224
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   225
vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   226
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   227
mapfile : $(MAPFILE) vm.def
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   228
	rm -f $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   229
	awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")	\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   230
                 { system ("cat vm.def"); }		\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   231
               else					\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   232
                 { print $$0 }				\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   233
             }' > $@ < $(MAPFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   234
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   235
mapfile_reorder : mapfile $(REORDERFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   236
	rm -f $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   237
	cat $^ > $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   238
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   239
vm.def: $(Res_Files) $(Obj_Files)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   240
	sh $(GAMMADIR)/make/aix/makefiles/build_vm_def.sh *.o > $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   241
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   242
ifeq ($(JVM_VARIANT_ZEROSHARK), true)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   243
  STATIC_CXX = false
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   244
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   245
  ifeq ($(ZERO_LIBARCH), ppc64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   246
    STATIC_CXX = false
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   247
  else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   248
    STATIC_CXX = true
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   249
  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   250
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   251
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   252
ifeq ($(LINK_INTO),AOUT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   253
  LIBJVM.o                 =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   254
  LIBJVM_MAPFILE           =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   255
  LIBS_VM                  = $(LIBS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   256
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   257
  LIBJVM.o                 = $(JVM_OBJ_FILES)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   258
  LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   259
  LFLAGS_VM$(LDNOMAP)      += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   260
# xlC_r ignores the -o= syntax
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   261
# LFLAGS_VM                += $(SONAMEFLAG:SONAME=$(LIBJVM))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   262
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   263
  # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   264
  # get around library dependency and compatibility issues. Must use gcc not
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   265
  # g++ to link.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   266
  LIBS_VM                  += $(STATIC_STDCXX) $(LIBS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   267
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   268
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   269
LINK_VM = $(LINK_LIB.CXX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   270
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   271
# create loadmap for libjvm.so by default. Helps in diagnosing some problems.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   272
LFLAGS_VM += -bloadmap:libjvm.loadmap
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
# rule for building precompiled header
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   275
$(PRECOMPILED_HEADER):
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   276
	$(QUIETLY) echo Generating precompiled header $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   277
	$(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   278
	$(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   279
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   280
# making the library:
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
ifneq ($(JVM_BASE_ADDR),)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   283
# By default shared library is linked at base address == 0. Modify the
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   284
# linker script if JVM prefers a different base location. It can also be
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   285
# implemented with 'prelink -r'. But 'prelink' is not (yet) available on
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   286
# our build platform (AS-2.1).
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   287
LD_SCRIPT = libjvm.so.lds
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   288
$(LD_SCRIPT): $(LIBJVM_MAPFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   289
	$(QUIETLY) {                                                \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   290
	  rm -rf $@;                                                \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   291
	  $(LINK_VM) -Wl,--verbose $(LFLAGS_VM) 2>&1             |  \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   292
	    sed -e '/^======/,/^======/!d'                          \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   293
		-e '/^======/d'                                     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   294
		-e 's/0\( + SIZEOF_HEADERS\)/$(JVM_BASE_ADDR)\1/'   \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   295
		> $@;                                               \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   296
	}
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   297
LD_SCRIPT_FLAG = -Wl,-T,$(LD_SCRIPT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   298
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   299
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   300
# With more recent Redhat releases (or the cutting edge version Fedora), if
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   301
# SELinux is configured to be enabled, the runtime linker will fail to apply
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   302
# the text relocation to libjvm.so considering that it is built as a non-PIC
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   303
# DSO. To workaround that, we run chcon to libjvm.so after it is built. See
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   304
# details in bug 6538311.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   305
$(LIBJVM): $(LIBJVM.o) $(LIBJVM_MAPFILE) $(LD_SCRIPT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   306
	$(QUIETLY) {                                                      \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   307
	    echo Linking vm...;                                           \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   308
	    $(LINK_LIB.CXX/PRE_HOOK)                                      \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   309
	    $(LINK_VM) $(LD_SCRIPT_FLAG)                                  \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   310
		       $(LFLAGS_VM) -o $@ $(sort $(LIBJVM.o)) $(LIBS_VM); \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   311
	    $(LINK_LIB.CXX/POST_HOOK)                                     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   312
	    rm -f $@.1; ln -s $@ $@.1;                                    \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   313
	}
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   314
# No security contexts on AIX
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   315
#           if [ \"$(CROSS_COMPILE_ARCH)\" = \"\" ] ; then              \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   316
#	      if [ -x /usr/sbin/selinuxenabled ] ; then                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   317
#	        /usr/sbin/selinuxenabled;                               \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   318
#               if [ $$? = 0 ] ; then					\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   319
#		  /usr/bin/chcon -t textrel_shlib_t $@;                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   320
#		  if [ $$? != 0 ]; then                                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   321
#		    echo "ERROR: Cannot chcon $@";			\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   322
#		  fi							\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   323
#	        fi							\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   324
#	      fi                                                        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   325
#           fi 							        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   326
#	}
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
#ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   329
#	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   330
#	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   331
#    ifeq ($(STRIP_POLICY),all_strip)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   332
#	$(QUIETLY) $(STRIP) $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   333
#    else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   334
#      ifeq ($(STRIP_POLICY),min_strip)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   335
#	$(QUIETLY) $(STRIP) -g $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   336
#      # implied else here is no stripping at all
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   337
#      endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   338
#    endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   339
#    ifeq ($(ZIP_DEBUGINFO_FILES),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   340
#	$(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   341
#	$(RM) $(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   342
#  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   343
#endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   344
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   345
DEST_SUBDIR        = $(JDK_LIBDIR)/$(VM_SUBDIR)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   346
DEST_JVM           = $(DEST_SUBDIR)/$(LIBJVM)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   347
DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   348
DEST_JVM_DIZ       = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
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
install_jvm: $(LIBJVM)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   351
	@echo "Copying $(LIBJVM) to $(DEST_JVM)"
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   352
	$(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   353
	    cp -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   354
	$(QUIETLY) test -f $(LIBJVM_DIZ) && \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   355
	    cp -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   356
	$(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   357
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
# Other files
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
# Signal interposition library
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   362
include $(MAKEFILES_DIR)/jsig.make
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
# Serviceability agent
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   365
include $(MAKEFILES_DIR)/saproc.make
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
#----------------------------------------------------------------------
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
build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
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
install: install_jvm install_jsig install_saproc
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: default build install install_jvm