make/jdk-rules.gmk
author mikejwre
Thu, 17 Dec 2009 14:10:20 -0800
changeset 4540 ae0f40f891d4
parent 4309 39ca605f0647
child 5499 eb0b3e373167
permissions -rw-r--r--
Added tag jdk7-b78 for changeset 185d9f127780
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
2099
a9be2da8a8f2 6814575: Update copyright year
xdono
parents: 2096
diff changeset
     2
# Copyright 2001-2009 Sun Microsystems, Inc.  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
fd16c54261b3 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
fd16c54261b3 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
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
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    23
# have any questions.
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
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
ifeq ($(BUILD_HOTSPOT), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    67
  JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
JDK_BUILD_ARGUMENTS += \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
        BUILD_HOTSPOT=$(BUILD_HOTSPOT)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
$(JDK_JAVA_EXE):: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
jdk: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
jdk-build:
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    78
	@$(call MakeStart, jdk, $(JDK_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
	  $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    81
	@$(call MakeFinish, jdk, $(JDK_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
jdk-clobber::
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    84
	@$(call MakeStart, jdk, $(JDK_CLOBBER_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
	  $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    87
	@$(call MakeFinish, jdk, $(JDK_CLOBBER_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
jdk-sanity::
2096
da51837a7368 6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents: 668
diff changeset
    90
	( $(CD) $(JDK_TOPDIR)/make && \
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
	  $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
compare-images: compare-image
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
compare-image:
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    95
	@$(call MakeStart, jdk, compare-image)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
    98
	@$(call MakeFinish, jdk, compare-image)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
compare-images-clobber: compare-image-clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
compare-image-clobber:
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
   102
	@$(call MakeStart, jdk, compare-image-clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 2099
diff changeset
   105
	@$(call MakeFinish, jdk, compare-image-clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
.PHONY: jdk jdk-build jdk-clobber jdk-sanity 
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108