4632N/A#
4632N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4632N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632N/A#
4632N/A# This code is free software; you can redistribute it and/or modify it
4632N/A# under the terms of the GNU General Public License version 2 only, as
4632N/A# published by the Free Software Foundation. Oracle designates this
4632N/A# particular file as subject to the "Classpath" exception as provided
4632N/A# by Oracle in the LICENSE file that accompanied this code.
4632N/A#
4632N/A# This code is distributed in the hope that it will be useful, but WITHOUT
4632N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4632N/A# version 2 for more details (a copy is included in the LICENSE file that
4632N/A# accompanied this code).
4632N/A#
4632N/A# You should have received a copy of the GNU General Public License version
4632N/A# 2 along with this work; if not, write to the Free Software Foundation,
4632N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4632N/A#
4632N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4632N/A# or visit www.oracle.com if you need additional information or have any
4632N/A# questions.
4632N/A#
4632N/A
4632N/AMANBASEDIRS=$(JDK_TOPDIR)/src/bsd/doc $(IMPORTDOCDIR)
4632N/AMAN1SUBDIR = man
4632N/AJA_DIRNAME=ja_JP.UTF-8
4632N/A
4632N/A# Defines the release targets for Mac OS X build products
4632N/A
4981N/AJDK_BUNDLE_DIR = $(ABS_OUTPUTDIR)/j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
4981N/AJRE_BUNDLE_DIR = $(ABS_OUTPUTDIR)/j2re-bundle/jre$(JDK_VERSION).jre/Contents
5847N/AJDK_SERVER_BUNDLE_DIR = $(ABS_OUTPUTDIR)/j2sdk-server-bundle/jdk$(JDK_VERSION).jdk/Contents
5847N/AJDK_SERVER_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2sdk-server-image
4632N/A
4632N/AMACOSX_SRC = $(JDK_TOPDIR)/src/macosx
4632N/A
4632N/ABUNDLE_ID ?= net.java.openjdk
4959N/ABUNDLE_ID_JRE ?= $(BUNDLE_ID).jre
4959N/ABUNDLE_ID_JDK ?= $(BUNDLE_ID).jdk
4632N/A
4797N/ABUNDLE_NAME ?= OpenJDK $(JDK_MINOR_VERSION)
4632N/ABUNDLE_NAME_JRE ?= $(BUNDLE_NAME)
4632N/ABUNDLE_NAME_JDK ?= $(BUNDLE_NAME)
4632N/A
4797N/ABUNDLE_INFO ?= OpenJDK ($(JDK_VERSION))
4632N/ABUNDLE_INFO_JRE ?= $(BUNDLE_INFO)
4632N/ABUNDLE_INFO_JDK ?= $(BUNDLE_INFO)
4632N/A
4797N/ABUNDLE_PLATFORM_VERSION ?= $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION)
4797N/ABUNDLE_VERSION ?= $(JDK_VERSION)
4632N/ABUNDLE_VENDOR ?= UNDEFINED
4632N/A
4632N/Ajre-bundle-setup:
4632N/A $(RM) -r $(JRE_BUNDLE_DIR)
4632N/A
4632N/Ajdk-bundle-setup:
4632N/A $(RM) -r $(JDK_BUNDLE_DIR)
4632N/A
4632N/Ajre-bundle-files:
4632N/A $(MKDIR) -p $(JRE_BUNDLE_DIR)/MacOS
4632N/A ln -s ../Home/lib/jli/libjli.dylib $(JRE_BUNDLE_DIR)/MacOS/
4797N/A $(CP) -r $(JRE_IMAGE_DIR) $(JRE_BUNDLE_DIR)/Home
4632N/A $(SED) -e "s/@@ID@@/$(BUNDLE_ID_JRE)/g" -e "s/@@NAME@@/$(BUNDLE_NAME_JRE)/g" -e "s/@@INFO@@/$(BUNDLE_INFO_JRE)/g" -e "s/@@PLATFORM_VERSION@@/$(BUNDLE_PLATFORM_VERSION)/g" -e "s/@@VERSION@@/$(BUNDLE_VERSION)/g" -e "s/@@VENDOR@@/$(BUNDLE_VENDOR)/g" < $(MACOSX_SRC)/bundle/JRE-Info.plist > $(JRE_BUNDLE_DIR)/Info.plist
4632N/A /usr/bin/SetFile -a B $(JRE_BUNDLE_DIR)/../
4632N/A
4632N/Ajdk-bundle-files:
4632N/A $(MKDIR) -p $(JDK_BUNDLE_DIR)/MacOS
4632N/A ln -s ../Home/jre/lib/jli/libjli.dylib $(JDK_BUNDLE_DIR)/MacOS/
4797N/A $(CP) -r $(JDK_IMAGE_DIR) $(JDK_BUNDLE_DIR)/Home
4632N/A $(SED) -e "s/@@ID@@/$(BUNDLE_ID_JDK)/g" -e "s/@@NAME@@/$(BUNDLE_NAME_JDK)/g" -e "s/@@INFO@@/$(BUNDLE_INFO_JDK)/g" -e "s/@@PLATFORM_VERSION@@/$(BUNDLE_PLATFORM_VERSION)/g" -e "s/@@VERSION@@/$(BUNDLE_VERSION)/g" -e "s/@@VENDOR@@/$(BUNDLE_VENDOR)/g" < $(MACOSX_SRC)/bundle/JDK-Info.plist > $(JDK_BUNDLE_DIR)/Info.plist
4632N/A /usr/bin/SetFile -a B $(JDK_BUNDLE_DIR)/../
4632N/A
5847N/Ajdk-server-bundle-files:
5847N/A $(MKDIR) -p $(JDK_SERVER_BUNDLE_DIR)/MacOS
5847N/A ln -s ../Home/jre/lib/jli/libjli.dylib $(JDK_SERVER_BUNDLE_DIR)/MacOS/
5847N/A $(CP) -r $(JDK_IMAGE_DIR) $(JDK_SERVER_BUNDLE_DIR)/Home
5847N/A $(SED) -e "s/@@ID@@/$(BUNDLE_ID_JDK)/g" -e "s/@@NAME@@/$(BUNDE_NAME_JDK)/g" -e "s/@@INFO@@/$(BUNDLE_INFO_JDK)/g" -e "s/@@PLATFORM_VERSION@@/$(BUNDLE_PLATFORM_VERSION)/g" -e "s/@@VERSION@@/$(BUNDLE_VERSION)/g" -e "s/@@VENDOR@@/$(BUNDLE_VENDOR)/g" < $(MACOSX_SRC)/bundle/JDK-Info.plist > $(JDK_SERVER_BUNDLE_DIR)/Info.plist
5847N/A /usr/bin/SetFile -a B $(JDK_SERVER_BUNDLE_DIR)/../
5847N/A
5847N/AEXTRA_IMAGE_TARGETS += jre-bundle-setup jdk-bundle-setup jre-bundle-files jdk-bundle-files jdk-server-bundle-files
4632N/A
4632N/A.PHONY: $(EXTRA_JRE_TARGETS) $(EXTRA_IMAGE_TARGETS)