2012-04-10 15:22:03 +00:00
|
|
|
#
|
2013-04-29 11:40:04 +00:00
|
|
|
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
|
2012-04-10 15:22:03 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDEDIR = $(JDK_OUTPUTDIR)/include
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/$(OPENJDK_TARGET_OS)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2013-10-10 13:06:21 +00:00
|
|
|
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/win32
|
2012-07-03 23:10:44 +00:00
|
|
|
else ifeq ($(OPENJDK_TARGET_OS), macosx)
|
2013-10-10 13:06:21 +00:00
|
|
|
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/darwin
|
2012-06-08 03:40:50 +00:00
|
|
|
endif
|
|
|
|
|
2012-04-10 15:22:03 +00:00
|
|
|
#
|
|
|
|
# Copy exported header files to outputdir.
|
|
|
|
#
|
2013-10-10 13:06:21 +00:00
|
|
|
H_TARGET_FILES = $(INCLUDEDIR)/jdwpTransport.h \
|
|
|
|
$(INCLUDEDIR)/jni.h \
|
|
|
|
$(INCLUDEDIR)/jvmti.h \
|
|
|
|
$(INCLUDEDIR)/jvmticmlr.h \
|
|
|
|
$(INCLUDEDIR)/classfile_constants.h \
|
|
|
|
$(INCLUDEDIR)/jawt.h \
|
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \
|
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/jawt_md.h
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
$(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2013-10-25 00:46:23 +00:00
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_EXPORT_DIR)/javavm/export/%.h
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES = $(H_TARGET_FILES)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2013-01-18 19:33:31 +00:00
|
|
|
ifndef OPENJDK
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2013-01-18 19:33:31 +00:00
|
|
|
COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \
|
2013-10-10 13:06:21 +00:00
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \
|
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \
|
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.c \
|
|
|
|
$(JDK_OUTPUTDIR)/lib/accessibility.properties
|
2013-01-18 19:33:31 +00:00
|
|
|
|
|
|
|
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/%: \
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/%
|
|
|
|
$(install-file)
|
2013-01-18 19:33:31 +00:00
|
|
|
|
|
|
|
$(JDK_OUTPUTDIR)/lib/accessibility.properties: \
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/accessibility.properties
|
|
|
|
$(install-file)
|
2013-01-18 19:33:31 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
2013-01-18 19:33:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-04-10 15:22:03 +00:00
|
|
|
LIBDIR = $(JDK_OUTPUTDIR)/lib
|
|
|
|
|
|
|
|
MGMT_LIBDIR = $(LIBDIR)/management
|
|
|
|
MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management
|
|
|
|
MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*)
|
|
|
|
MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES))
|
|
|
|
|
|
|
|
$(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
$(CHMOD) 644 $@
|
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
# this file has different permissions...don't know why...
|
|
|
|
$(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-07-03 23:10:44 +00:00
|
|
|
$(CHMOD) 644 $@
|
|
|
|
|
2012-04-10 15:22:03 +00:00
|
|
|
$(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/%
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
$(CHMOD) 444 $@
|
|
|
|
|
|
|
|
COPY_FILES += $(MGMT_TARGET_FILES)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib
|
|
|
|
|
|
|
|
$(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/logging.properties
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
#
|
|
|
|
# Copy property files from sun/print to LIBDIR
|
|
|
|
#
|
|
|
|
PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print
|
|
|
|
PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*)
|
|
|
|
PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS))
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
$(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/%
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
#
|
|
|
|
# Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR
|
|
|
|
#
|
2012-07-03 23:10:44 +00:00
|
|
|
ifneq ($(OPENJDK_TARGET_OS), macosx)
|
2013-10-10 13:06:21 +00:00
|
|
|
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
|
2012-07-03 23:10:44 +00:00
|
|
|
else
|
2013-10-10 13:06:21 +00:00
|
|
|
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
|
2012-07-03 23:10:44 +00:00
|
|
|
endif
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
$(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/flavormap.properties
|
|
|
|
|
|
|
|
CURSORS_DEST_DIR = $(LIBDIR)/images/cursors
|
2012-09-18 18:29:24 +00:00
|
|
|
CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
$(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties
|
|
|
|
|
|
|
|
CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
|
2012-07-03 23:10:44 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2013-10-10 13:06:21 +00:00
|
|
|
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
|
2012-07-03 23:10:44 +00:00
|
|
|
else # OPENJDK_TARGET_OS
|
2013-10-10 13:06:21 +00:00
|
|
|
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
|
2012-07-03 23:10:44 +00:00
|
|
|
endif # OPENJDK_TARGET_OS
|
2013-10-10 13:06:21 +00:00
|
|
|
CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
$(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/%
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(CURSORS_TARGET_FILES)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
CONTENT_TYPES_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
$(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/content-types.properties
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib
|
|
|
|
|
|
|
|
$(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/calendars.properties
|
|
|
|
|
2013-04-12 14:57:35 +00:00
|
|
|
$(LIBDIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties
|
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(RM) $@
|
|
|
|
$(CP) $< $@
|
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/hijrah-config-umalqura.properties
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
##########################################################################################
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(LIBDIR)/tzmappings
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-04-10 15:22:03 +00:00
|
|
|
ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm
|
|
|
|
|
|
|
|
ifdef OPENJDK
|
2013-10-10 13:06:21 +00:00
|
|
|
ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms
|
2013-06-10 09:33:50 +00:00
|
|
|
else
|
2013-10-10 13:06:21 +00:00
|
|
|
ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
|
2012-04-10 15:22:03 +00:00
|
|
|
endif
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ICCPROFILE_SRCS := $(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
|
|
|
|
ICCPROFILE_TARGET_FILES := $(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
$(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-04-10 15:22:03 +00:00
|
|
|
$(CHMOD) 444 $@
|
|
|
|
|
|
|
|
COPY_FILES += $(ICCPROFILE_TARGET_FILES)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2013-10-23 11:06:37 +00:00
|
|
|
ifneq ($(FREETYPE_BUNDLE_LIB_PATH), )
|
|
|
|
# We need to bundle the freetype library, so it will be available at runtime as well as link time.
|
|
|
|
#
|
|
|
|
# NB: Default freetype build system uses -h linker option and
|
|
|
|
# result .so contains hardcoded library name that is later
|
|
|
|
# used for adding dependencies to other objects
|
|
|
|
# (e.g. libfontmanager.so).
|
|
|
|
#
|
|
|
|
# It is not obvious how to extract that hardcoded name (libfreetype.so.6)
|
|
|
|
# without overcomplicating logic here.
|
|
|
|
# To workaround this we hardcode .6 suffix for now.
|
|
|
|
#
|
|
|
|
# Note that .so.6 library will not be found by System.loadLibrary()
|
|
|
|
# but fortunately we need to load FreeType library explicitly
|
|
|
|
# on windows only
|
|
|
|
#
|
|
|
|
#TODO: rework this to avoid hardcoding library name in the makefile
|
|
|
|
#
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2013-10-23 11:06:37 +00:00
|
|
|
FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype)
|
2013-10-10 13:06:21 +00:00
|
|
|
else
|
2013-10-23 11:06:37 +00:00
|
|
|
FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2013-10-23 11:06:37 +00:00
|
|
|
$(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
|
|
|
|
$(CP) $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_BUILD_OS), windows)
|
|
|
|
$(CHMOD) +rx $@
|
|
|
|
endif
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2013-10-23 11:06:37 +00:00
|
|
|
COPY_FILES += $(FREETYPE_TARGET_LIB)
|
2012-04-10 15:22:03 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-10-26 21:23:29 +00:00
|
|
|
# Copy msvcrXX.dll on windows
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
|
|
|
|
# Chmod to avoid permission issues if bundles are unpacked on unix platforms.
|
|
|
|
$(MSVCR_TARGET): $(MSVCR_DLL)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2013-01-29 15:35:24 +00:00
|
|
|
$(CHMOD) a+rx $@
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(MSVCR_TARGET)
|
2012-04-10 15:22:03 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
HPROF_SRC = $(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(LIBDIR)/jvm.hprof.txt
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# How to install jvm.cfg.
|
|
|
|
#
|
|
|
|
ifeq ($(JVM_VARIANT_ZERO), true)
|
2013-10-10 13:06:21 +00:00
|
|
|
JVMCFG_ARCH := zero
|
2012-06-08 03:40:50 +00:00
|
|
|
else
|
2013-10-10 13:06:21 +00:00
|
|
|
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
|
2012-06-08 03:40:50 +00:00
|
|
|
endif
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
2012-06-08 03:40:50 +00:00
|
|
|
JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
|
|
|
|
else
|
2012-09-18 18:29:24 +00:00
|
|
|
JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
|
2012-06-08 03:40:50 +00:00
|
|
|
endif
|
2012-09-18 18:29:24 +00:00
|
|
|
JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
|
2012-06-08 03:40:50 +00:00
|
|
|
JVMCFG := $(JVMCFG_DIR)/jvm.cfg
|
|
|
|
|
2013-08-22 20:00:13 +00:00
|
|
|
# To do: should this also support -zeroshark?
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
|
2013-08-22 20:00:13 +00:00
|
|
|
COPY_JVM_CFG_FILE := true
|
|
|
|
else
|
2013-04-29 11:40:04 +00:00
|
|
|
# On 32-bit machines we have three potential VMs: client, server and minimal.
|
|
|
|
# Historically we usually have both client and server and so that is what the
|
|
|
|
# committed jvm.cfg expects (including platform specific ergonomics switches
|
|
|
|
# to decide whether to use client or server by default). So when we have anything
|
|
|
|
# other than client and server we need to define a new jvm.cfg file.
|
|
|
|
# The main problem is deciding whether to use aliases for the VMs that are not
|
|
|
|
# present and the current position is that we add aliases for client and server, but
|
|
|
|
# not for minimal.
|
2013-10-10 13:06:21 +00:00
|
|
|
CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
|
2013-04-29 11:40:04 +00:00
|
|
|
ifeq ($(CLIENT_AND_SERVER), true)
|
2013-08-22 20:00:13 +00:00
|
|
|
COPY_JVM_CFG_FILE := true
|
|
|
|
else
|
|
|
|
# For zero, the default jvm.cfg file is sufficient
|
|
|
|
ifeq ($(JVM_VARIANT_ZERO), true)
|
|
|
|
COPY_JVM_CFG_FILE := true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(COPY_JVM_CFG_FILE), true)
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JVMCFG): $(JVMCFG_SRC)
|
2013-04-29 11:40:04 +00:00
|
|
|
$(call install-file)
|
2013-08-22 20:00:13 +00:00
|
|
|
else
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JVMCFG):
|
2013-04-29 11:40:04 +00:00
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(RM) $(@)
|
2013-10-10 13:06:21 +00:00
|
|
|
# Now check for other permutations
|
|
|
|
ifeq ($(JVM_VARIANT_SERVER), true)
|
|
|
|
$(PRINTF) "-server KNOWN\n">>$(@)
|
|
|
|
$(PRINTF) "-client ALIASED_TO -server\n">>$(@)
|
|
|
|
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
2013-04-29 11:40:04 +00:00
|
|
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifeq ($(JVM_VARIANT_CLIENT), true)
|
2013-04-29 11:40:04 +00:00
|
|
|
$(PRINTF) "-client KNOWN\n">>$(@)
|
|
|
|
$(PRINTF) "-server ALIASED_TO -client\n">>$(@)
|
|
|
|
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
2013-10-10 13:06:21 +00:00
|
|
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
2013-04-29 11:40:04 +00:00
|
|
|
endif
|
2013-10-10 13:06:21 +00:00
|
|
|
else
|
2013-04-29 11:40:04 +00:00
|
|
|
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
2013-10-10 13:06:21 +00:00
|
|
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
|
|
|
$(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
|
|
|
|
$(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
|
2013-04-29 11:40:04 +00:00
|
|
|
endif
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
2012-06-08 03:40:50 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
COPY_FILES += $(JVMCFG)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-12-05 12:20:00 +00:00
|
|
|
PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
|
2012-06-08 03:40:50 +00:00
|
|
|
PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
|
|
|
|
|
2013-10-11 12:43:07 +00:00
|
|
|
ifndef OPENJDK
|
|
|
|
|
|
|
|
RESTRICTED_PKGS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/restricted.pkgs
|
|
|
|
RESTRICTED_PKGS := $(shell $(CAT) $(RESTRICTED_PKGS_SRC) | $(TR) "\n" " ")
|
|
|
|
|
|
|
|
$(PROPS_DST): $(PROPS_SRC)
|
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(TOOL_ADDTORESTRICTEDPKGS) $^ $@.tmp $(RESTRICTED_PKGS)
|
|
|
|
$(MV) $@.tmp $@
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
$(PROPS_DST): $(PROPS_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-11 12:43:07 +00:00
|
|
|
endif
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
COPY_FILES += $(PROPS_DST)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy
|
|
|
|
POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy
|
|
|
|
|
|
|
|
$(POLICY_DST): $(POLICY_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(POLICY_DST)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
CACERTS_SRC := $(CACERTS_FILE)
|
|
|
|
CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts
|
|
|
|
|
|
|
|
$(CACERTS_DST): $(CACERTS_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(CACERTS_DST)
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2013-09-18 13:37:45 +00:00
|
|
|
BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/src/share/lib/security/blacklisted.certs
|
|
|
|
BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
ifndef OPENJDK
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
|
|
|
|
BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs)
|
2013-09-18 13:37:45 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
|
|
|
|
TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(BLACKLIST_DST): $(BLACKLIST_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(BLACKLIST_DST)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(TRUSTEDLIBS_DST)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2013-09-18 13:37:45 +00:00
|
|
|
$(BLACKLISTED_CERTS_DST): $(BLACKLISTED_CERTS_SRC)
|
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(CAT) $^ | $(SED) '/^$$/d' | $(SORT) | $(UNIQ) > $@.tmp
|
|
|
|
$(GREP) -i Algorithm $@.tmp > $@
|
|
|
|
if [ `$(SED) -n -e "$$=" $@` != 1 ]; then \
|
|
|
|
$(ECHO) "Different algorithms defined in $^"; \
|
|
|
|
$(RM) $@ $@.tmp; \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
$(GREP) -iv Algorithm $@.tmp >> $@
|
|
|
|
$(RM) $@.tmp
|
|
|
|
|
|
|
|
COPY_FILES += $(BLACKLISTED_CERTS_DST)
|
|
|
|
|
2012-06-08 03:40:50 +00:00
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
ifndef OPENJDK
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
|
|
|
|
SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
|
|
|
|
SHARED_FONTS_FILES := \
|
|
|
|
LucidaTypewriterRegular.ttf \
|
|
|
|
LucidaTypewriterBold.ttf \
|
|
|
|
LucidaBrightRegular.ttf \
|
|
|
|
LucidaBrightDemiBold.ttf \
|
|
|
|
LucidaBrightItalic.ttf \
|
|
|
|
LucidaBrightDemiItalic.ttf \
|
|
|
|
LucidaSansRegular.ttf \
|
|
|
|
LucidaSansDemiBold.ttf \
|
|
|
|
|
|
|
|
SHARED_FONTS_SRC := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_SRC_DIR)/$(F))
|
|
|
|
SHARED_FONTS_DST := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_DST_DIR)/$(F))
|
|
|
|
|
|
|
|
$(SHARED_FONTS_DST_DIR)/%.ttf: $(SHARED_FONTS_SRC_DIR)/%.ttf
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(SHARED_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(SHARED_FONTS_DST)
|
2012-09-18 18:29:24 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifneq ($(OPENJDK_TARGET_OS), windows)
|
2012-09-18 18:29:24 +00:00
|
|
|
COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), linux)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
# The oblique fonts are only needed/wanted on Linux.
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
|
|
|
|
OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
|
|
|
|
OBL_FONTS_FILES := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
|
|
|
|
LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
OBL_FONTS_SRC := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_SRC_DIR)/$(F))
|
|
|
|
OBL_FONTS_DST := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_DST_DIR)/$(F))
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(OBL_FONTS_DST_DIR)/%.ttf: $(OBL_FONTS_SRC_DIR)/%.ttf
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(OBL_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
endif # linux
|
2012-06-08 03:40:50 +00:00
|
|
|
endif # OPENJDK
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
ifndef OPENJDK
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
#
|
|
|
|
# Solaris X11 Direct Graphics Access library
|
|
|
|
#
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
_DGALIBS_sparc = \
|
|
|
|
libxinerama.so \
|
|
|
|
libjdgaSUNWcg6.so \
|
|
|
|
libjdgaSUNWffb.so \
|
|
|
|
libjdgaSUNWm64.so \
|
|
|
|
libjdgaSUNWafb.so
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
_DGALIBS_sparcv9 = \
|
|
|
|
libxinerama.so \
|
|
|
|
libjdgaSUNWcg6.so \
|
|
|
|
libjdgaSUNWffb.so \
|
|
|
|
libjdgaSUNWm64.so \
|
|
|
|
libjdgaSUNWafb.so
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
_DGALIBS_i586 = # no i586 library yet
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
_DGALIBS_amd64 = # no amd64 library yet
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-07-03 23:10:44 +00:00
|
|
|
$(CHMOD) 755 $@
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-07-03 23:10:44 +00:00
|
|
|
$(CHMOD) 755 $@
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
|
2012-06-08 03:40:50 +00:00
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(RM) $@
|
2012-10-26 21:23:29 +00:00
|
|
|
$(LN) -s $(<F) $@
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(DGALIBS)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2012-07-03 23:10:44 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), solaris)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
|
|
|
|
SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(SUNPKCS11_CFG_DST): $(SUNPKCS11_CFG_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(SUNPKCS11_CFG_DST)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
|
|
|
ifndef OPENJDK
|
2013-10-10 13:06:21 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), solaris)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
|
|
|
|
UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(UCRYPTO_CFG_DST): $(UCRYPTO_CFG_SRC)
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
COPY_FILES += $(UCRYPTO_CFG_DST)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
endif
|
2012-06-08 03:40:50 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties
|
2013-04-05 07:39:10 +00:00
|
|
|
$(call install-file)
|
2012-06-08 03:40:50 +00:00
|
|
|
|
|
|
|
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties
|
|
|
|
|
|
|
|
##########################################################################################
|
2013-06-10 09:33:50 +00:00
|
|
|
|
2013-06-25 07:25:16 +00:00
|
|
|
-include $(CUSTOM_MAKE_DIR)/CopyFiles.gmk
|