defs.make revision 1601
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# This code is free software; you can redistribute it and/or modify it
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# under the terms of the GNU General Public License version 2 only, as
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# published by the Free Software Foundation.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# This code is distributed in the hope that it will be useful, but WITHOUT
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# version 2 for more details (a copy is included in the LICENSE file that
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# accompanied this code).
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# You should have received a copy of the GNU General Public License version
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# 2 along with this work; if not, write to the Free Software Foundation,
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# or visit www.oracle.com if you need additional information or have any
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# questions.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico#
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# The common definitions for hotspot linux builds.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Include the top level defs.make under make directory instead of this one.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# This file is included into make/defs.make.
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoSLASH_JAVA ?= /java
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoARCH:=$(shell uname -m)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoPATH_SEP = :
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(LP64), 1)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL ?= 64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoelse
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL ?= 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# zero
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ZERO_BUILD), true)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico MAKE_ARGS += LP64=1
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico endif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-zero
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_$(subst i386,i486,$(ZERO_LIBARCH))
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = zero
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH = zero
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# ia64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), ia64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico MAKE_ARGS += LP64=1
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-ia64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_ia64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = ia64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# sparc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), sparc64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico MAKE_ARGS += LP64=1
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-sparcv9
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_sparcv9
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico else
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-sparc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_sparc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico endif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = sparc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# x86_64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), x86_64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico MAKE_ARGS += LP64=1
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-amd64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_amd64
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = x86
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico else
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-i586
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_i486
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = x86
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico # We have to reset ARCH to i686 since SRCARCH relies on it
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH = i686
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico endif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# i686
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), i686)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-i586
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_i486
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = x86
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# ARM
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), arm)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-arm
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_arm
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = arm
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# PPC
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifeq ($(ARCH), ppc)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ARCH_DATA_MODEL = 32
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico PLATFORM = linux-ppc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico VM_PLATFORM = linux_ppc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico HS_ARCH = ppc
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoJDK_INCLUDE_SUBDIR=linux
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoVM_DEBUG=jvmg
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# client and server subdirectories have symbolic links to ../libjsig.so
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.so
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifndef BUILD_CLIENT_ONLY
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoifneq ($(ZERO_BUILD), true)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico ifeq ($(ARCH_DATA_MODEL), 32)
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico endif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoendif
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# Serviceability Binaries
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico# No SA Support for PPC, IA64, ARM or zero
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/x86 = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so \
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico $(EXPORT_LIB_DIR)/sa-jdi.jar
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/sparc = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so \
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico $(EXPORT_LIB_DIR)/sa-jdi.jar
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/ppc =
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/ia64 =
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/arm =
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoADD_SA_BINARIES/zero =
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNicoEXPORT_LIST += $(ADD_SA_BINARIES/$(HS_ARCH))
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico
43de3c92109aa3392582f7692c279ba72a31dc77JazzyNico