hotspot/make/aix/makefiles/vm.make
author ihse
Fri, 12 Jun 2015 08:31:01 +0200
changeset 33957 39113ae98993
parent 30764 fec48bf5a827
child 33959 36f534ca18c0
permissions -rw-r--r--
8085822: JEP 223: New Version-String Scheme (initial integration) Reviewed-by: erikj, dcubed, dholmes, alanb Contributed-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>, Alejandro E Murillo <alejandro.murillo@oracle.com>
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
#
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30113
diff changeset
     2
# Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     3
# 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.
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    77
JDK_VER_DEFS  = -DVERSION_MAJOR=$(VERSION_MAJOR) \
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    78
		-DVERSION_MINOR=$(VERSION_MINOR) \
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    79
		-DVERSION_SECURITY=$(VERSION_SECURITY) \
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    80
		-DVERSION_BUILD=$(VERSION_BUILD)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    81
VM_VER_DEFS   = -DHOTSPOT_VERSION_STRING="\"$(HOTSPOT_VERSION_STRING)\"" \
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30764
diff changeset
    82
		-DVERSION_STRING="\"$(VERSION_STRING)\""  \
24238
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_USER    = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\""
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    86
VM_DISTRO     = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\""
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    87
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    88
CXXFLAGS =           \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    89
  ${SYSDEFS}         \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    90
  ${INCLUDES}        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    91
  ${BUILD_USER}      \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    92
  ${HS_LIB_ARCH}     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    93
  ${VM_DISTRO}
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
# 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
    96
# 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
    97
# a time and date.
24238
641b2b1b0163 8030011: Update Hotspot version string output
amurillo
parents: 23483
diff changeset
    98
CXXFLAGS/vm_version.o += ${VM_VER_DEFS}
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    99
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   100
CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
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
# File specific flags
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   103
CXXFLAGS += $(CXXFLAGS/BYFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   104
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   105
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   106
# 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
   107
CFLAGS += $(CFLAGS_WARN/BYFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   108
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   109
# Do not use C++ exception handling
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   110
CFLAGS += $(CFLAGS/NOEX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   111
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   112
# Extra flags from gnumake's invocation or environment
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   113
CFLAGS += $(EXTRA_CFLAGS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   114
LFLAGS += $(EXTRA_CFLAGS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   115
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   116
# Don't set excutable bit on stack segment
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   117
# 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
   118
#LFLAGS += -Xlinker -z -Xlinker noexecstack
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   119
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   120
LIBS += -lm -ldl -lpthread
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
# 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
   123
LINK_INTO$(LINK_INTO) = LIBJVM
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   124
30113
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   125
JDK_LIBDIR = $(JAVA_HOME)/lib/$(LIBARCH)
22830
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
#----------------------------------------------------------------------
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   128
# jvm_db & dtrace
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   129
include $(MAKEFILES_DIR)/dtrace.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   130
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   131
#----------------------------------------------------------------------
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   132
# JVM
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      = jvm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   135
LIBJVM   = lib$(JVM).so
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
LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   138
LIBJVM_DIZ         = lib$(JVM).diz
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   139
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30113
diff changeset
   140
SPECIAL_PATHS:=adlc c1 gc opto shark libadt
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   141
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   142
SOURCE_PATHS=\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   143
  $(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
   144
      \( -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
   145
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
   146
SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   147
SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(SRCARCH)/vm
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   148
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
   149
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   150
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
   151
CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   152
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   153
ifneq ($(INCLUDE_TRACE), false)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   154
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
   155
  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
   156
  fi)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   157
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   158
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   159
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
   160
COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
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
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
   163
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
   164
COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   165
COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   166
COMPILER2_PATHS += $(GENERATED)/adfiles
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   167
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   168
SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   169
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   170
# Include dirs per type.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   171
Src_Dirs/CORE      := $(CORE_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   172
Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   173
Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   174
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
   175
Src_Dirs/ZERO      := $(CORE_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   176
Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   177
Src_Dirs := $(Src_Dirs/$(TYPE))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   178
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   179
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
   180
COMPILER1_SPECIFIC_FILES := c1_\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   181
SHARK_SPECIFIC_FILES     := shark
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   182
ZERO_SPECIFIC_FILES      := zero
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   183
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   184
# Always exclude these.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   185
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
   186
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   187
# Exclude per type.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   188
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
   189
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
   190
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
   191
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
   192
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
   193
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
   194
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   195
Src_Files_EXCLUDE +=  $(Src_Files_EXCLUDE/$(TYPE))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   196
22857
2167396cfc83 8019929: PPC64 (part 107): Extend ELF-decoder to support PPC64 function descriptor tables
simonis
parents: 22830
diff changeset
   197
# 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
   198
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
   199
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   200
# Special handling of arch model.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   201
ifeq ($(Platform_arch_model), x86_32)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   202
Src_Files_EXCLUDE += \*x86_64\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   203
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   204
ifeq ($(Platform_arch_model), x86_64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   205
Src_Files_EXCLUDE += \*x86_32\*
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   206
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   207
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   208
# 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
   209
define findsrc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   210
	$(notdir $(shell find $(1)/. ! -name . -prune \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   211
		-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
   212
		-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
   213
endef
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
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
   216
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   217
Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
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
JVM_OBJ_FILES = $(Obj_Files)
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
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
   222
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   223
mapfile : $(MAPFILE) vm.def
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   224
	rm -f $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   225
	awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")	\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   226
                 { system ("cat vm.def"); }		\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   227
               else					\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   228
                 { print $$0 }				\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   229
             }' > $@ < $(MAPFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   230
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   231
mapfile_reorder : mapfile $(REORDERFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   232
	rm -f $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   233
	cat $^ > $@
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
vm.def: $(Res_Files) $(Obj_Files)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   236
	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
   237
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   238
ifeq ($(JVM_VARIANT_ZEROSHARK), true)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   239
  STATIC_CXX = false
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   240
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   241
  ifeq ($(ZERO_LIBARCH), ppc64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   242
    STATIC_CXX = false
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   243
  else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   244
    STATIC_CXX = true
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   245
  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   246
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   247
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   248
ifeq ($(LINK_INTO),AOUT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   249
  LIBJVM.o                 =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   250
  LIBJVM_MAPFILE           =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   251
  LIBS_VM                  = $(LIBS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   252
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   253
  LIBJVM.o                 = $(JVM_OBJ_FILES)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   254
  LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   255
  LFLAGS_VM$(LDNOMAP)      += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   256
# xlC_r ignores the -o= syntax
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   257
# LFLAGS_VM                += $(SONAMEFLAG:SONAME=$(LIBJVM))
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   258
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   259
  # 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
   260
  # 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
   261
  # g++ to link.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   262
  LIBS_VM                  += $(STATIC_STDCXX) $(LIBS)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   263
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   264
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   265
LINK_VM = $(LINK_LIB.CXX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   266
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   267
# 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
   268
LFLAGS_VM += -bloadmap:libjvm.loadmap
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
# rule for building precompiled header
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   271
$(PRECOMPILED_HEADER):
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   272
	$(QUIETLY) echo $(LOG_INFO) Generating precompiled header $@
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   273
	$(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   274
	$(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
   275
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   276
# making the library:
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
ifneq ($(JVM_BASE_ADDR),)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   279
# 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
   280
# 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
   281
# 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
   282
# our build platform (AS-2.1).
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   283
LD_SCRIPT = libjvm.so.lds
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   284
$(LD_SCRIPT): $(LIBJVM_MAPFILE)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   285
	$(QUIETLY) {                                                \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   286
	  rm -rf $@;                                                \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   287
	  $(LINK_VM) -Wl,--verbose $(LFLAGS_VM) 2>&1             |  \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   288
	    sed -e '/^======/,/^======/!d'                          \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   289
		-e '/^======/d'                                     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   290
		-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
   291
		> $@;                                               \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   292
	}
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   293
LD_SCRIPT_FLAG = -Wl,-T,$(LD_SCRIPT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   294
endif
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
# 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
   297
# 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
   298
# 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
   299
# 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
   300
# details in bug 6538311.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   301
$(LIBJVM): $(LIBJVM.o) $(LIBJVM_MAPFILE) $(LD_SCRIPT)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   302
	$(QUIETLY) {                                                      \
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 25639
diff changeset
   303
	    echo $(LOG_INFO) Linking vm...;                                           \
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   304
	    $(LINK_LIB.CXX/PRE_HOOK)                                      \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   305
	    $(LINK_VM) $(LD_SCRIPT_FLAG)                                  \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   306
		       $(LFLAGS_VM) -o $@ $(sort $(LIBJVM.o)) $(LIBS_VM); \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   307
	    $(LINK_LIB.CXX/POST_HOOK)                                     \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   308
	    rm -f $@.1; ln -s $@ $@.1;                                    \
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
# No security contexts on AIX
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   311
#           if [ \"$(CROSS_COMPILE_ARCH)\" = \"\" ] ; then              \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   312
#	      if [ -x /usr/sbin/selinuxenabled ] ; then                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   313
#	        /usr/sbin/selinuxenabled;                               \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   314
#               if [ $$? = 0 ] ; then					\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   315
#		  /usr/bin/chcon -t textrel_shlib_t $@;                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   316
#		  if [ $$? != 0 ]; then                                 \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   317
#		    echo "ERROR: Cannot chcon $@";			\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   318
#		  fi							\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   319
#	        fi							\
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   320
#	      fi                                                        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   321
#           fi 							        \
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   322
#	}
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   323
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   324
#ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   325
#	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   326
#	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   327
#    ifeq ($(STRIP_POLICY),all_strip)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   328
#	$(QUIETLY) $(STRIP) $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   329
#    else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   330
#      ifeq ($(STRIP_POLICY),min_strip)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   331
#	$(QUIETLY) $(STRIP) -g $@
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   332
#      # implied else here is no stripping at all
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   333
#      endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   334
#    endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   335
#    ifeq ($(ZIP_DEBUGINFO_FILES),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   336
#	$(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   337
#	$(RM) $(LIBJVM_DEBUGINFO)
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
#endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   340
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   341
DEST_SUBDIR        = $(JDK_LIBDIR)/$(VM_SUBDIR)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   342
DEST_JVM           = $(DEST_SUBDIR)/$(LIBJVM)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   343
DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   344
DEST_JVM_DIZ       = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   345
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   346
install_jvm: $(LIBJVM)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   347
	@echo "Copying $(LIBJVM) to $(DEST_JVM)"
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   348
	$(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25337
diff changeset
   349
	    $(CP) -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   350
	$(QUIETLY) test -f $(LIBJVM_DIZ) && \
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25337
diff changeset
   351
	    $(CP) -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25337
diff changeset
   352
	$(QUIETLY) $(CP) -f $(LIBJVM) $(DEST_JVM) && echo "Done"
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   353
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
# Other files
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
# Signal interposition library
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   358
include $(MAKEFILES_DIR)/jsig.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   359
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   360
# Serviceability agent
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   361
include $(MAKEFILES_DIR)/saproc.make
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   362
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
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   365
build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
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
install: install_jvm install_jsig install_saproc
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
.PHONY: default build install install_jvm