Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 1 | # |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 2 | # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [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 |
| 7 | # published by the Free Software Foundation. Oracle designates this |
| 8 | # particular file as subject to the "Classpath" exception as provided |
| 9 | # by Oracle in the LICENSE file that accompanied this code. |
| 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 | # |
| 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 | INCLUDEDIR = $(JDK_OUTPUTDIR)/include |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 27 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 28 | OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/$(OPENJDK_TARGET_OS) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 29 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 30 | ifeq ($(OPENJDK_TARGET_OS), windows) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 31 | OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/win32 |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 32 | else ifeq ($(OPENJDK_TARGET_OS), macosx) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 33 | OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/darwin |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 34 | endif |
| 35 | |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 36 | # |
| 37 | # Copy exported header files to outputdir. |
| 38 | # |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 39 | H_TARGET_FILES = $(INCLUDEDIR)/jdwpTransport.h \ |
| 40 | $(INCLUDEDIR)/jni.h \ |
| 41 | $(INCLUDEDIR)/jvmti.h \ |
| 42 | $(INCLUDEDIR)/jvmticmlr.h \ |
| 43 | $(INCLUDEDIR)/classfile_constants.h \ |
| 44 | $(INCLUDEDIR)/jawt.h \ |
| 45 | $(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \ |
| 46 | $(OPENJDK_TARGET_OS_INCLUDE)/jawt_md.h |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 47 | |
| 48 | $(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 49 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 50 | |
David Dehaven | 93e44ca | 2013-10-24 20:46:23 -0400 | [diff] [blame] | 51 | $(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_EXPORT_DIR)/javavm/export/%.h |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 52 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 53 | |
| 54 | COPY_FILES = $(H_TARGET_FILES) |
| 55 | |
| 56 | ########################################################################################## |
| 57 | |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 58 | ifndef OPENJDK |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 59 | ifeq ($(OPENJDK_TARGET_OS), windows) |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 60 | COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \ |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 61 | $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \ |
| 62 | $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \ |
| 63 | $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.c \ |
| 64 | $(JDK_OUTPUTDIR)/lib/accessibility.properties |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 65 | |
| 66 | $(OPENJDK_TARGET_OS_INCLUDE)/bridge/%: \ |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 67 | $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/% |
| 68 | $(install-file) |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 69 | |
| 70 | $(JDK_OUTPUTDIR)/lib/accessibility.properties: \ |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 71 | $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/accessibility.properties |
| 72 | $(install-file) |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 73 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 74 | endif |
Ragini Prasad | 435bcab | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 75 | endif |
| 76 | |
| 77 | ########################################################################################## |
| 78 | |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 79 | LIBDIR = $(JDK_OUTPUTDIR)/lib |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 80 | |
| 81 | MGMT_LIBDIR = $(LIBDIR)/management |
| 82 | MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management |
| 83 | MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*) |
| 84 | MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES)) |
| 85 | |
| 86 | $(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 87 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 88 | $(CHMOD) 644 $@ |
| 89 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 90 | # this file has different permissions...don't know why... |
| 91 | $(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 92 | $(call install-file) |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 93 | $(CHMOD) 644 $@ |
| 94 | |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 95 | $(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/% |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 96 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 97 | $(CHMOD) 444 $@ |
| 98 | |
| 99 | COPY_FILES += $(MGMT_TARGET_FILES) |
| 100 | |
| 101 | ########################################################################################## |
| 102 | |
| 103 | LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib |
| 104 | |
| 105 | $(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 106 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 107 | |
| 108 | COPY_FILES += $(LIBDIR)/logging.properties |
| 109 | |
| 110 | ########################################################################################## |
| 111 | # |
| 112 | # Copy property files from sun/print to LIBDIR |
| 113 | # |
| 114 | PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print |
| 115 | PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*) |
| 116 | PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS)) |
| 117 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 118 | $(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/% |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 119 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 120 | |
| 121 | COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES) |
| 122 | |
| 123 | ########################################################################################## |
| 124 | # |
| 125 | # Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR |
| 126 | # |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 127 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 128 | OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 129 | else |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 130 | OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 131 | endif |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 132 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 133 | $(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 134 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 135 | |
| 136 | COPY_FILES += $(LIBDIR)/flavormap.properties |
| 137 | |
| 138 | CURSORS_DEST_DIR = $(LIBDIR)/images/cursors |
Kelly O'Hair | c363db8 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 139 | CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 140 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 141 | $(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 142 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 143 | |
| 144 | COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties |
| 145 | |
| 146 | CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 147 | ifeq ($(OPENJDK_TARGET_OS), windows) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 148 | CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif) |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 149 | else # OPENJDK_TARGET_OS |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 150 | CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif) |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 151 | endif # OPENJDK_TARGET_OS |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 152 | CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES)) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 153 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 154 | $(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/% |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 155 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 156 | |
| 157 | COPY_FILES += $(CURSORS_TARGET_FILES) |
| 158 | |
| 159 | ########################################################################################## |
| 160 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 161 | CONTENT_TYPES_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 162 | |
| 163 | $(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 164 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 165 | |
| 166 | COPY_FILES += $(LIBDIR)/content-types.properties |
| 167 | |
| 168 | ########################################################################################## |
| 169 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 170 | CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib |
| 171 | |
| 172 | $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 173 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 174 | |
| 175 | COPY_FILES += $(LIBDIR)/calendars.properties |
| 176 | |
Stephen Colebourne | 58af157 | 2013-04-12 07:57:35 -0700 | [diff] [blame] | 177 | $(LIBDIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties |
| 178 | $(MKDIR) -p $(@D) |
| 179 | $(RM) $@ |
| 180 | $(CP) $< $@ |
| 181 | |
| 182 | COPY_FILES += $(LIBDIR)/hijrah-config-umalqura.properties |
| 183 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 184 | ########################################################################################## |
| 185 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 186 | ifeq ($(OPENJDK_TARGET_OS), windows) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 187 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 188 | TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 189 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 190 | $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 191 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 192 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 193 | COPY_FILES += $(LIBDIR)/tzmappings |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 194 | |
| 195 | endif |
| 196 | |
| 197 | ########################################################################################## |
| 198 | |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 199 | ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm |
| 200 | |
| 201 | ifdef OPENJDK |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 202 | ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms |
Staffan Larsen | be7ed4c | 2013-06-10 11:33:50 +0200 | [diff] [blame] | 203 | else |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 204 | ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 205 | endif |
| 206 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 207 | ICCPROFILE_SRCS := $(wildcard $(ICCPROFILE_SRC_DIR)/*.pf) |
| 208 | ICCPROFILE_TARGET_FILES := $(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS)) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 209 | |
| 210 | $(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 211 | $(call install-file) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 212 | $(CHMOD) 444 $@ |
| 213 | |
| 214 | COPY_FILES += $(ICCPROFILE_TARGET_FILES) |
| 215 | |
| 216 | ########################################################################################## |
| 217 | |
Magnus Ihse Bursie | e4ff601 | 2013-10-23 13:06:37 +0200 | [diff] [blame] | 218 | ifneq ($(FREETYPE_BUNDLE_LIB_PATH), ) |
| 219 | # We need to bundle the freetype library, so it will be available at runtime as well as link time. |
| 220 | # |
| 221 | # NB: Default freetype build system uses -h linker option and |
| 222 | # result .so contains hardcoded library name that is later |
| 223 | # used for adding dependencies to other objects |
| 224 | # (e.g. libfontmanager.so). |
| 225 | # |
| 226 | # It is not obvious how to extract that hardcoded name (libfreetype.so.6) |
| 227 | # without overcomplicating logic here. |
| 228 | # To workaround this we hardcode .6 suffix for now. |
| 229 | # |
| 230 | # Note that .so.6 library will not be found by System.loadLibrary() |
| 231 | # but fortunately we need to load FreeType library explicitly |
| 232 | # on windows only |
| 233 | # |
| 234 | #TODO: rework this to avoid hardcoding library name in the makefile |
| 235 | # |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 236 | ifeq ($(OPENJDK_TARGET_OS), windows) |
Magnus Ihse Bursie | e4ff601 | 2013-10-23 13:06:37 +0200 | [diff] [blame] | 237 | FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 238 | else |
Magnus Ihse Bursie | e4ff601 | 2013-10-23 13:06:37 +0200 | [diff] [blame] | 239 | FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6 |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 240 | endif |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 241 | |
Magnus Ihse Bursie | e4ff601 | 2013-10-23 13:06:37 +0200 | [diff] [blame] | 242 | $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) |
| 243 | $(CP) $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@ |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 244 | ifeq ($(OPENJDK_BUILD_OS), windows) |
| 245 | $(CHMOD) +rx $@ |
| 246 | endif |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 247 | |
Magnus Ihse Bursie | e4ff601 | 2013-10-23 13:06:37 +0200 | [diff] [blame] | 248 | COPY_FILES += $(FREETYPE_TARGET_LIB) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 249 | endif |
| 250 | |
| 251 | ########################################################################################## |
| 252 | |
Kelly O'Hair | 38c629a | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 253 | # Copy msvcrXX.dll on windows |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 254 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 255 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 256 | MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL)) |
| 257 | # Chmod to avoid permission issues if bundles are unpacked on unix platforms. |
| 258 | $(MSVCR_TARGET): $(MSVCR_DLL) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 259 | $(call install-file) |
Erik Joelsson | a1d7653 | 2013-01-29 16:35:24 +0100 | [diff] [blame] | 260 | $(CHMOD) a+rx $@ |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 261 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 262 | COPY_FILES += $(MSVCR_TARGET) |
Fredrik Ohstrom | e32ab98 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 263 | endif |
| 264 | |
| 265 | ########################################################################################## |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 266 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 267 | HPROF_SRC = $(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 268 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 269 | $(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 270 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 271 | |
| 272 | COPY_FILES += $(LIBDIR)/jvm.hprof.txt |
| 273 | |
| 274 | ########################################################################################## |
| 275 | |
| 276 | # |
| 277 | # How to install jvm.cfg. |
| 278 | # |
| 279 | ifeq ($(JVM_VARIANT_ZERO), true) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 280 | JVMCFG_ARCH := zero |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 281 | else |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 282 | JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 283 | endif |
| 284 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 285 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 286 | JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 287 | else |
Kelly O'Hair | c363db8 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 288 | JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 289 | endif |
Kelly O'Hair | c363db8 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 290 | JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 291 | JVMCFG := $(JVMCFG_DIR)/jvm.cfg |
| 292 | |
Omair Majid | 4a2acff | 2013-08-22 16:00:13 -0400 | [diff] [blame] | 293 | # To do: should this also support -zeroshark? |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 294 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 295 | ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
Omair Majid | 4a2acff | 2013-08-22 16:00:13 -0400 | [diff] [blame] | 296 | COPY_JVM_CFG_FILE := true |
| 297 | else |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 298 | # On 32-bit machines we have three potential VMs: client, server and minimal. |
| 299 | # Historically we usually have both client and server and so that is what the |
| 300 | # committed jvm.cfg expects (including platform specific ergonomics switches |
| 301 | # to decide whether to use client or server by default). So when we have anything |
| 302 | # other than client and server we need to define a new jvm.cfg file. |
| 303 | # The main problem is deciding whether to use aliases for the VMs that are not |
| 304 | # present and the current position is that we add aliases for client and server, but |
| 305 | # not for minimal. |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 306 | CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT))) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 307 | ifeq ($(CLIENT_AND_SERVER), true) |
Omair Majid | 4a2acff | 2013-08-22 16:00:13 -0400 | [diff] [blame] | 308 | COPY_JVM_CFG_FILE := true |
| 309 | else |
| 310 | # For zero, the default jvm.cfg file is sufficient |
| 311 | ifeq ($(JVM_VARIANT_ZERO), true) |
| 312 | COPY_JVM_CFG_FILE := true |
| 313 | endif |
| 314 | endif |
| 315 | endif |
| 316 | |
| 317 | ifeq ($(COPY_JVM_CFG_FILE), true) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 318 | $(JVMCFG): $(JVMCFG_SRC) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 319 | $(call install-file) |
Omair Majid | 4a2acff | 2013-08-22 16:00:13 -0400 | [diff] [blame] | 320 | else |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 321 | $(JVMCFG): |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 322 | $(MKDIR) -p $(@D) |
| 323 | $(RM) $(@) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 324 | # Now check for other permutations |
| 325 | ifeq ($(JVM_VARIANT_SERVER), true) |
| 326 | $(PRINTF) "-server KNOWN\n">>$(@) |
| 327 | $(PRINTF) "-client ALIASED_TO -server\n">>$(@) |
| 328 | ifeq ($(JVM_VARIANT_MINIMAL1), true) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 329 | $(PRINTF) "-minimal KNOWN\n">>$(@) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 330 | endif |
| 331 | else |
| 332 | ifeq ($(JVM_VARIANT_CLIENT), true) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 333 | $(PRINTF) "-client KNOWN\n">>$(@) |
| 334 | $(PRINTF) "-server ALIASED_TO -client\n">>$(@) |
| 335 | ifeq ($(JVM_VARIANT_MINIMAL1), true) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 336 | $(PRINTF) "-minimal KNOWN\n">>$(@) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 337 | endif |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 338 | else |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 339 | ifeq ($(JVM_VARIANT_MINIMAL1), true) |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 340 | $(PRINTF) "-minimal KNOWN\n">>$(@) |
| 341 | $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@) |
| 342 | $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@) |
David Holmes | e0cc637 | 2013-04-29 07:40:04 -0400 | [diff] [blame] | 343 | endif |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 344 | endif |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 345 | endif |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 346 | endif |
| 347 | |
| 348 | COPY_FILES += $(JVMCFG) |
| 349 | |
| 350 | ########################################################################################## |
| 351 | |
Alan Bateman | f5797a2 | 2012-12-05 12:20:00 +0000 | [diff] [blame] | 352 | PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 353 | PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security |
| 354 | |
Sean Mullan | 2f923e8 | 2013-10-11 08:43:07 -0400 | [diff] [blame] | 355 | ifndef OPENJDK |
| 356 | |
| 357 | RESTRICTED_PKGS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/restricted.pkgs |
| 358 | RESTRICTED_PKGS := $(shell $(CAT) $(RESTRICTED_PKGS_SRC) | $(TR) "\n" " ") |
| 359 | |
| 360 | $(PROPS_DST): $(PROPS_SRC) |
| 361 | $(MKDIR) -p $(@D) |
| 362 | $(TOOL_ADDTORESTRICTEDPKGS) $^ $@.tmp $(RESTRICTED_PKGS) |
| 363 | $(MV) $@.tmp $@ |
| 364 | |
| 365 | else |
| 366 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 367 | $(PROPS_DST): $(PROPS_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 368 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 369 | |
Sean Mullan | 2f923e8 | 2013-10-11 08:43:07 -0400 | [diff] [blame] | 370 | endif |
| 371 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 372 | COPY_FILES += $(PROPS_DST) |
| 373 | |
| 374 | ########################################################################################## |
| 375 | |
| 376 | POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy |
| 377 | POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy |
| 378 | |
| 379 | $(POLICY_DST): $(POLICY_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 380 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 381 | |
| 382 | COPY_FILES += $(POLICY_DST) |
| 383 | |
| 384 | ########################################################################################## |
| 385 | |
| 386 | CACERTS_SRC := $(CACERTS_FILE) |
| 387 | CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts |
| 388 | |
| 389 | $(CACERTS_DST): $(CACERTS_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 390 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 391 | |
| 392 | COPY_FILES += $(CACERTS_DST) |
| 393 | |
| 394 | ########################################################################################## |
| 395 | |
Weijun Wang | ac8db73 | 2013-09-18 21:37:45 +0800 | [diff] [blame] | 396 | BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/src/share/lib/security/blacklisted.certs |
| 397 | BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs |
| 398 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 399 | ifndef OPENJDK |
| 400 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 401 | BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist |
| 402 | BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 403 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 404 | BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs) |
Weijun Wang | ac8db73 | 2013-09-18 21:37:45 +0800 | [diff] [blame] | 405 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 406 | TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries |
| 407 | TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 408 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 409 | $(BLACKLIST_DST): $(BLACKLIST_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 410 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 411 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 412 | COPY_FILES += $(BLACKLIST_DST) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 413 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 414 | $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 415 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 416 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 417 | COPY_FILES += $(TRUSTEDLIBS_DST) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 418 | |
| 419 | endif |
| 420 | |
Weijun Wang | ac8db73 | 2013-09-18 21:37:45 +0800 | [diff] [blame] | 421 | $(BLACKLISTED_CERTS_DST): $(BLACKLISTED_CERTS_SRC) |
| 422 | $(MKDIR) -p $(@D) |
| 423 | $(CAT) $^ | $(SED) '/^$$/d' | $(SORT) | $(UNIQ) > $@.tmp |
| 424 | $(GREP) -i Algorithm $@.tmp > $@ |
| 425 | if [ `$(SED) -n -e "$$=" $@` != 1 ]; then \ |
| 426 | $(ECHO) "Different algorithms defined in $^"; \ |
| 427 | $(RM) $@ $@.tmp; \ |
| 428 | false; \ |
| 429 | fi |
| 430 | $(GREP) -iv Algorithm $@.tmp >> $@ |
| 431 | $(RM) $@.tmp |
| 432 | |
| 433 | COPY_FILES += $(BLACKLISTED_CERTS_DST) |
| 434 | |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 435 | ########################################################################################## |
| 436 | |
| 437 | ifndef OPENJDK |
| 438 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 439 | SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts |
| 440 | SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts |
| 441 | SHARED_FONTS_FILES := \ |
| 442 | LucidaTypewriterRegular.ttf \ |
| 443 | LucidaTypewriterBold.ttf \ |
| 444 | LucidaBrightRegular.ttf \ |
| 445 | LucidaBrightDemiBold.ttf \ |
| 446 | LucidaBrightItalic.ttf \ |
| 447 | LucidaBrightDemiItalic.ttf \ |
| 448 | LucidaSansRegular.ttf \ |
| 449 | LucidaSansDemiBold.ttf \ |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 450 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 451 | SHARED_FONTS_SRC := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_SRC_DIR)/$(F)) |
| 452 | SHARED_FONTS_DST := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_DST_DIR)/$(F)) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 453 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 454 | $(SHARED_FONTS_DST_DIR)/%.ttf: $(SHARED_FONTS_SRC_DIR)/%.ttf |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 455 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 456 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 457 | $(SHARED_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 458 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 459 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 460 | COPY_FILES += $(SHARED_FONTS_DST) |
Kelly O'Hair | c363db8 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 461 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 462 | ifneq ($(OPENJDK_TARGET_OS), windows) |
Kelly O'Hair | c363db8 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 463 | COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 464 | endif |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 465 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 466 | ifeq ($(OPENJDK_TARGET_OS), linux) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 467 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 468 | # The oblique fonts are only needed/wanted on Linux. |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 469 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 470 | OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique |
| 471 | OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts |
| 472 | OBL_FONTS_FILES := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \ |
| 473 | LucidaSansOblique.ttf LucidaSansDemiOblique.ttf |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 474 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 475 | OBL_FONTS_SRC := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_SRC_DIR)/$(F)) |
| 476 | OBL_FONTS_DST := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_DST_DIR)/$(F)) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 477 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 478 | $(OBL_FONTS_DST_DIR)/%.ttf: $(OBL_FONTS_SRC_DIR)/%.ttf |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 479 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 480 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 481 | $(OBL_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 482 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 483 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 484 | COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 485 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 486 | endif # linux |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 487 | endif # OPENJDK |
| 488 | |
| 489 | ########################################################################################## |
| 490 | |
| 491 | ifndef OPENJDK |
| 492 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 493 | # |
| 494 | # Solaris X11 Direct Graphics Access library |
| 495 | # |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 496 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 497 | _DGALIBS_sparc = \ |
| 498 | libxinerama.so \ |
| 499 | libjdgaSUNWcg6.so \ |
| 500 | libjdgaSUNWffb.so \ |
| 501 | libjdgaSUNWm64.so \ |
| 502 | libjdgaSUNWafb.so |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 503 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 504 | _DGALIBS_sparcv9 = \ |
| 505 | libxinerama.so \ |
| 506 | libjdgaSUNWcg6.so \ |
| 507 | libjdgaSUNWffb.so \ |
| 508 | libjdgaSUNWm64.so \ |
| 509 | libjdgaSUNWafb.so |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 510 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 511 | _DGALIBS_i586 = # no i586 library yet |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 512 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 513 | _DGALIBS_amd64 = # no amd64 library yet |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 514 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 515 | DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 516 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 517 | $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 518 | $(call install-file) |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 519 | $(CHMOD) 755 $@ |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 520 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 521 | $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 522 | $(call install-file) |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 523 | $(CHMOD) 755 $@ |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 524 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 525 | $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 526 | $(MKDIR) -p $(@D) |
| 527 | $(RM) $@ |
Kelly O'Hair | 38c629a | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 528 | $(LN) -s $(<F) $@ |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 529 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 530 | COPY_FILES += $(DGALIBS) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 531 | |
| 532 | endif |
| 533 | |
| 534 | ########################################################################################## |
| 535 | |
Erik Joelsson | 4e7263a | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 536 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 537 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 538 | SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg |
| 539 | SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 540 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 541 | $(SUNPKCS11_CFG_DST): $(SUNPKCS11_CFG_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 542 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 543 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 544 | COPY_FILES += $(SUNPKCS11_CFG_DST) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 545 | |
| 546 | endif |
| 547 | |
| 548 | ########################################################################################## |
| 549 | |
| 550 | ifndef OPENJDK |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 551 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 552 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 553 | UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg |
| 554 | UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 555 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 556 | $(UCRYPTO_CFG_DST): $(UCRYPTO_CFG_SRC) |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 557 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 558 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 559 | COPY_FILES += $(UCRYPTO_CFG_DST) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 560 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 561 | endif |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 562 | endif |
| 563 | |
| 564 | ########################################################################################## |
| 565 | |
Magnus Ihse Bursie | c0c5618 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 566 | $(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties |
Erik Joelsson | 989cb5b | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 567 | $(call install-file) |
Erik Joelsson | f558e39 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 568 | |
| 569 | COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties |
| 570 | |
| 571 | ########################################################################################## |
Staffan Larsen | be7ed4c | 2013-06-10 11:33:50 +0200 | [diff] [blame] | 572 | |
Erik Joelsson | ce1f93f | 2013-06-25 09:25:16 +0200 | [diff] [blame] | 573 | -include $(CUSTOM_MAKE_DIR)/CopyFiles.gmk |