16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 ################################################################ 27 # SANITY 28 ################################################################ 29 30 sanity:: pre-sanity settings insane environment 31 32 ifeq ($(BUILD_HOTSPOT), true) 33 sanity:: hotspot-sanity 34 endif 35 36 ifeq ($(BUILD_DEPLOY), true) 37 sanity:: deploy-sanity 38 endif 39 40 ifeq ($(BUILD_JDK), true) 41 sanity:: jdk-sanity 42 endif 43 44 # Only need these sanity rules when not doing a debug build 45 ifeq ($(DEBUG_NAME),) 46 47 ifeq ($(BUILD_INSTALL), true) 48 sanity:: install-sanity 49 endif 50 51 ifeq ($(BUILD_SPONSORS), true) 52 sanity:: sponsors-sanity 53 endif 54 55 endif 157 " the location set in ALT_JDK_IMPORT_PATH. \n" \ 158 "" >> $(WARNING_FILE) 159 endif 160 endif 161 ifeq ($(CORBA_SRC_AVAILABLE), true) 162 ifneq ($(BUILD_CORBA), true) 163 @$(ECHO) "WARNING: You are not building the CORBA sources.\n" \ 164 " The corba files will be obtained from \n" \ 165 " the location set in ALT_JDK_IMPORT_PATH. \n" \ 166 "" >> $(WARNING_FILE) 167 endif 168 endif 169 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 170 ifneq ($(BUILD_HOTSPOT), true) 171 @$(ECHO) "WARNING: You are not building the HOTSPOT sources.\n" \ 172 " Hotspot libs will be obtained from \n" \ 173 " the location set in ALT_HOTSPOT_IMPORT_PATH. \n" \ 174 "" >> $(WARNING_FILE) 175 endif 176 endif 177 ifeq ($(JDK_SRC_AVAILABLE), true) 178 ifneq ($(BUILD_JDK), true) 179 @$(ECHO) "WARNING: You are not building the JDK sources.\n" \ 180 " This will result in a development-only\n" \ 181 " build of the JDK , lacking the jdk binaries.\n" \ 182 "" >> $(WARNING_FILE) 183 endif 184 endif 185 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 186 ifneq ($(BUILD_DEPLOY), true) 187 @$(ECHO) "WARNING: You are not building the DEPLOY sources.\n" \ 188 " This will result in a development-only\n" \ 189 " build of the JDK, lacking the plugin and javaws binaries.\n" \ 190 "" >> $(WARNING_FILE) 191 endif 192 endif 193 ifeq ($(INSTALL_SRC_AVAILABLE), true) 194 ifneq ($(BUILD_INSTALL), true) 195 @$(ECHO) "WARNING: You are not building the INSTALL sources.\n" \ 196 " This will result in a development-only\n" \ 248 endif 249 @$(ECHO) "" >> $(MESSAGE_FILE) 250 @$(ECHO) "Build Directory Structure:" >> $(MESSAGE_FILE) 251 @$(ECHO) " CWD = `$(PWD)`" >> $(MESSAGE_FILE) 252 @$(ECHO) " TOPDIR = $(TOPDIR)" >> $(MESSAGE_FILE) 253 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true) 254 @$(ECHO) " LANGTOOLS_TOPDIR = $(LANGTOOLS_TOPDIR)" >> $(MESSAGE_FILE) 255 endif 256 ifeq ($(JAXP_SRC_AVAILABLE), true) 257 @$(ECHO) " JAXP_TOPDIR = $(JAXP_TOPDIR)" >> $(MESSAGE_FILE) 258 endif 259 ifeq ($(JAXWS_SRC_AVAILABLE), true) 260 @$(ECHO) " JAXWS_TOPDIR = $(JAXWS_TOPDIR)" >> $(MESSAGE_FILE) 261 endif 262 ifeq ($(CORBA_SRC_AVAILABLE), true) 263 @$(ECHO) " CORBA_TOPDIR = $(CORBA_TOPDIR)" >> $(MESSAGE_FILE) 264 endif 265 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 266 @$(ECHO) " HOTSPOT_TOPDIR = $(HOTSPOT_TOPDIR)" >> $(MESSAGE_FILE) 267 endif 268 ifeq ($(JDK_SRC_AVAILABLE), true) 269 @$(ECHO) " JDK_TOPDIR = $(JDK_TOPDIR)" >> $(MESSAGE_FILE) 270 endif 271 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 272 @$(ECHO) " DEPLOY_TOPDIR = $(DEPLOY_TOPDIR)" >> $(MESSAGE_FILE) 273 endif 274 ifeq ($(INSTALL_SRC_AVAILABLE), true) 275 @$(ECHO) " INSTALL_TOPDIR = $(INSTALL_TOPDIR)" >> $(MESSAGE_FILE) 276 endif 277 ifeq ($(SPONSORS_SRC_AVAILABLE), true) 278 @$(ECHO) " SPONSORS_TOPDIR = $(SPONSORS_TOPDIR)" >> $(MESSAGE_FILE) 279 endif 280 @$(ECHO) "" >> $(MESSAGE_FILE) 281 ifneq ($(SKIP_COMPARE_IMAGES), true) 282 @$(ECHO) "External File/Binary Locations:" >> $(MESSAGE_FILE) 283 @$(ECHO) " PREVIOUS_JRE_BUNDLE = $(PREVIOUS_JRE_BUNDLE) " >> $(MESSAGE_FILE) 284 @$(ECHO) " PREVIOUS_JDK_BUNDLE = $(PREVIOUS_JDK_BUNDLE) " >> $(MESSAGE_FILE) 285 @$(ECHO) "" >> $(MESSAGE_FILE) 286 endif 287 @$(ECHO) "Build Directives:" >> $(MESSAGE_FILE) 288 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true) 289 @$(ECHO) " BUILD_LANGTOOLS = $(BUILD_LANGTOOLS) " >> $(MESSAGE_FILE) 290 endif 291 ifeq ($(JAXP_SRC_AVAILABLE), true) 292 @$(ECHO) " BUILD_JAXP = $(BUILD_JAXP) " >> $(MESSAGE_FILE) 293 endif 294 ifeq ($(JAXWS_SRC_AVAILABLE), true) 295 @$(ECHO) " BUILD_JAXWS = $(BUILD_JAXWS) " >> $(MESSAGE_FILE) 296 endif 297 ifeq ($(CORBA_SRC_AVAILABLE), true) 298 @$(ECHO) " BUILD_CORBA = $(BUILD_CORBA) " >> $(MESSAGE_FILE) 299 endif 300 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 301 @$(ECHO) " BUILD_HOTSPOT = $(BUILD_HOTSPOT) " >> $(MESSAGE_FILE) 302 endif 303 ifeq ($(JDK_SRC_AVAILABLE), true) 304 @$(ECHO) " BUILD_JDK = $(BUILD_JDK) " >> $(MESSAGE_FILE) 305 endif 306 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 307 @$(ECHO) " BUILD_DEPLOY = $(BUILD_DEPLOY) " >> $(MESSAGE_FILE) 308 endif 309 ifeq ($(INSTALL_SRC_AVAILABLE), true) 310 @$(ECHO) " BUILD_INSTALL = $(BUILD_INSTALL) " >> $(MESSAGE_FILE) 311 endif 312 ifeq ($(SPONSORS_SRC_AVAILABLE), true) 313 @$(ECHO) " BUILD_SPONSORS = $(BUILD_SPONSORS) " >> $(MESSAGE_FILE) 314 endif 315 @$(ECHO) " DEBUG_CLASSFILES = $(DEBUG_CLASSFILES) " >> $(MESSAGE_FILE) 316 @$(ECHO) " DEBUG_BINARIES = $(DEBUG_BINARIES) " >> $(MESSAGE_FILE) 317 @$(ECHO) "" >> $(MESSAGE_FILE) 318 319 .PHONY: sanity settings pre-sanity insane \ 320 post-sanity post-sanity-hotspot post-sanity-jdk \ 321 post-sanity-install post-sanity-deploy \ 322 environment | 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 ################################################################ 27 # SANITY 28 ################################################################ 29 30 sanity:: pre-sanity settings insane environment 31 32 ifeq ($(BUILD_HOTSPOT), true) 33 sanity:: hotspot-sanity 34 endif 35 36 ifeq ($(BUILD_BDB), true) 37 sanity:: bdb-sanity 38 endif 39 40 ifeq ($(BUILD_DEPLOY), true) 41 sanity:: deploy-sanity 42 endif 43 44 ifeq ($(BUILD_JDK), true) 45 sanity:: jdk-sanity 46 endif 47 48 # Only need these sanity rules when not doing a debug build 49 ifeq ($(DEBUG_NAME),) 50 51 ifeq ($(BUILD_INSTALL), true) 52 sanity:: install-sanity 53 endif 54 55 ifeq ($(BUILD_SPONSORS), true) 56 sanity:: sponsors-sanity 57 endif 58 59 endif 161 " the location set in ALT_JDK_IMPORT_PATH. \n" \ 162 "" >> $(WARNING_FILE) 163 endif 164 endif 165 ifeq ($(CORBA_SRC_AVAILABLE), true) 166 ifneq ($(BUILD_CORBA), true) 167 @$(ECHO) "WARNING: You are not building the CORBA sources.\n" \ 168 " The corba files will be obtained from \n" \ 169 " the location set in ALT_JDK_IMPORT_PATH. \n" \ 170 "" >> $(WARNING_FILE) 171 endif 172 endif 173 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 174 ifneq ($(BUILD_HOTSPOT), true) 175 @$(ECHO) "WARNING: You are not building the HOTSPOT sources.\n" \ 176 " Hotspot libs will be obtained from \n" \ 177 " the location set in ALT_HOTSPOT_IMPORT_PATH. \n" \ 178 "" >> $(WARNING_FILE) 179 endif 180 endif 181 ifeq ($(BDB_SRC_AVAILABLE), true) 182 ifneq ($(BUILD_BDB), true) 183 @$(ECHO) "WARNING: You are not building the bdb sources.\n" \ 184 " The bdb files will be obtained from \n" \ 185 " the location set in ALT_BDB_IMPORT_PATH. \n" \ 186 "" >> $(WARNING_FILE) 187 endif 188 endif 189 ifeq ($(JDK_SRC_AVAILABLE), true) 190 ifneq ($(BUILD_JDK), true) 191 @$(ECHO) "WARNING: You are not building the JDK sources.\n" \ 192 " This will result in a development-only\n" \ 193 " build of the JDK , lacking the jdk binaries.\n" \ 194 "" >> $(WARNING_FILE) 195 endif 196 endif 197 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 198 ifneq ($(BUILD_DEPLOY), true) 199 @$(ECHO) "WARNING: You are not building the DEPLOY sources.\n" \ 200 " This will result in a development-only\n" \ 201 " build of the JDK, lacking the plugin and javaws binaries.\n" \ 202 "" >> $(WARNING_FILE) 203 endif 204 endif 205 ifeq ($(INSTALL_SRC_AVAILABLE), true) 206 ifneq ($(BUILD_INSTALL), true) 207 @$(ECHO) "WARNING: You are not building the INSTALL sources.\n" \ 208 " This will result in a development-only\n" \ 260 endif 261 @$(ECHO) "" >> $(MESSAGE_FILE) 262 @$(ECHO) "Build Directory Structure:" >> $(MESSAGE_FILE) 263 @$(ECHO) " CWD = `$(PWD)`" >> $(MESSAGE_FILE) 264 @$(ECHO) " TOPDIR = $(TOPDIR)" >> $(MESSAGE_FILE) 265 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true) 266 @$(ECHO) " LANGTOOLS_TOPDIR = $(LANGTOOLS_TOPDIR)" >> $(MESSAGE_FILE) 267 endif 268 ifeq ($(JAXP_SRC_AVAILABLE), true) 269 @$(ECHO) " JAXP_TOPDIR = $(JAXP_TOPDIR)" >> $(MESSAGE_FILE) 270 endif 271 ifeq ($(JAXWS_SRC_AVAILABLE), true) 272 @$(ECHO) " JAXWS_TOPDIR = $(JAXWS_TOPDIR)" >> $(MESSAGE_FILE) 273 endif 274 ifeq ($(CORBA_SRC_AVAILABLE), true) 275 @$(ECHO) " CORBA_TOPDIR = $(CORBA_TOPDIR)" >> $(MESSAGE_FILE) 276 endif 277 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 278 @$(ECHO) " HOTSPOT_TOPDIR = $(HOTSPOT_TOPDIR)" >> $(MESSAGE_FILE) 279 endif 280 ifeq ($(BDB_SRC_AVAILABLE), true) 281 @$(ECHO) " BDB_TOPDIR = $(BDB_TOPDIR)" >> $(MESSAGE_FILE) 282 endif 283 ifeq ($(JDK_SRC_AVAILABLE), true) 284 @$(ECHO) " JDK_TOPDIR = $(JDK_TOPDIR)" >> $(MESSAGE_FILE) 285 endif 286 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 287 @$(ECHO) " DEPLOY_TOPDIR = $(DEPLOY_TOPDIR)" >> $(MESSAGE_FILE) 288 endif 289 ifeq ($(INSTALL_SRC_AVAILABLE), true) 290 @$(ECHO) " INSTALL_TOPDIR = $(INSTALL_TOPDIR)" >> $(MESSAGE_FILE) 291 endif 292 ifeq ($(SPONSORS_SRC_AVAILABLE), true) 293 @$(ECHO) " SPONSORS_TOPDIR = $(SPONSORS_TOPDIR)" >> $(MESSAGE_FILE) 294 endif 295 @$(ECHO) "" >> $(MESSAGE_FILE) 296 ifneq ($(SKIP_COMPARE_IMAGES), true) 297 @$(ECHO) "External File/Binary Locations:" >> $(MESSAGE_FILE) 298 @$(ECHO) " PREVIOUS_JRE_BUNDLE = $(PREVIOUS_JRE_BUNDLE) " >> $(MESSAGE_FILE) 299 @$(ECHO) " PREVIOUS_JDK_BUNDLE = $(PREVIOUS_JDK_BUNDLE) " >> $(MESSAGE_FILE) 300 @$(ECHO) "" >> $(MESSAGE_FILE) 301 endif 302 @$(ECHO) "Build Directives:" >> $(MESSAGE_FILE) 303 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true) 304 @$(ECHO) " BUILD_LANGTOOLS = $(BUILD_LANGTOOLS) " >> $(MESSAGE_FILE) 305 endif 306 ifeq ($(JAXP_SRC_AVAILABLE), true) 307 @$(ECHO) " BUILD_JAXP = $(BUILD_JAXP) " >> $(MESSAGE_FILE) 308 endif 309 ifeq ($(JAXWS_SRC_AVAILABLE), true) 310 @$(ECHO) " BUILD_JAXWS = $(BUILD_JAXWS) " >> $(MESSAGE_FILE) 311 endif 312 ifeq ($(CORBA_SRC_AVAILABLE), true) 313 @$(ECHO) " BUILD_CORBA = $(BUILD_CORBA) " >> $(MESSAGE_FILE) 314 endif 315 ifeq ($(HOTSPOT_SRC_AVAILABLE), true) 316 @$(ECHO) " BUILD_HOTSPOT = $(BUILD_HOTSPOT) " >> $(MESSAGE_FILE) 317 endif 318 ifeq ($(BDB_SRC_AVAILABLE), true) 319 @$(ECHO) " BUILD_BDB = $(BUILD_BDB) " >> $(MESSAGE_FILE) 320 endif 321 ifeq ($(JDK_SRC_AVAILABLE), true) 322 @$(ECHO) " BUILD_JDK = $(BUILD_JDK) " >> $(MESSAGE_FILE) 323 endif 324 ifeq ($(DEPLOY_SRC_AVAILABLE), true) 325 @$(ECHO) " BUILD_DEPLOY = $(BUILD_DEPLOY) " >> $(MESSAGE_FILE) 326 endif 327 ifeq ($(INSTALL_SRC_AVAILABLE), true) 328 @$(ECHO) " BUILD_INSTALL = $(BUILD_INSTALL) " >> $(MESSAGE_FILE) 329 endif 330 ifeq ($(SPONSORS_SRC_AVAILABLE), true) 331 @$(ECHO) " BUILD_SPONSORS = $(BUILD_SPONSORS) " >> $(MESSAGE_FILE) 332 endif 333 @$(ECHO) " DEBUG_CLASSFILES = $(DEBUG_CLASSFILES) " >> $(MESSAGE_FILE) 334 @$(ECHO) " DEBUG_BINARIES = $(DEBUG_BINARIES) " >> $(MESSAGE_FILE) 335 @$(ECHO) "" >> $(MESSAGE_FILE) 336 337 .PHONY: sanity settings pre-sanity insane \ 338 post-sanity post-sanity-hotspot post-sanity-jdk \ 339 post-sanity-install post-sanity-deploy \ 340 environment |