make/linux/makefiles/defs.make

changeset 526
a294fd0c4b38
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/linux/makefiles/defs.make	Wed Apr 09 14:22:48 2008 -0400
     1.3 @@ -0,0 +1,113 @@
     1.4 +#
     1.5 +# Copyright 2006-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +#
     1.8 +# This code is free software; you can redistribute it and/or modify it
     1.9 +# under the terms of the GNU General Public License version 2 only, as
    1.10 +# published by the Free Software Foundation.
    1.11 +#
    1.12 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 +# version 2 for more details (a copy is included in the LICENSE file that
    1.16 +# accompanied this code).
    1.17 +#
    1.18 +# You should have received a copy of the GNU General Public License version
    1.19 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.20 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 +#
    1.22 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 +# CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 +# have any questions.
    1.25 +#  
    1.26 +#
    1.27 +
    1.28 +# The common definitions for hotspot linux builds.
    1.29 +# Include the top level defs.make under make directory instead of this one.
    1.30 +# This file is included into make/defs.make.
    1.31 +
    1.32 +SLASH_JAVA ?= /java
    1.33 +
    1.34 +# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
    1.35 +ARCH:=$(shell uname -m)
    1.36 +PATH_SEP = :
    1.37 +ifeq ($(LP64), 1)
    1.38 +  ARCH_DATA_MODEL ?= 64
    1.39 +else
    1.40 +  ARCH_DATA_MODEL ?= 32
    1.41 +endif
    1.42 +
    1.43 +# ia64
    1.44 +ifeq ($(ARCH), ia64)
    1.45 +  ARCH_DATA_MODEL = 64
    1.46 +  MAKE_ARGS      += LP64=1
    1.47 +  PLATFORM        = linux-ia64
    1.48 +  VM_PLATFORM     = linux_ia64
    1.49 +  HS_ARCH         = ia64
    1.50 +endif
    1.51 +
    1.52 +# sparc
    1.53 +ifeq ($(ARCH), sparc64)
    1.54 +  ifeq ($(ARCH_DATA_MODEL), 64)
    1.55 +    ARCH_DATA_MODEL  = 64
    1.56 +    MAKE_ARGS        += LP64=1
    1.57 +    PLATFORM         = linux-sparcv9
    1.58 +    VM_PLATFORM      = linux_sparcv9
    1.59 +  else
    1.60 +    ARCH_DATA_MODEL  = 32
    1.61 +    PLATFORM         = linux-sparc
    1.62 +    VM_PLATFORM      = linux_sparc
    1.63 +  endif
    1.64 +  HS_ARCH            = sparc
    1.65 +endif
    1.66 +
    1.67 +# x86_64
    1.68 +ifeq ($(ARCH), x86_64) 
    1.69 +  ifeq ($(ARCH_DATA_MODEL), 64)
    1.70 +    ARCH_DATA_MODEL = 64
    1.71 +    MAKE_ARGS       += LP64=1
    1.72 +    PLATFORM        = linux-amd64
    1.73 +    VM_PLATFORM     = linux_amd64
    1.74 +    HS_ARCH         = x86
    1.75 +  else
    1.76 +    ARCH_DATA_MODEL = 32
    1.77 +    PLATFORM        = linux-i586
    1.78 +    VM_PLATFORM     = linux_i486
    1.79 +    HS_ARCH         = x86
    1.80 +    # We have to reset ARCH to i686 since SRCARCH relies on it
    1.81 +    ARCH            = i686   
    1.82 +  endif
    1.83 +endif
    1.84 +
    1.85 +# i686
    1.86 +ifeq ($(ARCH), i686)
    1.87 +  ARCH_DATA_MODEL  = 32
    1.88 +  PLATFORM         = linux-i586
    1.89 +  VM_PLATFORM      = linux_i486
    1.90 +  HS_ARCH          = x86
    1.91 +endif
    1.92 +
    1.93 +JDK_INCLUDE_SUBDIR=linux
    1.94 +
    1.95 +# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
    1.96 +VM_DEBUG=jvmg
    1.97 +
    1.98 +EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
    1.99 +EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
   1.100 +EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
   1.101 +EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjsig.so
   1.102 +EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so
   1.103 +ifeq ($(ARCH_DATA_MODEL), 32)
   1.104 +  EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
   1.105 +  EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
   1.106 +  EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjsig.so
   1.107 +  EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so 
   1.108 +  EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
   1.109 +  EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar 
   1.110 +else
   1.111 +  ifeq ($(ARCH),ia64)
   1.112 +    else
   1.113 +      EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
   1.114 +      EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
   1.115 +    endif
   1.116 +endif

mercurial