common/autoconf/hotspot-spec.gmk.in
author ohair
Tue, 18 Sep 2012 11:29:16 -0700
changeset 13697 5262b00bc10c
child 14111 2a82ecb35fc7
permissions -rw-r--r--
7197849: Update new build-infra makefiles Reviewed-by: ihse, erikj, ohrstrom, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     1
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     2
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
# Chaining of spec files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
override SPEC=$(HOTSPOT_SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
# Now include the base spec.gmk file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
include $(BASE_SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
# Additional legacy variables defined for Hotspot
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
@SET_OPENJDK@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    36
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
# Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    38
@BUILD_HEADLESS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
# Legacy setting: OPT or DBG
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
VARIANT:=@VARIANT@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
# Legacy setting: true or false
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
FASTDEBUG:=@FASTDEBUG@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
# Legacy setting: debugging the class files?
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
# The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
# compiler that produces code that can be run on the build platform.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
HOSTCC:=@UNCYGDRIVE@ @BUILD_CC@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
HOSTCXX:=@UNCYGDRIVE@ @BUILD_CXX@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    53
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    54
####################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    55
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    56
# Legacy Hotspot support
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    57
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    58
# If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    59
@DEFINE_CROSS_COMPILE_ARCH@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    61
# Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    62
PLATFORM=$(OPENJDK_TARGET_OS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    63
# 32 or 64 bit
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    64
ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    65
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    66
ALT_BOOTDIR=$(BOOT_JDK)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    67
# Can be /sparcv9 or /amd64 on Solaris
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    68
ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    69
# Yet another name for arch used for an extra subdir below the jvm lib.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    70
# Uses i386 and amd64, instead of x86 and x86_64.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    71
LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    72
# Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of x86 and x86_64.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    73
ARCH=$(OPENJDK_TARGET_CPU_LEGACY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    74
# Legacy setting for building for a 64 bit machine.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    75
# If yes then this expands to _LP64:=1
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    76
@LP64@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    77
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    78
ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    79
ALT_EXPORT_PATH=$(HOTSPOT_DIST)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    80
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    81
HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    82
# This is used from the libjvm build for C/C++ code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    83
HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    84
# Control wether Hotspot runs Queens test after building
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    85
TEST_IN_BUILD=@TEST_IN_BUILD@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    86
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    87
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    88
EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    89
EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    90
EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@