J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 1 | # |
Kelly O'Hair | 136614e | 2010-05-25 15:51:26 -0700 | [diff] [blame] | 2 | # Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | # |
| 5 | # This code is free software; you can redistribute it and/or modify it |
| 6 | # under the terms of the GNU General Public License version 2 only, as |
Kelly O'Hair | 136614e | 2010-05-25 15:51:26 -0700 | [diff] [blame] | 7 | # published by the Free Software Foundation. Oracle designates this |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 8 | # particular file as subject to the "Classpath" exception as provided |
Kelly O'Hair | 136614e | 2010-05-25 15:51:26 -0700 | [diff] [blame] | 9 | # by Oracle in the LICENSE file that accompanied this code. |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 10 | # |
| 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | # version 2 for more details (a copy is included in the LICENSE file that |
| 15 | # accompanied this code). |
| 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 | # |
Kelly O'Hair | 136614e | 2010-05-25 15:51:26 -0700 | [diff] [blame] | 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. |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 24 | # |
| 25 | |
| 26 | ################################################################ |
| 27 | # JDK TARGETS |
| 28 | ################################################################ |
| 29 | |
| 30 | JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX) |
| 31 | |
| 32 | # NO_IMAGES may be set in conjunction with DEV_ONLY |
Kelly O'Hair | d0c9ba3 | 2009-11-18 16:41:09 -0800 | [diff] [blame] | 33 | IMAGES_TARGET = images |
| 34 | ifdef DEV_ONLY |
| 35 | ifdef NO_IMAGES |
| 36 | IMAGES_TARGET = |
| 37 | endif |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 38 | endif |
| 39 | |
Kelly O'Hair | d0c9ba3 | 2009-11-18 16:41:09 -0800 | [diff] [blame] | 40 | # GENERATE_DOCS determines if we ask for the docs target |
| 41 | DOCS_TARGET = docs |
| 42 | ifeq ($(GENERATE_DOCS),false) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 43 | DOCS_TARGET = |
| 44 | endif |
Kelly O'Hair | d0c9ba3 | 2009-11-18 16:41:09 -0800 | [diff] [blame] | 45 | |
| 46 | JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 47 | |
| 48 | JDK_CLOBBER_TARGETS = clobber |
| 49 | |
| 50 | JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
| 51 | ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) |
| 52 | |
| 53 | ifeq ($(BUILD_LANGTOOLS), true) |
| 54 | JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
| 55 | endif |
| 56 | ifeq ($(BUILD_CORBA), true) |
| 57 | JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST) |
| 58 | endif |
| 59 | ifeq ($(BUILD_JAXP), true) |
| 60 | JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST) |
| 61 | endif |
| 62 | ifeq ($(BUILD_JAXWS), true) |
| 63 | JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST) |
| 64 | endif |
| 65 | |
| 66 | ifeq ($(BUILD_HOTSPOT), true) |
| 67 | JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import |
| 68 | endif |
| 69 | |
| 70 | JDK_BUILD_ARGUMENTS += \ |
| 71 | BUILD_HOTSPOT=$(BUILD_HOTSPOT) |
| 72 | |
| 73 | |
| 74 | $(JDK_JAVA_EXE):: jdk-build |
| 75 | |
| 76 | jdk: jdk-build |
| 77 | jdk-build: |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 78 | @$(call MakeStart, jdk, $(JDK_BUILD_TARGETS)) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 79 | ( $(CD) $(JDK_TOPDIR)/make && \ |
| 80 | $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 81 | @$(call MakeFinish, jdk, $(JDK_BUILD_TARGETS)) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 82 | |
| 83 | jdk-clobber:: |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 84 | @$(call MakeStart, jdk, $(JDK_CLOBBER_TARGETS)) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 85 | ( $(CD) $(JDK_TOPDIR)/make && \ |
| 86 | $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 87 | @$(call MakeFinish, jdk, $(JDK_CLOBBER_TARGETS)) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 88 | |
| 89 | jdk-sanity:: |
Kelly O'Hair | 614df19 | 2009-01-31 15:26:34 -0800 | [diff] [blame] | 90 | ( $(CD) $(JDK_TOPDIR)/make && \ |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 91 | $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; ) |
| 92 | |
| 93 | compare-images: compare-image |
| 94 | compare-image: |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 95 | @$(call MakeStart, jdk, compare-image) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 96 | ( $(CD) $(JDK_TOPDIR)/make && \ |
| 97 | $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image ) |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 98 | @$(call MakeFinish, jdk, compare-image) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 99 | |
| 100 | compare-images-clobber: compare-image-clobber |
| 101 | compare-image-clobber: |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 102 | @$(call MakeStart, jdk, compare-image-clobber) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 103 | ( $(CD) $(JDK_TOPDIR)/make && \ |
| 104 | $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber ) |
Kelly O'Hair | 0c40165 | 2009-09-03 17:44:28 -0700 | [diff] [blame] | 105 | @$(call MakeFinish, jdk, compare-image-clobber) |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 106 | |
| 107 | .PHONY: jdk jdk-build jdk-clobber jdk-sanity |
| 108 | |