defs.make revision 2842
afd172ad035048919fd468d1603a9e9277285270JazzyNico#
afd172ad035048919fd468d1603a9e9277285270JazzyNico# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
afd172ad035048919fd468d1603a9e9277285270JazzyNico# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
afd172ad035048919fd468d1603a9e9277285270JazzyNico#
afd172ad035048919fd468d1603a9e9277285270JazzyNico# This code is free software; you can redistribute it and/or modify it
afd172ad035048919fd468d1603a9e9277285270JazzyNico# under the terms of the GNU General Public License version 2 only, as
afd172ad035048919fd468d1603a9e9277285270JazzyNico# published by the Free Software Foundation.
afd172ad035048919fd468d1603a9e9277285270JazzyNico#
afd172ad035048919fd468d1603a9e9277285270JazzyNico# This code is distributed in the hope that it will be useful, but WITHOUT
afd172ad035048919fd468d1603a9e9277285270JazzyNico# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free# version 2 for more details (a copy is included in the LICENSE file that
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free# accompanied this code).
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free#
afd172ad035048919fd468d1603a9e9277285270JazzyNico# You should have received a copy of the GNU General Public License version
afd172ad035048919fd468d1603a9e9277285270JazzyNico# 2 along with this work; if not, write to the Free Software Foundation,
afd172ad035048919fd468d1603a9e9277285270JazzyNico# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
afd172ad035048919fd468d1603a9e9277285270JazzyNico#
afd172ad035048919fd468d1603a9e9277285270JazzyNico# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
afd172ad035048919fd468d1603a9e9277285270JazzyNico# or visit www.oracle.com if you need additional information or have any
afd172ad035048919fd468d1603a9e9277285270JazzyNico# questions.
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free#
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free#
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNico# The common definitions for hotspot bsd builds.
afd172ad035048919fd468d1603a9e9277285270JazzyNico# Include the top level defs.make under make directory instead of this one.
afd172ad035048919fd468d1603a9e9277285270JazzyNico# This file is included into make/defs.make.
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNicoSLASH_JAVA ?= /java
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNico# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
afd172ad035048919fd468d1603a9e9277285270JazzyNicoARCH:=$(shell uname -m)
afd172ad035048919fd468d1603a9e9277285270JazzyNicoPATH_SEP = :
afd172ad035048919fd468d1603a9e9277285270JazzyNicoifeq ($(LP64), 1)
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH_DATA_MODEL ?= 64
afd172ad035048919fd468d1603a9e9277285270JazzyNicoelse
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH_DATA_MODEL ?= 32
afd172ad035048919fd468d1603a9e9277285270JazzyNicoendif
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNico# zero
afd172ad035048919fd468d1603a9e9277285270JazzyNicoifeq ($(ZERO_BUILD), true)
afd172ad035048919fd468d1603a9e9277285270JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
afd172ad035048919fd468d1603a9e9277285270JazzyNico MAKE_ARGS += LP64=1
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free endif
afd172ad035048919fd468d1603a9e9277285270JazzyNico PLATFORM = bsd-zero
afd172ad035048919fd468d1603a9e9277285270JazzyNico VM_PLATFORM = bsd_$(subst i386,i486,$(ZERO_LIBARCH))
afd172ad035048919fd468d1603a9e9277285270JazzyNico HS_ARCH = zero
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free ARCH = zero
afd172ad035048919fd468d1603a9e9277285270JazzyNicoendif
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNico# ia64
afd172ad035048919fd468d1603a9e9277285270JazzyNicoifeq ($(ARCH), ia64)
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH_DATA_MODEL = 64
afd172ad035048919fd468d1603a9e9277285270JazzyNico MAKE_ARGS += LP64=1
afd172ad035048919fd468d1603a9e9277285270JazzyNico PLATFORM = bsd-ia64
afd172ad035048919fd468d1603a9e9277285270JazzyNico VM_PLATFORM = bsd_ia64
afd172ad035048919fd468d1603a9e9277285270JazzyNico HS_ARCH = ia64
afd172ad035048919fd468d1603a9e9277285270JazzyNicoendif
afd172ad035048919fd468d1603a9e9277285270JazzyNico
afd172ad035048919fd468d1603a9e9277285270JazzyNico# sparc
afd172ad035048919fd468d1603a9e9277285270JazzyNicoifeq ($(ARCH), sparc64)
afd172ad035048919fd468d1603a9e9277285270JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH_DATA_MODEL = 64
afd172ad035048919fd468d1603a9e9277285270JazzyNico MAKE_ARGS += LP64=1
afd172ad035048919fd468d1603a9e9277285270JazzyNico PLATFORM = bsd-sparcv9
afd172ad035048919fd468d1603a9e9277285270JazzyNico VM_PLATFORM = bsd_sparcv9
afd172ad035048919fd468d1603a9e9277285270JazzyNico else
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH_DATA_MODEL = 32
afd172ad035048919fd468d1603a9e9277285270JazzyNico PLATFORM = bsd-sparc
afd172ad035048919fd468d1603a9e9277285270JazzyNico VM_PLATFORM = bsd_sparc
afd172ad035048919fd468d1603a9e9277285270JazzyNico endif
afd172ad035048919fd468d1603a9e9277285270JazzyNico HS_ARCH = sparc
afd172ad035048919fd468d1603a9e9277285270JazzyNicoendif
aea39058a556f160194bf12f84ee7254af96278dSlagvi Public
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free# amd64
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-freeifneq (,$(findstring $(ARCH), amd64 x86_64))
e03bf3058955e0f649829d7329cf529582aaa828Slagvi Public ifeq ($(ARCH_DATA_MODEL), 64)
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free ARCH_DATA_MODEL = 64
aea39058a556f160194bf12f84ee7254af96278dSlagvi Public MAKE_ARGS += LP64=1
aea39058a556f160194bf12f84ee7254af96278dSlagvi Public PLATFORM = bsd-amd64
afd172ad035048919fd468d1603a9e9277285270JazzyNico VM_PLATFORM = bsd_amd64
afd172ad035048919fd468d1603a9e9277285270JazzyNico HS_ARCH = x86
afd172ad035048919fd468d1603a9e9277285270JazzyNico else
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free ARCH_DATA_MODEL = 32
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free PLATFORM = bsd-i586
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free VM_PLATFORM = bsd_i486
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free HS_ARCH = x86
a2235347c4daa9ee1b82608f9b3f13767a63db65tavmjong-free # We have to reset ARCH to i386 since SRCARCH relies on it
afd172ad035048919fd468d1603a9e9277285270JazzyNico ARCH = i386
afd172ad035048919fd468d1603a9e9277285270JazzyNico endif
endif
# i386
ifeq ($(ARCH), i386)
ifeq ($(ARCH_DATA_MODEL), 64)
ARCH_DATA_MODEL = 64
MAKE_ARGS += LP64=1
PLATFORM = bsd-amd64
VM_PLATFORM = bsd_amd64
HS_ARCH = x86
# We have to reset ARCH to amd64 since SRCARCH relies on it
ARCH = amd64
else
ARCH_DATA_MODEL = 32
PLATFORM = bsd-i586
VM_PLATFORM = bsd_i486
HS_ARCH = x86
endif
endif
# ARM
ifeq ($(ARCH), arm)
ARCH_DATA_MODEL = 32
PLATFORM = bsd-arm
VM_PLATFORM = bsd_arm
HS_ARCH = arm
endif
# PPC
ifeq ($(ARCH), ppc)
ARCH_DATA_MODEL = 32
PLATFORM = bsd-ppc
VM_PLATFORM = bsd_ppc
HS_ARCH = ppc
endif
JDK_INCLUDE_SUBDIR=bsd
# Library suffix
OS_VENDOR:=$(shell uname -s)
ifeq ($(OS_VENDOR),Darwin)
LIBRARY_SUFFIX=dylib
else
LIBRARY_SUFFIX=so
endif
# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
VM_DEBUG=jvmg
EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
# client and server subdirectories have symbolic links to ../libjsig.so
EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.$(LIBRARY_SUFFIX)
EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
ifndef BUILD_CLIENT_ONLY
EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.$(LIBRARY_SUFFIX)
endif
ifneq ($(ZERO_BUILD), true)
ifeq ($(ARCH_DATA_MODEL), 32)
EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.$(LIBRARY_SUFFIX)
endif
endif
# Serviceability Binaries
# No SA Support for PPC, IA64, ARM or zero
ADD_SA_BINARIES/x86 = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
$(EXPORT_LIB_DIR)/sa-jdi.jar
ADD_SA_BINARIES/sparc = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
$(EXPORT_LIB_DIR)/sa-jdi.jar
ADD_SA_BINARIES/universal = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
$(EXPORT_LIB_DIR)/sa-jdi.jar
ADD_SA_BINARIES/ppc =
ADD_SA_BINARIES/ia64 =
ADD_SA_BINARIES/arm =
ADD_SA_BINARIES/zero =
EXPORT_LIST += $(ADD_SA_BINARIES/$(HS_ARCH))
UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.$(LIBRARY_SUFFIX)
UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libsaproc.$(LIBRARY_SUFFIX)
UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/server/libjvm.$(LIBRARY_SUFFIX)
UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/server/Xusage.txt
UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/client/Xusage.txt
UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/client/libjvm.$(LIBRARY_SUFFIX)