duke@2: # dcubed@423: # Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. duke@2: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@2: # duke@2: # This code is free software; you can redistribute it and/or modify it duke@2: # under the terms of the GNU General Public License version 2 only, as ohair@182: # published by the Free Software Foundation. Oracle designates this duke@2: # particular file as subject to the "Classpath" exception as provided ohair@182: # by Oracle in the LICENSE file that accompanied this code. duke@2: # duke@2: # This code is distributed in the hope that it will be useful, but WITHOUT duke@2: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@2: # version 2 for more details (a copy is included in the LICENSE file that duke@2: # accompanied this code). duke@2: # duke@2: # You should have received a copy of the GNU General Public License version duke@2: # 2 along with this work; if not, write to the Free Software Foundation, duke@2: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@2: # ohair@182: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@182: # or visit www.oracle.com if you need additional information or have any ohair@182: # questions. duke@2: # duke@2: duke@2: ################################################################ duke@2: # JDK TARGETS duke@2: ################################################################ duke@2: duke@2: JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX) duke@2: duke@2: # NO_IMAGES may be set in conjunction with DEV_ONLY ohair@144: IMAGES_TARGET = images ohair@144: ifdef DEV_ONLY ohair@144: ifdef NO_IMAGES ohair@144: IMAGES_TARGET = ohair@144: endif duke@2: endif duke@2: ohair@144: # GENERATE_DOCS determines if we ask for the docs target ohair@144: DOCS_TARGET = docs ohair@144: ifeq ($(GENERATE_DOCS),false) duke@2: DOCS_TARGET = duke@2: endif ohair@144: ohair@144: JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET) duke@2: duke@2: JDK_CLOBBER_TARGETS = clobber duke@2: duke@2: JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ duke@2: ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) duke@2: duke@2: ifeq ($(BUILD_LANGTOOLS), true) duke@2: JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) duke@2: endif duke@2: ifeq ($(BUILD_CORBA), true) duke@2: JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST) duke@2: endif duke@2: ifeq ($(BUILD_JAXP), true) duke@2: JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST) duke@2: endif duke@2: ifeq ($(BUILD_JAXWS), true) duke@2: JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST) duke@2: endif jjg@645: ifeq ($(BUILD_NASHORN), true) jjg@645: JDK_BUILD_ARGUMENTS += ALT_NASHORN_DIST=$(ABS_NASHORN_DIST) jjg@645: endif duke@2: duke@2: ifeq ($(BUILD_HOTSPOT), true) duke@2: JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import duke@2: endif duke@2: duke@2: JDK_BUILD_ARGUMENTS += \ duke@2: BUILD_HOTSPOT=$(BUILD_HOTSPOT) duke@2: dcubed@423: # Move to COMMON_BUILD_ARGUMENTS when all repos support dcubed@423: # FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES: dcubed@423: ifdef FULL_DEBUG_SYMBOLS dcubed@423: JDK_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS) dcubed@423: endif dcubed@423: dcubed@423: ifdef ZIP_DEBUGINFO_FILES dcubed@423: JDK_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)" dcubed@423: endif dcubed@423: duke@2: duke@2: $(JDK_JAVA_EXE):: jdk-build duke@2: duke@2: jdk: jdk-build duke@2: jdk-build: ohrstrom@313: @$(call MakeStart,jdk,$(JDK_BUILD_TARGETS)) duke@2: ( $(CD) $(JDK_TOPDIR)/make && \ duke@2: $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) ohrstrom@313: @$(call MakeFinish,jdk,$(JDK_BUILD_TARGETS)) duke@2: duke@2: jdk-clobber:: ohrstrom@313: @$(call MakeStart,jdk,$(JDK_CLOBBER_TARGETS)) duke@2: ( $(CD) $(JDK_TOPDIR)/make && \ duke@2: $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) ohrstrom@313: @$(call MakeFinish,jdk,$(JDK_CLOBBER_TARGETS)) duke@2: duke@2: jdk-sanity:: ohair@62: ( $(CD) $(JDK_TOPDIR)/make && \ duke@2: $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; ) duke@2: duke@2: compare-images: compare-image duke@2: compare-image: ohrstrom@313: @$(call MakeStart,jdk,compare-image) duke@2: ( $(CD) $(JDK_TOPDIR)/make && \ duke@2: $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image ) ohrstrom@313: @$(call MakeFinish,jdk,compare-image) duke@2: duke@2: compare-images-clobber: compare-image-clobber duke@2: compare-image-clobber: ohrstrom@313: @$(call MakeStart,jdk,compare-image-clobber) duke@2: ( $(CD) $(JDK_TOPDIR)/make && \ duke@2: $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber ) ohrstrom@313: @$(call MakeFinish,jdk,compare-image-clobber) duke@2: duke@2: .PHONY: jdk jdk-build jdk-clobber jdk-sanity duke@2: