defs.make revision 1010
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# This code is free software; you can redistribute it and/or modify it
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# under the terms of the GNU General Public License version 2 only, as
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# published by the Free Software Foundation.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# This code is distributed in the hope that it will be useful, but WITHOUT
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# version 2 for more details (a copy is included in the LICENSE file that
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# accompanied this code).
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# You should have received a copy of the GNU General Public License version
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# 2 along with this work; if not, write to the Free Software Foundation,
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# CA 95054 USA or visit www.sun.com if you need additional information or
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# have any questions.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico#
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# The common definitions for hotspot linux builds.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# Include the top level defs.make under make directory instead of this one.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# This file is included into make/defs.make.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoSLASH_JAVA ?= /java
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoARCH:=$(shell uname -m)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoPATH_SEP = :
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoifeq ($(LP64), 1)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH_DATA_MODEL ?= 64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoelse
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH_DATA_MODEL ?= 32
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoendif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# zero
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoifeq ($(ZERO_BUILD), true)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
12a239f8730c2bb6e3738d5e75b3237877594d07Martin Owens MAKE_ARGS += LP64=1
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico endif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico PLATFORM = linux-zero
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico VM_PLATFORM = linux_$(subst i386,i486,$(ZERO_LIBARCH))
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico HS_ARCH = zero
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH = zero
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoendif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# ia64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoifeq ($(ARCH), ia64)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH_DATA_MODEL = 64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico MAKE_ARGS += LP64=1
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico PLATFORM = linux-ia64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico VM_PLATFORM = linux_ia64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico HS_ARCH = ia64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoendif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# sparc
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoifeq ($(ARCH), sparc64)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH_DATA_MODEL = 64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico MAKE_ARGS += LP64=1
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico PLATFORM = linux-sparcv9
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico VM_PLATFORM = linux_sparcv9
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico else
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ARCH_DATA_MODEL = 32
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico PLATFORM = linux-sparc
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico VM_PLATFORM = linux_sparc
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico endif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico HS_ARCH = sparc
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoendif
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico# x86_64
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoifeq ($(ARCH), x86_64)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico ifeq ($(ARCH_DATA_MODEL), 64)
ARCH_DATA_MODEL = 64
MAKE_ARGS += LP64=1
PLATFORM = linux-amd64
VM_PLATFORM = linux_amd64
HS_ARCH = x86
else
ARCH_DATA_MODEL = 32
PLATFORM = linux-i586
VM_PLATFORM = linux_i486
HS_ARCH = x86
# We have to reset ARCH to i686 since SRCARCH relies on it
ARCH = i686
endif
endif
# i686
ifeq ($(ARCH), i686)
ARCH_DATA_MODEL = 32
PLATFORM = linux-i586
VM_PLATFORM = linux_i486
HS_ARCH = x86
endif
JDK_INCLUDE_SUBDIR=linux
# 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
EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjsig.so
EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so
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)/libjsig.so
EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so
EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
else
ifeq ($(ARCH),ia64)
else
EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
endif
endif
endif