make/sanity-rules.gmk
author darcy
Tue, 27 Aug 2013 11:58:53 -0700
changeset 19664 4369a475040a
parent 15903 bc0e6cd9d760
permissions -rw-r--r--
8023826: Typo in warning about obsolete source / target values Reviewed-by: jjg, wmdietl
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
9930
8faced1b0ba4 7061195: Clean up makefiles for JDK 8
jjg
parents: 7654
diff changeset
     2
# Copyright (c) 2001, 2011, 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
# SANITY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    29
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
sanity:: pre-sanity settings insane environment
fd16c54261b3 Initial load
duke
parents:
diff changeset
    31
fd16c54261b3 Initial load
duke
parents:
diff changeset
    32
ifeq ($(BUILD_HOTSPOT), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    33
  sanity:: hotspot-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
ifeq ($(BUILD_DEPLOY), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
  sanity:: deploy-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
ifeq ($(BUILD_JDK), true)
11946
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
    41
  sanity:: jdk-sanity
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    42
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
# Only need these sanity rules when not doing a debug build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    45
ifeq ($(DEBUG_NAME),)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    46
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
  ifeq ($(BUILD_INSTALL), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
    sanity:: install-sanity
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
  ifeq ($(BUILD_SPONSORS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
    sanity:: sponsors-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
sanity:: post-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
9930
8faced1b0ba4 7061195: Clean up makefiles for JDK 8
jjg
parents: 7654
diff changeset
    59
source-sanity : pre-sanity post-sanity
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
$(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE):
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
	@$(prep-target)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
purge-sanity: $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
	-@$(RM) $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
11946
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
    67
pre-sanity: purge-sanity
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
# this should be the last rule in any target's sanity rule.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
post-sanity post-sanity-hotspot post-sanity-jdk post-sanity-install post-sanity-deploy:
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
	@if [ -r $(MESSAGE_FILE) ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
	  $(ECHO) "" ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
	  $(CAT) $(MESSAGE_FILE) ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
	@if [ -r $(WARNING_FILE) ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
	  $(CAT) $(WARNING_FILE) ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
    78
	@if [ "x$(INSANE)" != x ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
	  $(ECHO) "INSANE mode requested. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
	    "Sanity will not force a build termination, even with errors.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    81
	    "" >> $(ERROR_FILE); \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
	@if [ -r $(ERROR_FILE) ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    84
	  if [ "x$(INSANE)" = x ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
	    $(ECHO) "Exiting because of the above error(s). \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
	      "">> $(ERROR_FILE); \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
	  fi ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
	  $(CAT) $(ERROR_FILE) ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
	  if [ "x$(INSANE)" = x ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
	    exit 1 ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
	  fi ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
ifdef PEDANTIC
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
	@if [ -r $(WARNING_FILE) ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
	  $(ECHO) "PEDANTIC mode requested. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
	    "Exiting because of the above warning(s). \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
	    "" >> $(ERROR_FILE); \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
	  $(CAT) $(ERROR_FILE) ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
	  exit 1 ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
	@if [ ! -r $(ERROR_FILE) ]; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
	  $(ECHO) "Sanity check passed." ; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
insane:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
ifdef INSANE
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108
	@$(ECHO) "WARNING: You are building in 'INSANE' mode. You \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   109
	   "        should not use this mode, and in fact, \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
	   "        it may be removed at any time. If you \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   111
	   "        have build problems as a result of using \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
	   "        INSANE mode, then you should not expect \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
	   "        assistance from anyone with the problems \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
	   "        or consequences you experience. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   115
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
fd16c54261b3 Initial load
duke
parents:
diff changeset
   118
# Get list of environment variables set that we do not want set
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
ifdef ALT_HOTSPOT_SERVER_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   120
  DO_NOT_SET_LIST += ALT_HOTSPOT_SERVER_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   121
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   122
ifdef ALT_HOTSPOT_CLIENT_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   123
  DO_NOT_SET_LIST += ALT_HOTSPOT_CLIENT_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   124
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   125
ifdef ALT_HOTSPOT_LIB_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   126
  DO_NOT_SET_LIST += ALT_HOTSPOT_LIB_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   127
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   128
fd16c54261b3 Initial load
duke
parents:
diff changeset
   129
# Error message for environment variable set that should not be
fd16c54261b3 Initial load
duke
parents:
diff changeset
   130
%.do_not_set:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   131
	@$(ECHO) "ERROR: Your build environment has the variable\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   132
	   "        $* defined. Please unset it and restart your build. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   133
	   "" >> $(ERROR_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   134
11946
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   135
# Check the environment variables
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   136
environment: $(DO_NOT_SET_LIST:%=%.do_not_set)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   137
ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   138
  ifneq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   139
	@$(ECHO) "WARNING: You are not building the LANGTOOLS sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   140
           "        Lang tools (javac) will be obtained from \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   141
           "        the location set in ALT_JDK_IMPORT_PATH. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   142
           "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   143
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   144
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   145
ifeq ($(JAXP_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   146
  ifneq ($(BUILD_JAXP), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   147
	@$(ECHO) "WARNING: You are not building the JAXP sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   148
           "        The jaxp files will be obtained from \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   149
           "        the location set in ALT_JDK_IMPORT_PATH. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   150
           "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   151
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   152
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   153
ifeq ($(JAXWS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   154
  ifneq ($(BUILD_JAXWS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   155
	@$(ECHO) "WARNING: You are not building the JAXWS sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   156
           "        The jaxws files will be obtained from \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   157
           "        the location set in ALT_JDK_IMPORT_PATH. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   158
           "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   159
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   160
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   161
ifeq ($(CORBA_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   162
  ifneq ($(BUILD_CORBA), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   163
	@$(ECHO) "WARNING: You are not building the CORBA sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   164
           "        The corba files will be obtained from \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   165
           "        the location set in ALT_JDK_IMPORT_PATH. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   166
           "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   167
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   168
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   169
ifeq ($(HOTSPOT_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   170
  ifneq ($(BUILD_HOTSPOT), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   171
	@$(ECHO) "WARNING: You are not building the HOTSPOT sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   172
           "        Hotspot libs will be obtained from \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   173
           "        the location set in ALT_HOTSPOT_IMPORT_PATH. \n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   174
           "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   175
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   176
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   177
ifeq ($(JDK_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   178
  ifneq ($(BUILD_JDK), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   179
	@$(ECHO) "WARNING: You are not building the JDK sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   180
	   "        This will result in a development-only\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   181
	   "        build of the JDK , lacking the jdk binaries.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   182
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   183
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   184
endif
15903
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   185
ifeq ($(NASHORN_SRC_AVAILABLE), true)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   186
  ifneq ($(BUILD_NASHORN), true)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   187
	@$(ECHO) "WARNING: You are not building the NASHORN sources.\n" \
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   188
           "        The nashorn files will be obtained from \n" \
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   189
           "        the location set in ALT_JDK_IMPORT_PATH. \n" \
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   190
           "" >> $(WARNING_FILE)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   191
  endif
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   192
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   193
ifeq ($(DEPLOY_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   194
  ifneq ($(BUILD_DEPLOY), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   195
	@$(ECHO) "WARNING: You are not building the DEPLOY sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   196
	   "        This will result in a development-only\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   197
	   "        build of the JDK, lacking the plugin and javaws binaries.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   198
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   199
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   200
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   201
ifeq ($(INSTALL_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   202
  ifneq ($(BUILD_INSTALL), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   203
	@$(ECHO) "WARNING: You are not building the INSTALL sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   204
	   "        This will result in a development-only\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   205
	   "        build of the JDK, lacking the installation bundles\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   206
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   207
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   208
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   209
ifeq ($(SPONSORS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   210
  ifneq ($(BUILD_SPONSORS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   211
	@$(ECHO) "WARNING: You are not building the SPONSORS sources.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   212
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   213
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   214
endif
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3259
diff changeset
   215
ifeq ($(GENERATE_DOCS),false)
11946
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   216
	@$(ECHO) "WARNING: This build does not include generating javadoc.\n" \
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   217
	   "" >> $(WARNING_FILE)
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   218
endif
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   219
ifdef NO_DEMOS
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   220
	@$(ECHO) "WARNING: This build and any install images will not include demos.\n" \
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   221
	   "" >> $(WARNING_FILE)
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   222
endif
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   223
ifdef NO_SAMPLES
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   224
	@$(ECHO) "WARNING: This build and any install images will not include samples.\n" \
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   225
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   226
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   227
ifdef NO_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
   228
	@$(ECHO) "WARNING: Your build environment has the variable NO_IMAGES\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   229
	   "        defined. This will result in a development-only\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   230
	   "        build of the JDK, lacking the install images\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   231
	   "        and bundles.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   232
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   233
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   234
ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   235
	@$(ECHO) "WARNING: Your build environment has the variable DEV_ONLY\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   236
	   "        defined. This will result in a development-only\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   237
	   "        build of the JDK, lacking the documentation\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   238
	   "        build and installation bundles.\n" \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   239
	   "" >> $(WARNING_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   240
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   241
fd16c54261b3 Initial load
duke
parents:
diff changeset
   242
######################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   243
# dump out the variable settings...
fd16c54261b3 Initial load
duke
parents:
diff changeset
   244
######################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   245
ifneq ($(PLATFORM), windows)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   246
  ifndef HOSTNAME
fd16c54261b3 Initial load
duke
parents:
diff changeset
   247
    HOSTNAME := $(shell hostname)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   248
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   249
endif
11946
ea3e0a10bf9b 7143162: Allow disable building of jdk demos and samples
mduigou
parents: 9930
diff changeset
   250
settings::
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   251
	@$(ECHO) "Build Machine Information:" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   252
ifeq ($(PLATFORM), windows)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   253
	@$(ECHO) "   build machine = $(COMPUTERNAME)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   254
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   255
	@$(ECHO) "   build machine = $(HOSTNAME)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   256
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   257
	@$(ECHO) "" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   258
	@$(ECHO) "Build Directory Structure:" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   259
	@$(ECHO) "   CWD = `$(PWD)`" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   260
	@$(ECHO) "   TOPDIR = $(TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   261
ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   262
	@$(ECHO) "   LANGTOOLS_TOPDIR = $(LANGTOOLS_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   263
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   264
ifeq ($(JAXP_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   265
	@$(ECHO) "   JAXP_TOPDIR = $(JAXP_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   266
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   267
ifeq ($(JAXWS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   268
	@$(ECHO) "   JAXWS_TOPDIR = $(JAXWS_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   269
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   270
ifeq ($(CORBA_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   271
	@$(ECHO) "   CORBA_TOPDIR = $(CORBA_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   272
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   273
ifeq ($(HOTSPOT_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   274
	@$(ECHO) "   HOTSPOT_TOPDIR = $(HOTSPOT_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   275
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   276
ifeq ($(JDK_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   277
	@$(ECHO) "   JDK_TOPDIR = $(JDK_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   278
endif
15903
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   279
ifeq ($(NASHORN_SRC_AVAILABLE), true)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   280
	@$(ECHO) "   NASHORN_TOPDIR = $(NASHORN_TOPDIR)"  >> $(MESSAGE_FILE)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   281
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   282
ifeq ($(DEPLOY_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   283
	@$(ECHO) "   DEPLOY_TOPDIR = $(DEPLOY_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   284
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   285
ifeq ($(INSTALL_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   286
	@$(ECHO) "   INSTALL_TOPDIR = $(INSTALL_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   287
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   288
ifeq ($(SPONSORS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   289
	@$(ECHO) "   SPONSORS_TOPDIR = $(SPONSORS_TOPDIR)"  >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   290
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   291
	@$(ECHO) "" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   292
ifneq ($(SKIP_COMPARE_IMAGES), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   293
	@$(ECHO) "External File/Binary Locations:" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   294
	@$(ECHO) "   PREVIOUS_JRE_BUNDLE = $(PREVIOUS_JRE_BUNDLE) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   295
	@$(ECHO) "   PREVIOUS_JDK_BUNDLE = $(PREVIOUS_JDK_BUNDLE) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   296
	@$(ECHO) "" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   297
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   298
	@$(ECHO) "Build Directives:" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   299
ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   300
	@$(ECHO) "   BUILD_LANGTOOLS = $(BUILD_LANGTOOLS) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   301
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   302
ifeq ($(JAXP_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   303
	@$(ECHO) "   BUILD_JAXP = $(BUILD_JAXP) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   304
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   305
ifeq ($(JAXWS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   306
	@$(ECHO) "   BUILD_JAXWS = $(BUILD_JAXWS) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   307
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   308
ifeq ($(CORBA_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   309
	@$(ECHO) "   BUILD_CORBA = $(BUILD_CORBA) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   310
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   311
ifeq ($(HOTSPOT_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   312
	@$(ECHO) "   BUILD_HOTSPOT = $(BUILD_HOTSPOT) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   313
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   314
ifeq ($(JDK_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   315
	@$(ECHO) "   BUILD_JDK    = $(BUILD_JDK) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   316
endif
15903
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   317
ifeq ($(NASHORN_SRC_AVAILABLE), true)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   318
	@$(ECHO) "   BUILD_NASHORN = $(BUILD_NASHORN) " >> $(MESSAGE_FILE)
bc0e6cd9d760 8008914: Add nashorn to the tl build
jjg
parents: 11946
diff changeset
   319
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   320
ifeq ($(DEPLOY_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   321
	@$(ECHO) "   BUILD_DEPLOY  = $(BUILD_DEPLOY) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   322
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   323
ifeq ($(INSTALL_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   324
	@$(ECHO) "   BUILD_INSTALL = $(BUILD_INSTALL) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   325
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   326
ifeq ($(SPONSORS_SRC_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   327
	@$(ECHO) "   BUILD_SPONSORS = $(BUILD_SPONSORS) " >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   328
endif
2778
6df702c8ca19 6829575: 100028: Debug information is incomplete or missing
aph
parents: 0
diff changeset
   329
	@$(ECHO) "   DEBUG_CLASSFILES = $(DEBUG_CLASSFILES) " >> $(MESSAGE_FILE)
6df702c8ca19 6829575: 100028: Debug information is incomplete or missing
aph
parents: 0
diff changeset
   330
	@$(ECHO) "   DEBUG_BINARIES = $(DEBUG_BINARIES) " >> $(MESSAGE_FILE)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   331
	@$(ECHO) "" >> $(MESSAGE_FILE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   332
fd16c54261b3 Initial load
duke
parents:
diff changeset
   333
.PHONY: sanity settings pre-sanity insane \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   334
	post-sanity post-sanity-hotspot post-sanity-jdk \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   335
	post-sanity-install post-sanity-deploy \
9930
8faced1b0ba4 7061195: Clean up makefiles for JDK 8
jjg
parents: 7654
diff changeset
   336
	environment