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