jdk/make/common/Sanity.gmk
author jrose
Fri, 05 Nov 2010 12:18:30 -0700
changeset 7118 aa8f53fcb28f
parent 5506 202f599c92aa
child 7666 7b994e3dd41d
permissions -rw-r--r--
6996563: 6984311 changes forgot to update vmStructs.cpp for new field _operands Summary: Add missing line to vmStructs. Also fix bug with class dumper. Reviewed-by: twisti, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
     2
# Copyright (c) 2001, 2008, 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: 4917
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: 4917
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: 4917
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
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
# Settings and rules to validate the JDK build environment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.PHONY: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
	pre-sanity \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
	sanity \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
	sanity-base \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	sanity-docs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	sanity-images \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
	post-sanity-all \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
	post-sanity-docs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
	post-sanity-images \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
	sanity-all
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
# Bring in common sanity check rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
include $(JDK_MAKE_SHARED_DIR)/Sanity.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# EXTERNALSANITYCONTROL means that this workspace build is being controlled by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# the control workspace, and that workspace is managing what is done to the sanity
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# check files, and this sanity check run is only appending to those files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
pre-sanity:  $(SANITY_FILES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
ifndef EXTERNALSANITYCONTROL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
	@$(RM) $(SANITY_FILES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
sanity-base: pre-sanity \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    sane-settings \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    sane-insane \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    sane-make \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    sane-build_number \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    sane-os_version \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    sane-makeflags \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    sane-alt_outputdir \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    sane-outputdir \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    sane-devtools_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    sane-compiler_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    sane-unixcommand_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    sane-usrbin_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    sane-math_iso \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    sane-libCrun \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    sane-unixccs_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    sane-odbcdir \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    sane-msdevtools_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    sane-dxsdk \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    sane-compiler \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    sane-cacerts \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    sane-ant_version \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    sane-zip_version \
4917
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 3742
diff changeset
    74
    sane-msvcrt_path \
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 3742
diff changeset
    75
    sane-build_modules
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
# The rules sanity-* have a one-to-one correspondence with the major targets
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
# Each sanity-* rule should have no body to ensure that the post-sanity-* is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
# last rule executed. The pre-sanity rule should be the first dependency. This design 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
# expects the execution of pre-sanity only once per gnumake command invocation, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
# thus, info written to ERROR_FILE and/or WARNING_FILE will not be removed by subsequent
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
# targets in the same 'gnumake' command line.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
sanity-all:: sanity-base \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    sane-classpath \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    sane-java_home \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    sane-fonts \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    sane-binary-plugs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    sane-variant \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    sane-ld_library_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    sane-ld_library_path_64 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    sane-ld_options \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    sane-ld_run_path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    sane-alt_bootdir \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    sane-bootdir \
2806
27edf81ff967 6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
anthony
parents: 2658
diff changeset
    96
    sane-local-bootdir \
3742
5e1b8bc3cb1a 6844267: Nimbus generator depends on JIBX
peterz
parents: 2806
diff changeset
    97
    sane-alsa-headers
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
sanity-all:: sane-freetype 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
# Always check cups header paths on solaris & linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
sanity-all:: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    sane-cups
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
# Always check hotspot binary paths even if we are building them from scratch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
HOTSPOT_IMPORT_CHECK=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
ifeq ($(HOTSPOT_IMPORT_CHECK),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
sanity-all:: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    sane-hotspot_binaries \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    sane-hotspot_import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
sanity-docs: sanity-base sane-docs_import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
sanity-images:: sanity-base
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
sanity:: sanity-all post-sanity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
# this should be the last rule in any target's sanity rule.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
post-sanity post-sanity-all post-sanity-docs post-sanity-images: sane-lastrule