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         $(MKDIR) -p $(@D)
  50         $(RM) $@
  51         $(CP) $< $@
  52 
  53 $(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export/%.h
  54         $(MKDIR) -p $(@D)
  55         $(RM) $@
  56         $(CP) $< $@
  57 
  58 COPY_FILES = $(H_TARGET_FILES)
  59 
  60 ##########################################################################################
  61 
  62 LIBDIR = $(JDK_OUTPUTDIR)/lib
  63 SERVICETAG_LIBDIR = $(LIBDIR)/servicetag
  64 
  65 $(SERVICETAG_LIBDIR)/jdk_header.png: $(JDK_TOPDIR)/src/share/classes/com/sun/servicetag/resources/jdk_header.png
  66         $(MKDIR) -p $(@D)
  67         $(RM) $@
  68         $(CP) $< $@
  69         $(CHMOD) 444 $@
  70 
  71 COPY_FILES += $(SERVICETAG_LIBDIR)/jdk_header.png
  72 
  73 ##########################################################################################
  74 
  75 MGMT_LIBDIR = $(LIBDIR)/management
  76 MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management
  77 MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*)
  78 MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES))
  79 
  80 $(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties
  81         $(MKDIR) -p $(@D)
  82         $(RM) $@
  83         $(CP) $< $@
  84         $(CHMOD) 644 $@
  85 
  86 # this file has different permissions...don't know why...
  87 $(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access
  88         $(MKDIR) -p $(@D)
  89         $(RM) $@
  90         $(CP) $< $@
  91         $(CHMOD) 644 $@
  92 
  93 $(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/%
  94         $(MKDIR) -p $(@D)
  95         $(RM) $@
  96         $(CP) $< $@
  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         $(MKDIR) -p $(@D)
 107         $(RM) $@
 108         $(CP) $< $@
 109 
 110 COPY_FILES += $(LIBDIR)/logging.properties
 111 
 112 ##########################################################################################
 113 #
 114 # Copy property files from sun/print to LIBDIR
 115 #
 116 PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print
 117 PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*)
 118 PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS))
 119 
 120 $(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/%
 121         $(MKDIR) -p $(@D)
 122         $(RM) $@
 123         $(CP) $< $@
 124 
 125 COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES)
 126 
 127 ##########################################################################################
 128 #
 129 # Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR
 130 #
 131 ifneq ($(OPENJDK_TARGET_OS), macosx)
 132 OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
 133 else
 134 OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
 135 endif
 136 
 137 $(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
 138         $(MKDIR) -p $(@D)
 139         $(RM) $@
 140         $(CP) $< $@
 141 
 142 COPY_FILES += $(LIBDIR)/flavormap.properties
 143 
 144 CURSORS_DEST_DIR = $(LIBDIR)/images/cursors
 145 CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors
 146 
 147 $(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties
 148         $(MKDIR) -p $(@D)
 149         $(RM) $@
 150         $(CP) $< $@
 151 
 152 COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties
 153 
 154 CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
 155 ifeq ($(OPENJDK_TARGET_OS), windows)
 156 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
 157 else # OPENJDK_TARGET_OS
 158 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
 159 endif # OPENJDK_TARGET_OS
 160 CURSORS_TARGET_FILES =  $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
 161 
 162 $(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/%
 163         $(MKDIR) -p $(@D)
 164         $(RM) $@
 165         $(CP) $< $@
 166 
 167 COPY_FILES += $(CURSORS_TARGET_FILES)
 168 
 169 ##########################################################################################
 170 
 171 CONTENT_TYPES_SRC=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
 172 
 173 $(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
 174         $(MKDIR) -p $(@D)
 175         $(RM) $@
 176         $(CP) $< $@
 177 
 178 COPY_FILES += $(LIBDIR)/content-types.properties
 179 
 180 ##########################################################################################
 181 
 182 CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib
 183 
 184 $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
 185         $(MKDIR) -p $(@D)
 186         $(RM) $@
 187         $(CP) $< $@
 188 
 189 COPY_FILES += $(LIBDIR)/calendars.properties
 190 
 191 ##########################################################################################
 192 
 193 ifeq ($(OPENJDK_TARGET_OS),windows)
 194 
 195 TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
 196 
 197 $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
 198         $(MKDIR) -p $(@D)
 199         $(RM) $@
 200         $(CP) $< $@
 201 
 202 COPY_FILES += $(LIBDIR)/tzmappings
 203 
 204 endif
 205 
 206 ##########################################################################################
 207 
 208 ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm
 209 
 210 ifdef OPENJDK
 211     ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms
 212 else 
 213     ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
 214 endif
 215 
 216 ICCPROFILE_SRCS:=$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
 217 ICCPROFILE_TARGET_FILES:=$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
 218 
 219 $(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
 220         $(MKDIR) -p $(@D)
 221         $(RM) $@
 222         $(CP) $< $@
 223         $(CHMOD) 444 $@
 224 
 225 COPY_FILES += $(ICCPROFILE_TARGET_FILES)
 226 
 227 ##########################################################################################
 228 
 229 #make sure freetype dll will be available at runtime as well as link time
 230 #
 231 #NB: Default freetype build system uses -h linker option and 
 232 #   result .so contains hardcoded library name that is later 
 233 #   used for adding dependencies to other objects 
 234 #   (e.g. libfontmanager.so).
 235 #   
 236 #   It is not obvious how to extract that hardcoded name (libfreetype.so.6)
 237 #   without overcomplicating logic here.
 238 #   To workaround this we hardcode .6 suffix for now.
 239 #
 240 #   Note that .so.6 library will not be found by System.loadLibrary()
 241 #        but fortunately we need to load FreeType library explicitly 
 242 #        on windows only  
 243 #
 244 #TODO: rework this to avoid hardcoding library name in the makefile
 245 #
 246 ifdef OPENJDK
 247     ifeq ($(OPENJDK_TARGET_OS), windows)
 248         FREETYPE_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype)
 249     else 
 250         ifeq ($(USING_SYSTEM_FT_LIB), false)
 251             FREETYPE_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
 252         endif
 253     endif 
 254 
 255     $(FREETYPE_LIB): $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
 256         $(CP) $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@
 257     ifeq ($(OPENJDK_BUILD_OS), windows)
 258         $(CHMOD) +rx $@
 259     endif
 260 
 261     COPY_FILES += $(FREETYPE_LIB)
 262 endif
 263 
 264 ##########################################################################################
 265 
 266 # Copy msvcrXX.dll on windows
 267 
 268 ifeq ($(OPENJDK_TARGET_OS),windows)
 269     MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
 270     # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
 271     $(MSVCR_TARGET): $(MSVCR_DLL)
 272         $(MKDIR) -p $(@D)
 273         $(RM) $@
 274         $(CP) $< $@
 275         $(CHMOD) a+rx $@
 276 
 277     COPY_FILES += $(MSVCR_TARGET)
 278 endif
 279 
 280 ##########################################################################################
 281 
 282 HPROF_SRC=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
 283 
 284 $(LIBDIR)/jvm.hprof.txt : $(HPROF_SRC)
 285         $(MKDIR) -p $(@D)
 286         $(RM) $@
 287         $(CP) $< $@
 288 
 289 COPY_FILES += $(LIBDIR)/jvm.hprof.txt
 290 
 291 ##########################################################################################
 292 
 293 #
 294 # How to install jvm.cfg.
 295 #
 296 ifeq ($(JVM_VARIANT_ZERO), true)
 297     JVMCFG_ARCH := zero
 298 else
 299     JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
 300 endif
 301 
 302 ifeq ($(OPENJDK_TARGET_OS),macosx)
 303   JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
 304 else
 305   JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
 306 endif
 307 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
 308 JVMCFG := $(JVMCFG_DIR)/jvm.cfg
 309 
 310 
 311 ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
 312     # On 32 bit machines, we can have client and/or server libjvms installed.
 313     # Since the currently committed jvm.cfg expects clientANDserver, we need 
 314     # to patch the jvm.cfg when we have built only a client or only a server.
 315     # This should also support -kernel, -zero and -zeroshark.
 316     ifeq ($(JVM_VARIANTS),$(COMMA)client$(COMMA))
 317         # Create a patched jvm.cfg to use -client by default and alias -server to -client.
 318         $(JVMCFG):
 319                 $(MKDIR) -p $(@D)
 320                 $(RM) $(JVMCFG)
 321                 $(PRINTF) "-client KNOWN\n">$(JVMCFG)
 322                 $(PRINTF) "-server ALIASED_TO -client\n">>$(JVMCFG)
 323                 $(PRINTF) "-hotspot ALIASED_TO -client\n">>$(JVMCFG)
 324                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 325                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 326                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 327 
 328     else
 329         ifeq ($(JVM_VARIANTS),$(COMMA)server$(COMMA))
 330             # Create a patched jvm.cfg to use -server by default and alias -client to -server.
 331 
 332             $(JVMCFG):
 333                 $(MKDIR) -p $(@D)
 334                 $(RM) $(JVMCFG)
 335                 $(PRINTF) "-server KNOWN\n">$(JVMCFG)
 336                 $(PRINTF) "-client IGNORE\n">>$(JVMCFG)
 337                 $(PRINTF) "-hotspot IGNORE\n">>$(JVMCFG)
 338                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 339                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 340                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 341         else
 342             # Use the default jvm.cfg for this 32 bit setup. 
 343             $(JVMCFG): $(JVMCFG_SRC)
 344                 $(MKDIR) -p $(@D)
 345                 $(RM) $@
 346                 $(CP) $< $@
 347         endif
 348     endif
 349 else
 350     # Use the default jvm.cfg for this 64 bit setup.
 351     $(JVMCFG): $(JVMCFG_SRC)
 352                 $(MKDIR) -p $(@D)
 353                 $(RM) $@
 354                 $(CP) $< $@
 355 endif
 356 
 357 COPY_FILES += $(JVMCFG)
 358 
 359 ##########################################################################################
 360 
 361 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
 362 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
 363 
 364 $(PROPS_DST): $(PROPS_SRC)
 365         $(MKDIR) -p $(@D)
 366         $(RM) $@
 367         $(CP) $< $@
 368 
 369 COPY_FILES += $(PROPS_DST)
 370 
 371 ##########################################################################################
 372 
 373 POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy
 374 POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy
 375 
 376 $(POLICY_DST): $(POLICY_SRC)
 377         $(MKDIR) -p $(@D)
 378         $(RM) $@
 379         $(CP) $< $@
 380 
 381 COPY_FILES += $(POLICY_DST)
 382 
 383 ##########################################################################################
 384 
 385 CACERTS_SRC := $(CACERTS_FILE)
 386 CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts
 387 
 388 $(CACERTS_DST): $(CACERTS_SRC)
 389         $(MKDIR) -p $(@D)
 390         $(RM) $@
 391         $(CP) $< $@
 392 
 393 COPY_FILES += $(CACERTS_DST)
 394 
 395 ##########################################################################################
 396 
 397 ifndef OPENJDK
 398 
 399 BLACKLIST_SRC   := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
 400 BLACKLIST_DST   := $(JDK_OUTPUTDIR)/lib/security/blacklist
 401 
 402 TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
 403 TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
 404 
 405 $(BLACKLIST_DST): $(BLACKLIST_SRC)
 406         $(MKDIR) -p $(@D)
 407         $(RM) $@
 408         $(CP) $< $@
 409 
 410 COPY_FILES += $(BLACKLIST_DST)
 411 
 412 $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
 413         $(MKDIR) -p $(@D)
 414         $(RM) $@
 415         $(CP) $< $@
 416 
 417 COPY_FILES += $(TRUSTEDLIBS_DST)
 418 
 419 endif
 420 
 421 ##########################################################################################
 422 
 423 ifndef OPENJDK
 424 
 425 SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
 426 SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
 427 SHARED_FONTS_FILES   := \
 428         LucidaTypewriterRegular.ttf     \
 429         LucidaTypewriterBold.ttf        \
 430         LucidaBrightRegular.ttf         \
 431         LucidaBrightDemiBold.ttf        \
 432         LucidaBrightItalic.ttf          \
 433         LucidaBrightDemiItalic.ttf      \
 434         LucidaSansRegular.ttf           \
 435         LucidaSansDemiBold.ttf          \
 436 
 437 SHARED_FONTS_SRC := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_SRC_DIR)/$(F))
 438 SHARED_FONTS_DST := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_DST_DIR)/$(F))
 439 
 440 $(SHARED_FONTS_DST_DIR)/%.ttf : $(SHARED_FONTS_SRC_DIR)/%.ttf
 441         $(MKDIR) -p $(@D)
 442         $(RM) $@
 443         $(CP) $< $@
 444 
 445 $(SHARED_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
 446         $(MKDIR) -p $(@D)
 447         $(RM) $@
 448         $(CP) $< $@
 449 
 450 COPY_FILES += $(SHARED_FONTS_DST)
 451 
 452 ifneq ($(OPENJDK_TARGET_OS), windows)
 453     COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
 454 endif
 455 
 456 ifeq ($(OPENJDK_TARGET_OS), linux)
 457 
 458 # The oblique fonts are only needed/wanted on Linux.
 459 
 460 OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
 461 OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
 462 OBL_FONTS_FILES   := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
 463                     LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
 464 
 465 OBL_FONTS_SRC := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_SRC_DIR)/$(F))
 466 OBL_FONTS_DST := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_DST_DIR)/$(F))
 467 
 468 $(OBL_FONTS_DST_DIR)/%.ttf : $(OBL_FONTS_SRC_DIR)/%.ttf
 469         $(MKDIR) -p $(@D)
 470         $(RM) $@
 471         $(CP) $< $@
 472 
 473 $(OBL_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
 474         $(MKDIR) -p $(@D)
 475         $(RM) $@
 476         $(CP) $< $@
 477 
 478 COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
 479 
 480 endif # linux
 481 endif # OPENJDK
 482 
 483 ##########################################################################################
 484 
 485 ifndef OPENJDK
 486 
 487 JS_RESOURCES_FILES := Messages.properties Messages_fr.properties
 488 JS_RESOURCES_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/classes/sun/org/mozilla/javascript/internal/resources
 489 JS_RESOURCES_DST_DIR := $(JDK_OUTPUTDIR)/classes/sun/org/mozilla/javascript/internal/resources
 490 
 491 JS_RESOURCES_SRC := $(foreach F,$(JS_RESOURCES_FILES),$(JS_RESOURCES_SRC_DIR)/$(F))
 492 JS_RESOURCES_DST := $(foreach F,$(JS_RESOURCES_FILES),$(JS_RESOURCES_DST_DIR)/$(F))
 493 
 494 $(JS_RESOURCES_DST_DIR)/% : $(JS_RESOURCES_SRC_DIR)/%
 495         $(MKDIR) -p $(@D)
 496         $(RM) $@
 497         $(CP) $< $@
 498 
 499 COPY_FILES += $(JS_RESOURCES_DST)
 500 
 501 endif
 502 
 503 ##########################################################################################
 504 
 505 ifndef OPENJDK
 506 
 507 #
 508 # Solaris X11 Direct Graphics Access library
 509 #
 510 
 511 _DGALIBS_sparc = \
 512         libxinerama.so \
 513         libjdgaSUNWcg6.so \
 514         libjdgaSUNWffb.so \
 515         libjdgaSUNWm64.so \
 516         libjdgaSUNWafb.so
 517 
 518 _DGALIBS_sparcv9 = \
 519         libxinerama.so \
 520         libjdgaSUNWcg6.so \
 521         libjdgaSUNWffb.so \
 522         libjdgaSUNWm64.so \
 523         libjdgaSUNWafb.so
 524 
 525 _DGALIBS_i586 =         # no i586 library yet
 526 
 527 _DGALIBS_amd64 =        # no amd64 library yet
 528 
 529 DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
 530 
 531 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
 532         $(MKDIR) -p $(@D)
 533         $(RM) $@
 534         $(CP) $< $@
 535         $(CHMOD) 755 $@
 536 
 537 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
 538         $(MKDIR) -p $(@D)
 539         $(RM) $@
 540         $(CP) $< $@
 541         $(CHMOD) 755 $@
 542 
 543 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
 544         $(MKDIR) -p $(@D)
 545         $(RM) $@
 546         $(LN) -s $(<F) $@
 547 
 548 COPY_FILES += $(DGALIBS)
 549 
 550 endif
 551 
 552 ##########################################################################################
 553 
 554 ifeq ($(OPENJDK_TARGET_OS), solaris)
 555 
 556 SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
 557 SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
 558 
 559 $(SUNPKCS11_CFG_DST) : $(SUNPKCS11_CFG_SRC)
 560         $(MKDIR) -p $(@D)
 561         $(RM) $@
 562         $(CP) $< $@
 563 
 564 COPY_FILES += $(SUNPKCS11_CFG_DST)
 565 
 566 endif
 567 
 568 ##########################################################################################
 569 
 570 ifndef OPENJDK
 571 ifeq ($(OPENJDK_TARGET_OS), solaris)
 572 
 573 UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
 574 UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
 575 
 576 $(UCRYPTO_CFG_DST) : $(UCRYPTO_CFG_SRC)
 577         $(MKDIR) -p $(@D)
 578         $(RM) $@
 579         $(CP) $< $@
 580 
 581 COPY_FILES += $(UCRYPTO_CFG_DST)
 582 
 583 endif
 584 endif
 585 
 586 ##########################################################################################
 587 
 588 $(JDK_OUTPUTDIR)/lib/sound.properties : $(JDK_TOPDIR)/src/share/lib/sound.properties
 589         $(MKDIR) -p $(@D)
 590         $(RM) $@
 591         $(CP) $< $(@)
 592 
 593 COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties
 594 
 595 ##########################################################################################