hotspot/make/solaris/makefiles/buildtree.make
author kvn
Thu, 04 Apr 2013 12:18:46 -0700
changeset 16630 3dea566541da
parent 16381 806d87cb0cc7
child 17006 b9bfa72b7dda
permissions -rw-r--r--
8011198: LP64 setting is not preserved on Solaris after 8006965 Summary: Fixed incremental build makefiles generated by buildtree.make. Consolidated unix build.sh. Reviewed-by: twisti
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
16630
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
     2
# Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
#
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
    21
# questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
# Usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
# $(MAKE) -f buildtree.make ARCH=arch BUILDARCH=buildarch LIBARCH=libarch
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
#         GAMMADIR=dir OS_FAMILY=os VARIANT=variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
# The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
# environment or on the command-line:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
# ARCH		- sparc, i486, ... HotSpot cpu and os_cpu source directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
# BUILDARCH     - build directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
# LIBARCH       - the corresponding directory in JDK/JRE
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
# GAMMADIR	- top of workspace
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
# OS_FAMILY	- operating system
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
# VARIANT	- core, compiler1, compiler2, or tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
# HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
7402
554c8ae9c3e0 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 5547
diff changeset
    40
# HOTSPOT_BUILD_VERSION   - internal, internal-$(USER_RELEASE_SUFFIX) or empty
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
# JRE_RELEASE_VERSION     - <major>.<minor>.<micro> (1.7.0)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
# Builds the directory trees with makefiles plus some convenience files in
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
# each directory:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
# Makefile	- for "make foo"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
# flags.make	- with macro settings
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
# vm.make	- to support making "$(MAKE) -v vm.make" in makefiles
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
# adlc.make	- 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
# jvmti.make	- generate JVMTI bindings from the spec (JSR-163)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
# sa.make	- generate SA jar file and natives
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
# env.[ck]sh	- environment settings
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
# 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
# The makefiles are split this way so that "make foo" will run faster by not
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
# having to read the dependency files for the vm.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
11955
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
    57
-include $(SPEC)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
include $(GAMMADIR)/make/scm.make
16381
806d87cb0cc7 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 14815
diff changeset
    59
include $(GAMMADIR)/make/defs.make
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
    60
include $(GAMMADIR)/make/altsrc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
16381
806d87cb0cc7 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 14815
diff changeset
    62
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
# 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
QUIETLY$(MAKE_VERBOSE)	= @
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
### maye ARCH_XXX instead?
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
ifdef USE_GCC
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    68
PLATFORM_FILE	= $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).gcc
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
GCC_LIB         = /usr/local/lib
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
else
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    71
PLATFORM_FILE	= $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
GCC_LIB         = 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
ifdef FORCE_TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
ifeq		($(VARIANT),tiered)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
PLATFORM_DIR	= $(OS_FAMILY)_$(BUILDARCH)_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
PLATFORM_DIR	= $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
PLATFORM_DIR    = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
# We do two levels of exclusion in the shared directory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
# TOPLEVEL excludes are pruned, they are not recursively searched,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
# but lower level directories can be named without fear of collision.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
# ALWAYS excludes are excluded at any level in the directory tree.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
ALWAYS_EXCLUDE_DIRS     = $(SCM_DIRS)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
ifeq		($(VARIANT),tiered)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
ifeq		($(VARIANT),compiler2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
# compiler1 and core use the same exclude list
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
TOPLEVEL_EXCLUDE_DIRS	= $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
# Get things from the platform file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
COMPILER	= $(shell sed -n 's/^compiler[ 	]*=[ 	]*//p' $(PLATFORM_FILE))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
SIMPLE_DIRS	= \
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   109
	$(PLATFORM_DIR)/generated/dependencies \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
	$(PLATFORM_DIR)/generated/adfiles \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
	$(PLATFORM_DIR)/generated/jvmtifiles
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
TARGETS      = debug fastdebug jvmg optimized product profiled
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
# For dependencies and recursive makes.
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   117
BUILDTREE_MAKE	= $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \
16381
806d87cb0cc7 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 14815
diff changeset
   120
        env.sh env.csh jdkpath.sh
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
	ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
# Define variables to be set in flags.make.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
# Default values are set in make/defs.make.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
ifeq ($(HOTSPOT_BUILD_VERSION),)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
# Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
ifndef HOTSPOT_BUILD_USER
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
ifndef HOTSPOT_BUILD_USER
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  HOTSPOT_BUILD_USER := $(shell whoami)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
endif
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   139
# Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   140
# or make/hotspot_distro.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
ifndef HOTSPOT_VM_DISTRO
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   142
  ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   143
    include $(GAMMADIR)/make/hotspot_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  else
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   145
    include $(GAMMADIR)/make/openjdk_distro
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   149
# 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: 12503
diff changeset
   150
ifndef OPENJDK
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   151
  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: 12503
diff changeset
   152
    OPENJDK=true
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   153
  endif
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   154
endif
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   155
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
BUILDTREE	= \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
all:  $(SUBMAKE_DIRS)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
# Run make in each subdirectory recursively.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
$(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
	$(QUIETLY) [ -d $@ ] || { mkdir -p $@; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
	$(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
	$(QUIETLY) touch $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
$(SIMPLE_DIRS):
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
	$(QUIETLY) mkdir -p $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   174
# Convenience macro which takes a source relative path, applies $(1) to the
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   175
# absolute path, and then replaces $(GAMMADIR) in the result with a 
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   176
# literal "$(GAMMADIR)/" suitable for inclusion in a Makefile.  
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   177
gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2)))
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   178
16630
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   179
# This bit is needed to enable local rebuilds.
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   180
# Unless the makefile itself sets LP64, any environmental
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   181
# setting of LP64 will interfere with the build.
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   182
LP64_SETTING/32 = LP64 = \#empty
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   183
LP64_SETTING/64 = LP64 = 1
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   184
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   185
DATA_MODE/i486 = 32
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   186
DATA_MODE/sparc = 32
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   187
DATA_MODE/sparcv9 = 64
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   188
DATA_MODE/amd64 = 64
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   189
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   190
DATA_MODE = $(DATA_MODE/$(BUILDARCH))
3dea566541da 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 16381
diff changeset
   191
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
	echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
	sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
	echo "GAMMADIR = $(GAMMADIR)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
	echo "SRCARCH = $(ARCH)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
	echo "BUILDARCH = $(BUILDARCH)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
	echo "LIBARCH = $(LIBARCH)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
	echo "TARGET = $(TARGET)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
	echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
	echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
	echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 12503
diff changeset
   211
	echo "OPENJDK = $(OPENJDK)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
	echo "$(LP64_SETTING/$(DATA_MODE))"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
	echo; \
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   214
	echo "# Used for platform dispatching"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   215
	echo "TARGET_DEFINES  = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   216
	echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   217
	echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   218
	echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   219
	echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   220
	echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   221
	echo "CFLAGS += \$$(TARGET_DEFINES)"; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   222
	echo; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   223
	echo "Src_Dirs_V = \\"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
	sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   225
	echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   226
	echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   227
	echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   228
	echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   229
	echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   230
	echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   231
	echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   232
	echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   233
	echo; \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   234
	echo "Src_Dirs_I = \\"; \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   235
	echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   236
	echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   237
	echo "$(call gamma-path,altsrc,share/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   238
	echo "$(call gamma-path,commonsrc,share/vm) \\"; \
10830
f3fedfa29811 7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents: 10559
diff changeset
   239
	echo "$(call gamma-path,altsrc,share/vm/precompiled) \\"; \
f3fedfa29811 7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents: 10559
diff changeset
   240
	echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   241
	echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   242
	echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   243
	echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   244
	echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   245
	echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   246
	echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   247
	echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   248
	echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
	[ -n "$(CFLAGS_BROWSE)" ] && \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
	    echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \
12501
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   251
	[ -n "$(ENABLE_FULL_DEBUG_SYMBOLS)" ] && \
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   252
	    echo && echo "ENABLE_FULL_DEBUG_SYMBOLS = $(ENABLE_FULL_DEBUG_SYMBOLS)"; \
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 8921
diff changeset
   253
	[ -n "$(OBJCOPY)" ] && \
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 8921
diff changeset
   254
	    echo && echo "OBJCOPY = $(OBJCOPY)"; \
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 8921
diff changeset
   255
	[ -n "$(STRIP_POLICY)" ] && \
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 8921
diff changeset
   256
	    echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \
12501
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   257
	[ -n "$(ZIP_DEBUGINFO_FILES)" ] && \
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   258
	    echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   259
	[ -n "$(ZIPEXE)" ] && \
ea7feae692ae 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 11593
diff changeset
   260
	    echo && echo "ZIPEXE = $(ZIPEXE)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
	[ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
	    echo && \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
	    echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
	    echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
	echo; \
11955
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
   266
	[ -n "$(SPEC)" ] && \
aeca8151886e 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 11593
diff changeset
   267
	    echo "include $(SPEC)"; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   268
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   269
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
	[ "$(TARGET)" = profiled ] && \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   278
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   279
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
../shared_dirs.lst:  $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
	@echo Creating directory list $@
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   284
	$(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   285
          find $(HS_ALT_SRC)/share/vm/* -prune \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   286
	  -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   287
          \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   288
        fi;
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   289
	$(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
	-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 7718
diff changeset
   291
        \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
Makefile: $(BUILDTREE_MAKE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
	echo include flags.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
	echo; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   300
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
vm.make: $(BUILDTREE_MAKE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
	echo include flags.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
	echo include flags_vm.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
	echo; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   311
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
adlc.make: $(BUILDTREE_MAKE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
	echo include flags.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
	echo; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   321
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
jvmti.make: $(BUILDTREE_MAKE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
	echo include flags.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
	echo; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   331
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
sa.make: $(BUILDTREE_MAKE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
	$(BUILDTREE_COMMENT); \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
	echo; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
	echo include flags.make; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
	echo; \
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
   341
	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 10830
diff changeset
   344
env.sh: $(BUILDTREE_MAKE)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
	$(BUILDTREE_COMMENT); \
16381
806d87cb0cc7 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 14815
diff changeset
   348
	{ echo "JAVA_HOME=$(JDK_IMPORT_PATH)"; }; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
	{ \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
	echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
	} | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
	echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
	echo "export JAVA_HOME LD_LIBRARY_PATH CLASSPATH HOTSPOT_BUILD_USER"; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
11593
288a647ff773 7125793: MAC: test_gamma should always work
phh
parents: 10830
diff changeset
   356
env.csh: env.sh
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
	@echo Creating $@ ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
	$(QUIETLY) ( \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
	$(BUILDTREE_COMMENT); \
16381
806d87cb0cc7 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 14815
diff changeset
   360
	{ echo "setenv JAVA_HOME \"$(JDK_IMPORT_PATH)\""; }; \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
	sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
	) > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
7452
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   364
jdkpath.sh: $(BUILDTREE_MAKE)
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   365
	@echo Creating $@ ...
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   366
	$(QUIETLY) ( \
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   367
	$(BUILDTREE_COMMENT); \
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   368
	echo "JDK=${JAVA_HOME}"; \
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   369
	) > $@	   
b3fa838286de 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 7403
diff changeset
   370
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
FORCE:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
.PHONY:  all FORCE