jdk/make/common/shared/Defs-control.gmk
author dcubed
Wed, 11 Apr 2012 07:26:35 -0700
changeset 12427 116544b5a04c
parent 11331 245d2d6da902
child 14406 0c65c125ff9d
permissions -rw-r--r--
7071907: JDK: Full Debug Symbols Summary: Add initial FDS support to some libraries and programs. Reviewed-by: kamg, fparain, sspitsyn, dsamersoff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8009
diff changeset
     2
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3329
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3329
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3329
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3329
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3329
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Common variables used by all the Java makefiles.  This file should
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# not contain rules.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
# WARNING: This file is shared with other components.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
ifndef JDK_MAKE_SHARED_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  JDK_MAKE_SHARED_DIR = $(JDK_TOPDIR)/make/common/shared
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
ifndef HOTSPOT_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
  HOTSPOT_TOPDIR=$(TOPDIR)/hotspot
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
ifndef LANGTOOLS_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  LANGTOOLS_TOPDIR=$(TOPDIR)/langtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
ifndef CORBA_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  CORBA_TOPDIR=$(TOPDIR)/corba
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
ifndef JAXP_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
  JAXP_TOPDIR=$(TOPDIR)/jaxp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
ifndef JAXWS_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  JAXWS_TOPDIR=$(TOPDIR)/jaxws
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
ifndef JDK_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
  JDK_TOPDIR=$(TOPDIR)/jdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
ifndef INSTALL_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  INSTALL_TOPDIR=$(TOPDIR)/install
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
ifndef SPONSORS_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
  SPONSORS_TOPDIR=$(TOPDIR)/sponsors
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
ifndef DEPLOY_TOPDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
  DEPLOY_TOPDIR=$(TOPDIR)/deploy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
# Get shared platform settings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
include $(JDK_MAKE_SHARED_DIR)/Platform.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
311
3c14f21bf3f7 6484686: The next directory looks like it is no longer part of the build (deploy makefiles)
ohair
parents: 33
diff changeset
    69
# Default directory immediately above the "build" output directory (OUTPUTDIR)
33
51a7bc3e93a0 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 2
diff changeset
    70
BUILD_PARENT_DIRECTORY=$(TOPDIR)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
# Get platform specific settings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
include $(JDK_MAKE_SHARED_DIR)/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
SRC_BUNDLEDIR       = $(OUTPUTDIR)/source-bundles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
ABS_SRC_BUNDLEDIR   = $(ABS_OUTPUTDIR)/source-bundles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
BIN_BUNDLEDIR       = $(OUTPUTDIR)/bundles
11331
245d2d6da902 7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents: 9035
diff changeset
    78
BIN_DEMOS_BUNDLEDIR = $(OUTPUTDIR)/demos-bundles
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
ABS_BIN_BUNDLEDIR   = $(ABS_OUTPUTDIR)/bundles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
dummy := $(shell $(MKDIR) -p $(BIN_BUNDLEDIR))
11331
245d2d6da902 7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents: 9035
diff changeset
    82
dummy := $(shell $(MKDIR) -p $(BIN_DEMOS_BUNDLEDIR) )
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
dummy := $(shell $(MKDIR) -p $(SRC_BUNDLEDIR) )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
TEMP_DIR = $(OUTPUTDIR)/tmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
ABS_TEMP_DIR = $(ABS_OUTPUTDIR)/tmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
dummy := $(shell $(MKDIR) -p $(TEMP_DIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
2920
345857eb0f3b 6827026: Change javac source and target default to 7
jjg
parents: 715
diff changeset
    90
# The language version we want for this jdk build
3329
51166c6dca11 6854244: change source/target used to compile JDK to 7
jjg
parents: 2920
diff changeset
    91
SOURCE_LANGUAGE_VERSION=7
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
# The class version we want for this jdk build
3329
51166c6dca11 6854244: change source/target used to compile JDK to 7
jjg
parents: 2920
diff changeset
    93
TARGET_CLASS_VERSION=7
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
# The MESSAGE, WARNING and ERROR files are used to store sanity check and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
# source check messages, warnings and errors. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
export ERROR_FILE   := $(ABS_OUTPUTDIR)/sanityCheckErrors.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
export WARNING_FILE := $(ABS_OUTPUTDIR)/sanityCheckWarnings.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
export MESSAGE_FILE := $(ABS_OUTPUTDIR)/sanityCheckMessages.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
# source bundle generation definitions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
BUNDLE_DATE := $(shell $(DATE) '+%d_%b_%Y' | $(TR) "[A-Z]" "[a-z]")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
ifdef ALT_BUNDLE_DATE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  BUNDLE_DATE := $(ALT_BUNDLE_DATE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
# If the update version contains non-numeric characters, we need
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
# to massage it into a numeric format.  Unfortunately, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
# Windows VERSIONINFO resource that we stick in jvm.dll cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
# handle non-numeric characters.  We have to do this here because
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
# Hotspot (nmake) cannot handle calculations.  So we use the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
# following formula:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
# COOKED_JDK_UPDATE_VERSION = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
# 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
# Here are some examples:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
#     1.5.0    b01  ->  5,0,0,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#     1.5.0_10 b01  ->  5,0,100,1 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#     1.4.2 b01     ->  4,2,0,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
#     1.4.2_02 b01  ->  4,2,20,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
#     1.4.2_02a b01 ->  4,2,21,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
#     1.4.2_02b b01 ->  4,2,22,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
ifdef JDK_UPDATE_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
  VTMP := $(shell $(ECHO) $(JDK_UPDATE_VERSION) | $(TR) "abcde" "12345")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
  CHAR1 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 1, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
  CHAR2 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 2, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
  CHAR3 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 3, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
  ifeq ($(CHAR3),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    CHAR3 := 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
  ifeq ($(CHAR1), 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    COOKED_JDK_UPDATE_VERSION := $(CHAR2)$(CHAR3)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    COOKED_JDK_UPDATE_VERSION := $(CHAR1)$(CHAR2)$(CHAR3)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
ifneq ($(JDK_BUILD_NUMBER),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 COOKED_BUILD_NUMBER = $(shell $(ECHO) $(JDK_BUILD_NUMBER) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
			       | $(SED) -e 's/^b//' | $(SED) -e 's/^0//')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 COOKED_BUILD_NUMBER = 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143