1 #
   2 # Copyright (c) 2011, 2012, 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_API_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 flavormap.properties, 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 $(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
 134         $(call install-file)
 135 
 136 COPY_FILES += $(LIBDIR)/flavormap.properties
 137 
 138 CURSORS_DEST_DIR = $(LIBDIR)/images/cursors
 139 CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors
 140 
 141 $(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties
 142         $(call install-file)
 143 
 144 COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties
 145 
 146 CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
 147 ifeq ($(OPENJDK_TARGET_OS), windows)
 148 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
 149 else # OPENJDK_TARGET_OS
 150 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
 151 endif # OPENJDK_TARGET_OS
 152 CURSORS_TARGET_FILES =  $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
 153 
 154 $(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/%
 155         $(call install-file)
 156 
 157 COPY_FILES += $(CURSORS_TARGET_FILES)
 158 
 159 ##########################################################################################
 160 
 161 CONTENT_TYPES_SRC=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
 162 
 163 $(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
 164         $(call install-file)
 165 
 166 COPY_FILES += $(LIBDIR)/content-types.properties
 167 
 168 ##########################################################################################
 169 
 170 CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib
 171 
 172 $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
 173         $(call install-file)
 174 
 175 COPY_FILES += $(LIBDIR)/calendars.properties
 176 
 177 ##########################################################################################
 178 
 179 ifeq ($(OPENJDK_TARGET_OS),windows)
 180 
 181 TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
 182 
 183 $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
 184         $(call install-file)
 185 
 186 COPY_FILES += $(LIBDIR)/tzmappings
 187 
 188 endif
 189 
 190 ##########################################################################################
 191 
 192 ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm
 193 
 194 ifdef OPENJDK
 195     ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms
 196 else 
 197     ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
 198 endif
 199 
 200 ICCPROFILE_SRCS:=$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
 201 ICCPROFILE_TARGET_FILES:=$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
 202 
 203 $(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
 204         $(call install-file)
 205         $(CHMOD) 444 $@
 206 
 207 COPY_FILES += $(ICCPROFILE_TARGET_FILES)
 208 
 209 ##########################################################################################
 210 
 211 #make sure freetype dll will be available at runtime as well as link time
 212 #
 213 #NB: Default freetype build system uses -h linker option and 
 214 #   result .so contains hardcoded library name that is later 
 215 #   used for adding dependencies to other objects 
 216 #   (e.g. libfontmanager.so).
 217 #   
 218 #   It is not obvious how to extract that hardcoded name (libfreetype.so.6)
 219 #   without overcomplicating logic here.
 220 #   To workaround this we hardcode .6 suffix for now.
 221 #
 222 #   Note that .so.6 library will not be found by System.loadLibrary()
 223 #        but fortunately we need to load FreeType library explicitly 
 224 #        on windows only  
 225 #
 226 #TODO: rework this to avoid hardcoding library name in the makefile
 227 #
 228 ifdef OPENJDK
 229     ifeq ($(OPENJDK_TARGET_OS), windows)
 230         FREETYPE_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype)
 231     else 
 232         ifeq ($(USING_SYSTEM_FT_LIB), false)
 233             FREETYPE_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
 234         endif
 235     endif 
 236 
 237     $(FREETYPE_LIB): $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
 238         $(CP) $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@
 239     ifeq ($(OPENJDK_BUILD_OS), windows)
 240         $(CHMOD) +rx $@
 241     endif
 242 
 243     COPY_FILES += $(FREETYPE_LIB)
 244 endif
 245 
 246 ##########################################################################################
 247 
 248 # Copy msvcrXX.dll on windows
 249 
 250 ifeq ($(OPENJDK_TARGET_OS),windows)
 251     MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
 252     # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
 253     $(MSVCR_TARGET): $(MSVCR_DLL)
 254         $(call install-file)
 255         $(CHMOD) a+rx $@
 256 
 257     COPY_FILES += $(MSVCR_TARGET)
 258 endif
 259 
 260 ##########################################################################################
 261 
 262 HPROF_SRC=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
 263 
 264 $(LIBDIR)/jvm.hprof.txt : $(HPROF_SRC)
 265         $(call install-file)
 266 
 267 COPY_FILES += $(LIBDIR)/jvm.hprof.txt
 268 
 269 ##########################################################################################
 270 
 271 #
 272 # How to install jvm.cfg.
 273 #
 274 ifeq ($(JVM_VARIANT_ZERO), true)
 275     JVMCFG_ARCH := zero
 276 else
 277     JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
 278 endif
 279 
 280 ifeq ($(OPENJDK_TARGET_OS),macosx)
 281   JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
 282 else
 283   JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
 284 endif
 285 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
 286 JVMCFG := $(JVMCFG_DIR)/jvm.cfg
 287 
 288 
 289 ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
 290     # On 32 bit machines, we can have client and/or server libjvms installed.
 291     # Since the currently committed jvm.cfg expects clientANDserver, we need 
 292     # to patch the jvm.cfg when we have built only a client or only a server.
 293     # This should also support -kernel, -zero and -zeroshark.
 294     ifeq ($(JVM_VARIANTS),$(COMMA)client$(COMMA))
 295         # Create a patched jvm.cfg to use -client by default and alias -server to -client.
 296         $(JVMCFG):
 297                 $(MKDIR) -p $(@D)
 298                 $(RM) $(JVMCFG)
 299                 $(PRINTF) "-client KNOWN\n">$(JVMCFG)
 300                 $(PRINTF) "-server ALIASED_TO -client\n">>$(JVMCFG)
 301                 $(PRINTF) "-hotspot ALIASED_TO -client\n">>$(JVMCFG)
 302                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 303                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 304                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 305 
 306     else
 307         ifeq ($(JVM_VARIANTS),$(COMMA)server$(COMMA))
 308             # Create a patched jvm.cfg to use -server by default and alias -client to -server.
 309 
 310             $(JVMCFG):
 311                 $(MKDIR) -p $(@D)
 312                 $(RM) $(JVMCFG)
 313                 $(PRINTF) "-server KNOWN\n">$(JVMCFG)
 314                 $(PRINTF) "-client IGNORE\n">>$(JVMCFG)
 315                 $(PRINTF) "-hotspot IGNORE\n">>$(JVMCFG)
 316                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 317                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 318                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 319         else
 320             # Use the default jvm.cfg for this 32 bit setup. 
 321             $(JVMCFG): $(JVMCFG_SRC)
 322                 $(call install-file)
 323         endif
 324     endif
 325 else
 326     # Use the default jvm.cfg for this 64 bit setup.
 327     $(JVMCFG): $(JVMCFG_SRC)
 328                 $(call install-file)
 329 endif
 330 
 331 COPY_FILES += $(JVMCFG)
 332 
 333 ##########################################################################################
 334 
 335 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
 336 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
 337 
 338 $(PROPS_DST): $(PROPS_SRC)
 339         $(call install-file)
 340 
 341 COPY_FILES += $(PROPS_DST)
 342 
 343 ##########################################################################################
 344 
 345 POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy
 346 POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy
 347 
 348 $(POLICY_DST): $(POLICY_SRC)
 349         $(call install-file)
 350 
 351 COPY_FILES += $(POLICY_DST)
 352 
 353 ##########################################################################################
 354 
 355 CACERTS_SRC := $(CACERTS_FILE)
 356 CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts
 357 
 358 $(CACERTS_DST): $(CACERTS_SRC)
 359         $(call install-file)
 360 
 361 COPY_FILES += $(CACERTS_DST)
 362 
 363 ##########################################################################################
 364 
 365 ifndef OPENJDK
 366 
 367 BLACKLIST_SRC   := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
 368 BLACKLIST_DST   := $(JDK_OUTPUTDIR)/lib/security/blacklist
 369 
 370 TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
 371 TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
 372 
 373 $(BLACKLIST_DST): $(BLACKLIST_SRC)
 374         $(call install-file)
 375 
 376 COPY_FILES += $(BLACKLIST_DST)
 377 
 378 $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
 379         $(call install-file)
 380 
 381 COPY_FILES += $(TRUSTEDLIBS_DST)
 382 
 383 endif
 384 
 385 ##########################################################################################
 386 
 387 ifndef OPENJDK
 388 
 389 SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
 390 SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
 391 SHARED_FONTS_FILES   := \
 392         LucidaTypewriterRegular.ttf     \
 393         LucidaTypewriterBold.ttf        \
 394         LucidaBrightRegular.ttf         \
 395         LucidaBrightDemiBold.ttf        \
 396         LucidaBrightItalic.ttf          \
 397         LucidaBrightDemiItalic.ttf      \
 398         LucidaSansRegular.ttf           \
 399         LucidaSansDemiBold.ttf          \
 400 
 401 SHARED_FONTS_SRC := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_SRC_DIR)/$(F))
 402 SHARED_FONTS_DST := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_DST_DIR)/$(F))
 403 
 404 $(SHARED_FONTS_DST_DIR)/%.ttf : $(SHARED_FONTS_SRC_DIR)/%.ttf
 405         $(call install-file)
 406 
 407 $(SHARED_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
 408         $(call install-file)
 409 
 410 COPY_FILES += $(SHARED_FONTS_DST)
 411 
 412 ifneq ($(OPENJDK_TARGET_OS), windows)
 413     COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
 414 endif
 415 
 416 ifeq ($(OPENJDK_TARGET_OS), linux)
 417 
 418 # The oblique fonts are only needed/wanted on Linux.
 419 
 420 OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
 421 OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
 422 OBL_FONTS_FILES   := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
 423                     LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
 424 
 425 OBL_FONTS_SRC := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_SRC_DIR)/$(F))
 426 OBL_FONTS_DST := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_DST_DIR)/$(F))
 427 
 428 $(OBL_FONTS_DST_DIR)/%.ttf : $(OBL_FONTS_SRC_DIR)/%.ttf
 429         $(call install-file)
 430 
 431 $(OBL_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
 432         $(call install-file)
 433 
 434 COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
 435 
 436 endif # linux
 437 endif # OPENJDK
 438 
 439 ##########################################################################################
 440 
 441 ifndef OPENJDK
 442 
 443 #
 444 # Solaris X11 Direct Graphics Access library
 445 #
 446 
 447 _DGALIBS_sparc = \
 448         libxinerama.so \
 449         libjdgaSUNWcg6.so \
 450         libjdgaSUNWffb.so \
 451         libjdgaSUNWm64.so \
 452         libjdgaSUNWafb.so
 453 
 454 _DGALIBS_sparcv9 = \
 455         libxinerama.so \
 456         libjdgaSUNWcg6.so \
 457         libjdgaSUNWffb.so \
 458         libjdgaSUNWm64.so \
 459         libjdgaSUNWafb.so
 460 
 461 _DGALIBS_i586 =         # no i586 library yet
 462 
 463 _DGALIBS_amd64 =        # no amd64 library yet
 464 
 465 DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
 466 
 467 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
 468         $(call install-file)
 469         $(CHMOD) 755 $@
 470 
 471 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
 472         $(call install-file)
 473         $(CHMOD) 755 $@
 474 
 475 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
 476         $(MKDIR) -p $(@D)
 477         $(RM) $@
 478         $(LN) -s $(<F) $@
 479 
 480 COPY_FILES += $(DGALIBS)
 481 
 482 endif
 483 
 484 ##########################################################################################
 485 
 486 ifeq ($(OPENJDK_TARGET_OS), solaris)
 487 
 488 SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
 489 SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
 490 
 491 $(SUNPKCS11_CFG_DST) : $(SUNPKCS11_CFG_SRC)
 492         $(call install-file)
 493 
 494 COPY_FILES += $(SUNPKCS11_CFG_DST)
 495 
 496 endif
 497 
 498 ##########################################################################################
 499 
 500 ifndef OPENJDK
 501 ifeq ($(OPENJDK_TARGET_OS), solaris)
 502 
 503 UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
 504 UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
 505 
 506 $(UCRYPTO_CFG_DST) : $(UCRYPTO_CFG_SRC)
 507         $(call install-file)
 508 
 509 COPY_FILES += $(UCRYPTO_CFG_DST)
 510 
 511 endif
 512 endif
 513 
 514 ##########################################################################################
 515 
 516 $(JDK_OUTPUTDIR)/lib/sound.properties : $(JDK_TOPDIR)/src/share/lib/sound.properties
 517         $(call install-file)
 518 
 519 COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties
 520 
 521 ##########################################################################################