make/jdk-rules.gmk
author never
Fri, 24 Apr 2009 15:08:30 -0700
changeset 2576 a3babdbbca51
parent 2099 a9be2da8a8f2
child 3789 2040d99c6f14
permissions -rw-r--r--
6833573: C2 sparc: assert(c < 64 && (c & 1) == 0,"bad double float register") Reviewed-by: twisti
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
fd16c54261b3 Initial load
duke
parents:
diff changeset
    33
ifdef NO_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
  IMAGES_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
  IMAGES_TARGET = images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
# No DOCS build when JDK_UPDATE_VERSION set
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
ifdef JDK_UPDATE_VERSION
fd16c54261b3 Initial load
duke
parents:
diff changeset
    41
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    42
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
  DOCS_TARGET = docs
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    45
fd16c54261b3 Initial load
duke
parents:
diff changeset
    46
# NO_DOCS may be set in conjunction with DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
ifdef NO_DOCS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    49
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    50
fd16c54261b3 Initial load
duke
parents:
diff changeset
    51
# If langtools not being built, full jdk javadoc is not possible
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
ifneq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
ifneq ($(BUILD_CORBA), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
ifneq ($(BUILD_JAXP), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    59
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
ifneq ($(BUILD_JAXWS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
  DOCS_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
ifndef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
  JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    67
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
  JDK_BUILD_TARGETS = sanity all $(IMAGES_TARGET)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
JDK_CLOBBER_TARGETS = clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
    ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
ifeq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
  JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    78
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
ifeq ($(BUILD_CORBA), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
  JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    81
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
ifeq ($(BUILD_JAXP), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
  JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    84
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
ifeq ($(BUILD_JAXWS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
  JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
ifeq ($(BUILD_HOTSPOT), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
  JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
JDK_BUILD_ARGUMENTS += \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
        BUILD_HOTSPOT=$(BUILD_HOTSPOT)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
$(JDK_JAVA_EXE):: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
jdk: jdk-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
jdk-build:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
	  $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
jdk-clobber::
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
	  $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108
jdk-sanity::
2096
da51837a7368 6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents: 668
diff changeset
   109
	( $(CD) $(JDK_TOPDIR)/make && \
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
	  $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   111
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
compare-images: compare-image
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
compare-image:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   115
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
compare-images-clobber: compare-image-clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
   118
compare-image-clobber:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
	( $(CD) $(JDK_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   120
	  $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
fd16c54261b3 Initial load
duke
parents:
diff changeset
   121
fd16c54261b3 Initial load
duke
parents:
diff changeset
   122
.PHONY: jdk jdk-build jdk-clobber jdk-sanity 
fd16c54261b3 Initial load
duke
parents:
diff changeset
   123