make/jdk-rules.gmk
author hseigel
Fri, 30 Aug 2013 15:15:22 -0400
changeset 19702 7b249e0a6082
parent 15903 bc0e6cd9d760
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
12256
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
     2
# Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     4
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
fd16c54261b3 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    10
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fd16c54261b3 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
fd16c54261b3 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
fd16c54261b3 Initial load
duke
parents:
diff changeset
    16
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
fd16c54261b3 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    20
#
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    23
# questions.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    24
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    25
fd16c54261b3 Initial load
duke
parents:
diff changeset
    26
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    27
# JDK TARGETS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    29
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    31
fd16c54261b3 Initial load
duke
parents:
diff changeset
    32
# NO_IMAGES may be set in conjunction with DEV_ONLY
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    33
IMAGES_TARGET = images
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    34
ifdef DEV_ONLY
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    35
  ifdef NO_IMAGES
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    36
    IMAGES_TARGET =
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    37
  endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    40
# GENERATE_DOCS determines if we ask for the docs target
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    41
DOCS_TARGET = docs
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    42
ifeq ($(GENERATE_DOCS),false)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
endif
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    45
  
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
    46
JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
JDK_CLOBBER_TARGETS = clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
    49
fd16c54261b3 Initial load
duke
parents:
diff changeset
    50
JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    51
    ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
ifeq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
  JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
ifeq ($(BUILD_CORBA), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
  JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    59
ifeq ($(BUILD_JAXP), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
  JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
ifeq ($(BUILD_JAXWS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
  JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
endif
15903
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 12256
diff changeset
    65
ifeq ($(BUILD_NASHORN), true)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 12256
diff changeset
    66
  JDK_BUILD_ARGUMENTS += ALT_NASHORN_DIST=$(ABS_NASHORN_DIST)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 12256
diff changeset
    67
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
ifeq ($(BUILD_HOTSPOT), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
  JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
JDK_BUILD_ARGUMENTS += \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
        BUILD_HOTSPOT=$(BUILD_HOTSPOT)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
12256
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    76
# Move to COMMON_BUILD_ARGUMENTS when all repos support
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    77
# FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES:
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    78
ifdef FULL_DEBUG_SYMBOLS
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    79
  JDK_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS)
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    80
endif
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    81
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    82
ifdef ZIP_DEBUGINFO_FILES
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    83
  JDK_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)"
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    84
endif
e66c077cb815 7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents: 8917
diff changeset
    85
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
$(JDK_JAVA_EXE):: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
jdk: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
jdk-build:
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
    91
	@$(call MakeStart,jdk,$(JDK_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
	  $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
    94
	@$(call MakeFinish,jdk,$(JDK_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
jdk-clobber::
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
    97
	@$(call MakeStart,jdk,$(JDK_CLOBBER_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
	  $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
   100
	@$(call MakeFinish,jdk,$(JDK_CLOBBER_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
jdk-sanity::
2096
da51837a7368 6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents: 668
diff changeset
   103
	( $(CD) $(JDK_TOPDIR)/make && \
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
	  $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
compare-images: compare-image
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
compare-image:
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
   108
	@$(call MakeStart,jdk,compare-image)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   109
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
   111
	@$(call MakeFinish,jdk,compare-image)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
compare-images-clobber: compare-image-clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
compare-image-clobber:
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
   115
	@$(call MakeStart,jdk,compare-image-clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 5499
diff changeset
   118
	@$(call MakeFinish,jdk,compare-image-clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
fd16c54261b3 Initial load
duke
parents:
diff changeset
   120
.PHONY: jdk jdk-build jdk-clobber jdk-sanity 
fd16c54261b3 Initial load
duke
parents:
diff changeset
   121