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