hotspot/make/bsd/makefiles/buildtree.make
author coleenp
Mon, 08 Oct 2012 09:18:54 -0400
changeset 13958 f5598a86c223
parent 12156 fb31de03f649
child 13963 e5b53c306fb5
permissions -rw-r--r--
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field. Summary: Don't use HS_DTRACE_PROBE_CDECL_N and HS_DTRACE_PROBE_N directly. Reviewed-by: coleenp, kamg, dholmes, sspitsyn Contributed-by: Mark Wielaard <mjw@redhat.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     2
# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
# published by the Free Software Foundation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    13
# accompanied this code).
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    14
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    18
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    21
# questions.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    22
#  
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    23
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    24
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    25
# Usage:
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    26
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    27
# $(MAKE) -f buildtree.make SRCARCH=srcarch BUILDARCH=buildarch LIBARCH=libarch
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    28
#         GAMMADIR=dir OS_FAMILY=os VARIANT=variant
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    29
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    30
# The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    31
# environment or on the command-line:
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    32
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    33
# ARCH		- sparc, i486, ... HotSpot cpu and os_cpu source directory
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    34
# BUILDARCH     - build directory
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    35
# LIBARCH       - the corresponding directory in JDK/JRE
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    36
# GAMMADIR	- top of workspace
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    37
# OS_FAMILY	- operating system
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    38
# VARIANT	- core, compiler1, compiler2, or tiered
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    39
# HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    40
# HOTSPOT_BUILD_VERSION   - internal, internal-$(USER_RELEASE_SUFFIX) or empty
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    41
# JRE_RELEASE_VERSION     - <major>.<minor>.<micro> (1.7.0)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    42
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    43
# Builds the directory trees with makefiles plus some convenience files in
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    44
# each directory:
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    45
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    46
# Makefile	- for "make foo"
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    47
# flags.make	- with macro settings
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    48
# vm.make	- to support making "$(MAKE) -v vm.make" in makefiles
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    49
# adlc.make	- 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    50
# jvmti.make	- generate JVMTI bindings from the spec (JSR-163)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    51
# sa.make	- generate SA jar file and natives
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    52
# env.[ck]sh	- environment settings
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    53
# test_gamma	- script to run the Queens program
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    54
# 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    55
# The makefiles are split this way so that "make foo" will run faster by not
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    56
# having to read the dependency files for the vm.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    57
11184
2e0f09640008 7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents: 10830
diff changeset
    58
# needs to be set here since this Makefile doesn't include defs.make
2e0f09640008 7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents: 10830
diff changeset
    59
OS_VENDOR:=$(shell uname -s)
2e0f09640008 7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents: 10830
diff changeset
    60
11955
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
    61
-include $(SPEC)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    62
include $(GAMMADIR)/make/scm.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    63
include $(GAMMADIR)/make/altsrc.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    65
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    66
# 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    67
QUIETLY$(MAKE_VERBOSE)	= @
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    68
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    69
# For now, until the compiler is less wobbly:
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    70
TESTFLAGS	= -Xbatch -showversion
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    71
12156
fb31de03f649 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 11955
diff changeset
    72
ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    73
  PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    74
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    75
  ifdef USE_SUNCC
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    76
    PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    77
  else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    78
    PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    79
  endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    80
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    81
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    82
# Allow overriding of the arch part of the directory but default
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    83
# to BUILDARCH if nothing is specified
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    84
ifeq ($(VARIANTARCH),)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    85
  VARIANTARCH=$(BUILDARCH)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    86
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    87
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    88
ifdef FORCE_TIERED
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    89
ifeq		($(VARIANT),tiered)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    90
PLATFORM_DIR	= $(OS_FAMILY)_$(VARIANTARCH)_compiler2
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    91
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    92
PLATFORM_DIR	= $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    93
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    94
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    95
PLATFORM_DIR    = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    96
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    97
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    98
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    99
# We do two levels of exclusion in the shared directory.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   100
# TOPLEVEL excludes are pruned, they are not recursively searched,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   101
# but lower level directories can be named without fear of collision.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   102
# ALWAYS excludes are excluded at any level in the directory tree.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   103
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   104
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   105
ALWAYS_EXCLUDE_DIRS     = $(SCM_DIRS)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   106
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   107
ifeq		($(VARIANT),tiered)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   108
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   109
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   110
ifeq		($(VARIANT),compiler2)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   111
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   112
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   113
# compiler1 and core use the same exclude list
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   114
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   115
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   116
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   117
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   118
# Get things from the platform file.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   119
COMPILER	= $(shell sed -n 's/^compiler[ 	]*=[ 	]*//p' $(PLATFORM_FILE))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   120
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   121
# dtracefiles is used on BSD versions that implement Dtrace (like MacOS X)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   122
SIMPLE_DIRS	= \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   123
	$(PLATFORM_DIR)/generated/dependencies \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   124
	$(PLATFORM_DIR)/generated/adfiles \
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   125
	$(PLATFORM_DIR)/generated/jvmtifiles \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   126
	$(PLATFORM_DIR)/generated/dtracefiles
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   127
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   128
TARGETS      = debug fastdebug jvmg optimized product profiled
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   129
SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   130
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   131
# For dependencies and recursive makes.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   132
BUILDTREE_MAKE	= $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   133
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   134
# dtrace.make is used on BSD versions that implement Dtrace (like MacOS X)
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   135
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   136
	jvmti.make sa.make dtrace.make \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   137
        env.sh env.csh jdkpath.sh .dbxrc test_gamma
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   138
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   139
BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   140
	SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   141
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   142
# Define variables to be set in flags.make.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   143
# Default values are set in make/defs.make.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   144
ifeq ($(HOTSPOT_BUILD_VERSION),)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   145
  HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   146
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   147
  HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   148
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   149
# Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   150
ifndef HOTSPOT_BUILD_USER
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   151
  HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   152
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   153
ifndef HOTSPOT_BUILD_USER
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   154
  HOTSPOT_BUILD_USER := $(shell whoami)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   155
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   156
# Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   157
# or make/hotspot_distro.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   158
ifndef HOTSPOT_VM_DISTRO
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   159
  ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   160
    include $(GAMMADIR)/make/hotspot_distro
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   161
  else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   162
    include $(GAMMADIR)/make/openjdk_distro
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   163
  endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   164
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   165
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   166
# if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   167
ifndef OPENJDK
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   168
  ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   169
    OPENJDK=true
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   170
  endif
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   171
endif
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   172
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   173
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION=  JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   174
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   175
BUILDTREE	= \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   176
	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   177
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   178
BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   179
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   180
all:  $(SUBMAKE_DIRS)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   181
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   182
# Run make in each subdirectory recursively.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   183
$(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   184
	$(QUIETLY) [ -d $@ ] || { mkdir -p $@; }
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   185
	$(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   186
	$(QUIETLY) touch $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   187
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   188
$(SIMPLE_DIRS):
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   189
	$(QUIETLY) mkdir -p $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   190
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   191
# Convenience macro which takes a source relative path, applies $(1) to the
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   192
# absolute path, and then replaces $(GAMMADIR) in the result with a 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   193
# literal "$(GAMMADIR)/" suitable for inclusion in a Makefile.  
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   194
gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2)))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   195
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   196
flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   197
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   198
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   199
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   200
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   201
	echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   202
	sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   203
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   204
	echo "GAMMADIR = $(GAMMADIR)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   205
	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   206
	echo "SRCARCH = $(SRCARCH)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   207
	echo "BUILDARCH = $(BUILDARCH)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   208
	echo "LIBARCH = $(LIBARCH)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   209
	echo "TARGET = $(TARGET)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   210
	echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   211
	echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   212
	echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   213
	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   214
	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12156
diff changeset
   215
	echo "OPENJDK = $(OPENJDK)"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   216
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   217
	echo "# Used for platform dispatching"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   218
	echo "TARGET_DEFINES  = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   219
	echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   220
	echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   221
	echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   222
	echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   223
	echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   224
	echo "CFLAGS += \$$(TARGET_DEFINES)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   225
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   226
	echo "Src_Dirs_V = \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   227
	sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   228
	echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   229
	echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   230
	echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   231
	echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   232
	echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   233
	echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   234
	echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   235
	echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   236
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   237
	echo "Src_Dirs_I = \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   238
	echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   239
	echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   240
	echo "$(call gamma-path,altsrc,share/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   241
	echo "$(call gamma-path,commonsrc,share/vm) \\"; \
10830
f3fedfa29811 7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents: 10739
diff changeset
   242
	echo "$(call gamma-path,altsrc,share/vm/precompiled) \\"; \
f3fedfa29811 7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents: 10739
diff changeset
   243
	echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   244
	echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   245
	echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   246
	echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   247
	echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   248
	echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   249
	echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   250
	echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   251
	echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   252
	[ -n "$(CFLAGS_BROWSE)" ] && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   253
	    echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   254
	[ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   255
	    echo && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   256
	    echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   257
	    echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   258
	echo; \
11955
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
   259
	[ -n "$(SPEC)" ] && \
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
   260
	    echo "include $(SPEC)"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   261
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   262
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   263
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   264
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   265
flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   266
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   267
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   268
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   269
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   270
	[ "$(TARGET)" = profiled ] && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   271
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   272
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   273
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   274
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   275
../shared_dirs.lst:  $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   276
	@echo Creating directory list $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   277
	$(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   278
          find $(HS_ALT_SRC)/share/vm/* -prune \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   279
	  -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   280
          \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   281
        fi;
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   282
	$(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   283
	-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   284
        \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   285
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   286
Makefile: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   287
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   288
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   289
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   290
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   291
	echo include flags.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   292
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   293
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   294
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   295
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   296
vm.make: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   297
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   298
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   299
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   300
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   301
	echo include flags.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   302
	echo include flags_vm.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   303
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   304
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   305
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   306
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   307
adlc.make: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   308
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   309
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   310
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   311
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   312
	echo include flags.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   313
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   314
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   315
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   316
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   317
jvmti.make: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   318
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   319
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   320
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   321
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   322
	echo include flags.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   323
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   324
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   325
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   326
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   327
sa.make: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   328
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   329
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   330
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   331
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   332
	echo include flags.make; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   333
	echo; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   334
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   335
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   336
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   337
dtrace.make: $(BUILDTREE_MAKE)
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   338
	@echo Creating $@ ...
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   339
	$(QUIETLY) ( \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   340
	$(BUILDTREE_COMMENT); \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   341
	echo; \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   342
	echo include flags.make; \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   343
	echo; \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   344
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   345
	) > $@
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   346
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   347
env.sh: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   348
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   349
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   350
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   351
	[ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   352
	{ \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   353
	echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   354
	} | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   355
	echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   356
	echo "export JAVA_HOME CLASSPATH HOTSPOT_BUILD_USER"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   357
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   358
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   359
env.csh: env.sh
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   360
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   361
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   362
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   363
	[ -n "$$JAVA_HOME" ] && \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   364
	{ echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   365
	sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   366
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   367
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   368
jdkpath.sh: $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   369
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   370
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   371
	$(BUILDTREE_COMMENT); \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   372
	echo "JDK=${JAVA_HOME}"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   373
	) > $@	   
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   374
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   375
.dbxrc:  $(BUILDTREE_MAKE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   376
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   377
	$(QUIETLY) ( \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   378
	echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   379
	echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   380
	echo "then"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   381
	echo "	source \"\$${HOTSPOT_DBXWARE}\""; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   382
	echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   383
	echo "then"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   384
	echo "	source \"\$$HOME/.dbxrc\""; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   385
	echo "fi"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   386
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   387
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   388
# Skip the test for product builds (which only work when installed in a JDK), to
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   389
# avoid exiting with an error and causing make to halt.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   390
NO_TEST_MSG	= \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   391
	echo "$@:  skipping the test--this build must be tested in a JDK."
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   392
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   393
NO_JAVA_HOME_MSG	= \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   394
	echo "JAVA_HOME must be set to run this test."
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   395
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   396
DATA_MODE = $(DATA_MODE/$(BUILDARCH))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   397
JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   398
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   399
DATA_MODE/i486    = 32
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   400
DATA_MODE/sparc   = 32
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   401
DATA_MODE/sparcv9 = 64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   402
DATA_MODE/amd64   = 64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   403
DATA_MODE/ia64    = 64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   404
DATA_MODE/zero    = $(ARCH_DATA_MODEL)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   405
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   406
JAVA_FLAG/32 = -d32
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   407
JAVA_FLAG/64 = -d64
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   408
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   409
WRONG_DATA_MODE_MSG = \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   410
	echo "JAVA_HOME must point to a $(DATA_MODE)-bit OpenJDK."
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   411
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   412
CROSS_COMPILING_MSG = \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   413
	echo "Cross compiling for ARCH $(CROSS_COMPILE_ARCH), skipping gamma run."
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   414
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   415
test_gamma:  $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   416
	@echo Creating $@ ...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   417
	$(QUIETLY) ( \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   418
	echo "#!/bin/sh"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   419
	echo ""; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   420
	$(BUILDTREE_COMMENT); \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   421
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   422
	echo "# Include environment settings for gamma run"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   423
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   424
	echo ". ./env.sh"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   425
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   426
	echo "# Do not run gamma test for cross compiles"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   427
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   428
	echo "if [ -n \"$(CROSS_COMPILE_ARCH)\" ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   429
	echo "  $(CROSS_COMPILING_MSG)"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   430
	echo "  exit 0"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   431
	echo "fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   432
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   433
	echo "# Make sure JAVA_HOME is set as it is required for gamma"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   434
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   435
	echo "if [ -z \"\$${JAVA_HOME}\" ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   436
	echo "  $(NO_JAVA_HOME_MSG)"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   437
	echo "  exit 0"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   438
	echo "fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   439
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   440
	echo "# Check JAVA_HOME version to be used for the test"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   441
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   442
	echo "\$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion > /dev/null 2>&1"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   443
	echo "if [ \$$? -ne 0 ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   444
	echo "  $(WRONG_DATA_MODE_MSG)"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   445
	echo "  exit 0"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   446
	echo "fi"; \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   447
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   448
	echo "# Use gamma_g if it exists"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   449
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   450
	echo "GAMMA_PROG=gamma"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   451
	echo "if [ -f gamma_g ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   452
	echo "  GAMMA_PROG=gamma_g"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   453
	echo "fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   454
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   455
	echo "if [ \"$(OS_VENDOR)\" = \"Darwin\" ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   456
	echo "  # Ensure architecture for gamma and JAVA_HOME is the same."; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   457
	echo "  # NOTE: gamma assumes the OpenJDK directory layout."; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   458
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   459
	echo "  GAMMA_ARCH=\"\`file \$${GAMMA_PROG} | awk '{print \$$NF}'\`\""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   460
	echo "  JVM_LIB=\"\$${JAVA_HOME}/jre/lib/libjava.$(LIBRARY_SUFFIX)\""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   461
	echo "  if [ ! -f \$${JVM_LIB} ]; then"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   462
	echo "    JVM_LIB=\"\$${JAVA_HOME}/jre/lib/$${LIBARCH}/libjava.$(LIBRARY_SUFFIX)\""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   463
	echo "  fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   464
	echo "  if [ ! -f \$${JVM_LIB} ] || [ -z \"\`file \$${JVM_LIB} | grep \$${GAMMA_ARCH}\`\" ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   465
	echo "    $(WRONG_DATA_MODE_MSG)"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   466
	echo "    exit 0"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   467
	echo "  fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   468
	echo "fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   469
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   470
	echo "# Compile Queens program for test"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   471
	echo ""; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   472
	echo "rm -f Queens.class"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   473
	echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   474
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   475
	echo "# Set library path solely for gamma launcher test run"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   476
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   477
	echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   478
	echo "export LD_LIBRARY_PATH"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   479
	echo "unset LD_LIBRARY_PATH_32"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   480
	echo "unset LD_LIBRARY_PATH_64"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   481
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   482
	echo "if [ \"$(OS_VENDOR)\" = \"Darwin\" ]; then "; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   483
	echo "  DYLD_LIBRARY_PATH=.:$${DYLD_LIBRARY_PATH:+$$DYLD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/native_threads:\$${JAVA_HOME}/jre/lib:$${DYLD_LIBRARY_PATH:+$$DYLD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   484
	echo "  export DYLD_LIBRARY_PATH"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   485
	echo "fi"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   486
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   487
	echo "# Use the gamma launcher and JAVA_HOME to run the test"; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   488
	echo ""; \
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 11184
diff changeset
   489
	echo "./\$${GAMMA_PROG} $(TESTFLAGS) Queens < /dev/null"; \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   490
	) > $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   491
	$(QUIETLY) chmod +x $@
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   492
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   493
FORCE:
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   494
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   495
.PHONY:  all FORCE