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 PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM) 29 30 ifeq ($(PLATFORM), windows) 31 PLATFORM_INCLUDE = $(INCLUDEDIR)/win32 32 else ifeq ($(PLATFORM), macosx) 33 PLATFORM_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 $(PLATFORM_INCLUDE)/jni_md.h \ 46 $(PLATFORM_INCLUDE)/jawt_md.h 47 48 $(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h 49 $(MKDIR) -p $(@D) 50 $(RM) -f $@ 51 $(CP) $< $@ 52 53 $(PLATFORM_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/javavm/export/%.h 54 $(MKDIR) -p $(@D) 55 $(RM) -f $@ 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) -f $@ 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) -f $@ 83 $(CP) $< $@ 84 $(CHMOD) 644 $@ 85 86 $(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/% 87 $(MKDIR) -p $(@D) 88 $(RM) -f $@ 89 $(CP) $< $@ 90 $(CHMOD) 444 $@ 91 92 COPY_FILES += $(MGMT_TARGET_FILES) 93 94 ########################################################################################## 95 96 LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib 97 98 $(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties 99 $(MKDIR) -p $(@D) 100 $(RM) -f $@ 101 $(CP) $< $@ 102 103 COPY_FILES += $(LIBDIR)/logging.properties 104 105 ########################################################################################## 106 # 107 # Copy property files from sun/print to LIBDIR 108 # 109 PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print 110 PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*) 111 PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS)) 112 113 $(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/% 114 $(MKDIR) -p $(@D) 115 $(RM) -f $@ 116 $(CP) $< $@ 117 118 COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES) 119 120 ########################################################################################## 121 # 122 # Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR 123 # 124 PLATFORM_LIB_SRC = $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/lib 125 126 $(LIBDIR)/flavormap.properties: $(PLATFORM_LIB_SRC)/flavormap.properties 127 $(MKDIR) -p $(@D) 128 $(RM) -f $@ 129 $(CP) $< $@ 130 131 COPY_FILES += $(LIBDIR)/flavormap.properties 132 133 CURSORS_DEST_DIR = $(LIBDIR)/images/cursors 134 CURSORS_PLATFORM_LIB_SRC = $(PLATFORM_LIB_SRC)/images/cursors 135 136 $(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_PLATFORM_LIB_SRC)/cursors.properties 137 $(MKDIR) -p $(@D) 138 $(RM) -f $@ 139 $(CP) $< $@ 140 141 COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties 142 143 CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors 144 ifeq ($(PLATFORM), windows) 145 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif) 146 else # PLATFORM 147 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif) 148 endif # PLATFORM 149 CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES)) 150 151 $(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/% 152 $(MKDIR) -p $(@D) 153 $(RM) -f $@ 154 $(CP) $< $@ 155 156 COPY_FILES += $(CURSORS_TARGET_FILES) 157 158 ########################################################################################## 159 160 CONTENT_TYPES_SRC=$(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/lib 161 162 $(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties 163 $(MKDIR) -p $(@D) 164 $(RM) -f $@ 165 $(CP) $< $@ 166 167 COPY_FILES += $(LIBDIR)/content-types.properties 168 169 ########################################################################################## 170 171 CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib 172 173 $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties 174 $(MKDIR) -p $(@D) 175 $(RM) -f $@ 176 $(CP) $< $@ 177 178 COPY_FILES += $(LIBDIR)/calendars.properties 179 180 ########################################################################################## 181 182 ifeq ($(PLATFORM),windows) 183 184 TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/lib 185 186 $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings 187 $(MKDIR) -p $(@D) 188 $(RM) -f $@ 189 $(CP) $< $@ 190 191 COPY_FILES += $(LIBDIR)/tzmappings 192 193 endif 194 195 ########################################################################################## 196 197 ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm 198 199 ifdef OPENJDK 200 ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms 201 else 202 ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms 203 endif 204 205 ICCPROFILE_SRCS:=$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf) 206 ICCPROFILE_TARGET_FILES:=$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS)) 207 208 $(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf 209 $(MKDIR) -p $(@D) 210 $(RM) -f $@ 211 $(CP) $< $@ 212 $(CHMOD) 444 $@ 213 214 COPY_FILES += $(ICCPROFILE_TARGET_FILES) 215 216 ########################################################################################## 217 218 #make sure freetype dll will be available at runtime as well as link time 219 # 220 #NB: Default freetype build system uses -h linker option and 221 # result .so contains hardcoded library name that is later 222 # used for adding dependencies to other objects 223 # (e.g. libfontmanager.so). 224 # 225 # It is not obvious how to extract that hardcoded name (libfreetype.so.6) 226 # without overcomplicating logic here. 227 # To workaround this we hardcode .6 suffix for now. 228 # 229 # Note that .so.6 library will not be found by System.loadLibrary() 230 # but fortunately we need to load FreeType library explicitly 231 # on windows only 232 # 233 #TODO: rework this to avoid hardcoding library name in the makefile 234 # 235 ifdef OPENJDK 236 ifeq ($(PLATFORM), windows) 237 FREETYPE_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype) 238 else 239 ifeq ($(USING_SYSTEM_FT_LIB), false) 240 FREETYPE_LIB = $(JDK_OUTPUTDIR)/lib/$(LIBARCH)/$(call SHARED_LIBRARY,freetype).6 241 endif 242 endif 243 244 $(FREETYPE_LIB): $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) 245 $(CP) $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@ 246 ifeq ($(BUILD_OS), windows) 247 $(CHMOD) +rx $@ 248 endif 249 250 COPY_FILES += $(FREETYPE_LIB) 251 endif 252 253 ########################################################################################## 254 255 # Copy msvcr100.dll on windows 256 257 ifeq ($(PLATFORM),windows) 258 MSVCRNN_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCRNN_DLL)) 259 $(MSVCRNN_TARGET): $(MSVCRNN_DLL) 260 $(MKDIR) -p $(@D) 261 $(RM) -f $@ 262 $(CP) $< $@ 263 264 COPY_FILES += $(MSVCRNN_TARGET) 265 endif 266 267 ########################################################################################## 268 269 HPROF_SRC=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt 270 271 $(LIBDIR)/jvm.hprof.txt : $(HPROF_SRC) 272 $(MKDIR) -p $(@D) 273 $(RM) -f $@ 274 $(CP) $< $@ 275 276 COPY_FILES += $(LIBDIR)/jvm.hprof.txt 277 278 ########################################################################################## 279 280 # 281 # How to install jvm.cfg. 282 # 283 ifeq ($(JVM_VARIANT_ZERO), true) 284 JVMCFG_ARCH := zero 285 else 286 JVMCFG_ARCH := $(ARCH) 287 endif 288 289 ifeq ($(PLATFORM),macosx) 290 ifeq ($(JVMCFG_ARCH),amd64) 291 JVMCFG_ARCH := x86_64 292 endif 293 JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg 294 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib 295 else 296 JVMCFG_SRC := $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/bin/$(JVMCFG_ARCH)/jvm.cfg 297 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib/$(LIBARCH) 298 endif 299 300 JVMCFG := $(JVMCFG_DIR)/jvm.cfg 301 302 303 ifeq ($(ARCH_DATA_MODEL),32) 304 # On 32 bit machines, we can have client and/or server libjvms installed. 305 # Since the currently committed jvm.cfg expects clientANDserver, we need 306 # to patch the jvm.cfg when we have built only a client or only a server. 307 # This should also support -kernel, -zero and -zeroshark. 308 ifeq ($(JVM_VARIANTS),$(COMMA)client$(COMMA)) 309 # Create a patched jvm.cfg to use -client by default and alias -server to -client. 310 $(JVMCFG): 311 $(MKDIR) -p $(@D) 312 $(RM) -f $(JVMCFG) 313 $(PRINTF) "-client KNOWN\n">$(JVMCFG) 314 $(PRINTF) "-server IGNORE\n">>$(JVMCFG) 315 $(PRINTF) "-hotspot ALIASED_TO -client\n">>$(JVMCFG) 316 $(PRINTF) "-classic WARN\n">>$(JVMCFG) 317 $(PRINTF) "-native ERROR\n">>$(JVMCFG) 318 $(PRINTF) "-green ERROR\n">>$(JVMCFG) 319 320 else 321 ifeq ($(JVM_VARIANTS),$(COMMA)server$(COMMA)) 322 # Create a patched jvm.cfg to use -server by default and alias -client to -server. 323 324 $(JVMCFG): 325 $(MKDIR) -p $(@D) 326 $(RM) -f $(JVMCFG) 327 $(PRINTF) "-server KNOWN\n">$(JVMCFG) 328 $(PRINTF) "-client IGNORE\n">>$(JVMCFG) 329 $(PRINTF) "-hotspot IGNORE\n">>$(JVMCFG) 330 $(PRINTF) "-classic WARN\n">>$(JVMCFG) 331 $(PRINTF) "-native ERROR\n">>$(JVMCFG) 332 $(PRINTF) "-green ERROR\n">>$(JVMCFG) 333 else 334 # Use the default jvm.cfg for this 32 bit setup. 335 $(JVMCFG): $(JVMCFG_SRC) 336 $(MKDIR) -p $(@D) 337 $(RM) -f $@ 338 $(CP) $< $@ 339 endif 340 endif 341 else 342 # Use the default jvm.cfg for this 64 bit setup. 343 $(JVMCFG): $(JVMCFG_SRC) 344 $(MKDIR) -p $(@D) 345 $(RM) -f $@ 346 $(CP) $< $@ 347 endif 348 349 COPY_FILES += $(JVMCFG) 350 351 ########################################################################################## 352 353 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security 354 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security 355 356 ifeq ($(PLATFORM), solaris) 357 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-solaris 358 endif 359 360 ifeq ($(PLATFORM), windows) 361 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-windows 362 endif 363 364 ifeq ($(PLATFORM), macosx) 365 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-macosx 366 endif 367 368 $(PROPS_DST): $(PROPS_SRC) 369 $(MKDIR) -p $(@D) 370 $(RM) -f $@ 371 $(CP) $< $@ 372 373 COPY_FILES += $(PROPS_DST) 374 375 ########################################################################################## 376 377 POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy 378 POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy 379 380 $(POLICY_DST): $(POLICY_SRC) 381 $(MKDIR) -p $(@D) 382 $(RM) -f $@ 383 $(CP) $< $@ 384 385 COPY_FILES += $(POLICY_DST) 386 387 ########################################################################################## 388 389 CACERTS_SRC := $(CACERTS_FILE) 390 CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts 391 392 $(CACERTS_DST): $(CACERTS_SRC) 393 $(MKDIR) -p $(@D) 394 $(RM) -f $@ 395 $(CP) $< $@ 396 397 COPY_FILES += $(CACERTS_DST) 398 399 ########################################################################################## 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 TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries 407 TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries 408 409 $(BLACKLIST_DST): $(BLACKLIST_SRC) 410 $(MKDIR) -p $(@D) 411 $(RM) -f $@ 412 $(CP) $< $@ 413 414 COPY_FILES += $(BLACKLIST_DST) 415 416 $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC) 417 $(MKDIR) -p $(@D) 418 $(RM) -f $@ 419 $(CP) $< $@ 420 421 COPY_FILES += $(TRUSTEDLIBS_DST) 422 423 endif 424 425 ########################################################################################## 426 427 ifndef OPENJDK 428 429 SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts 430 SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts 431 SHARED_FONTS_FILES := \ 432 LucidaTypewriterRegular.ttf \ 433 LucidaTypewriterBold.ttf \ 434 LucidaBrightRegular.ttf \ 435 LucidaBrightDemiBold.ttf \ 436 LucidaBrightItalic.ttf \ 437 LucidaBrightDemiItalic.ttf \ 438 LucidaSansRegular.ttf \ 439 LucidaSansDemiBold.ttf \ 440 441 SHARED_FONTS_SRC := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_SRC_DIR)/$(F)) 442 SHARED_FONTS_DST := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_DST_DIR)/$(F)) 443 444 $(SHARED_FONTS_DST_DIR)/%.ttf : $(SHARED_FONTS_SRC_DIR)/%.ttf 445 $(MKDIR) -p $(@D) 446 $(RM) $@ 447 $(CP) $< $@ 448 449 $(SHARED_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir 450 $(MKDIR) -p $(@D) 451 $(RM) $@ 452 $(CP) $< $@ 453 454 COPY_FILES += $(SHARED_FONTS_DST) $(SHARED_FONTS_DST_DIR)/fonts.dir 455 456 ifeq ($(PLATFORM), 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_$(ARCH):%=$(JDK_OUTPUTDIR)/lib/$(LIBARCH)/%) 530 531 $(JDK_OUTPUTDIR)/lib/$(LIBARCH)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(ARCH)/libxinerama.so 532 $(MKDIR) -p $(@D) 533 $(RM) $@ 534 $(CP) $< $@ 535 536 $(JDK_OUTPUTDIR)/lib/$(LIBARCH)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(ARCH)/libjdgaSUNW%.so 537 $(MKDIR) -p $(@D) 538 $(RM) $@ 539 $(CP) $< $@ 540 541 $(JDK_OUTPUTDIR)/lib/$(LIBARCH)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib/$(LIBARCH)/libjdgaSUNWffb.so 542 $(MKDIR) -p $(@D) 543 $(RM) $@ 544 $(LN) -s $< $@ 545 546 COPY_FILES += $(DGALIBS) 547 548 endif 549 550 ########################################################################################## 551 552 ifeq ($(PLATFORM), solaris) 553 554 SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg 555 SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg 556 557 $(SUNPKCS11_CFG_DST) : $(SUNPKCS11_CFG_SRC) 558 $(MKDIR) -p $(@D) 559 $(RM) $@ 560 $(CP) $< $@ 561 562 COPY_FILES += $(SUNPKCS11_CFG_DST) 563 564 endif 565 566 ########################################################################################## 567 568 ifndef OPENJDK 569 ifeq ($(PLATFORM), solaris) 570 571 UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg 572 UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg 573 574 $(UCRYPTO_CFG_DST) : $(UCRYPTO_CFG_SRC) 575 $(MKDIR) -p $(@D) 576 $(RM) $@ 577 $(CP) $< $@ 578 579 COPY_FILES += $(UCRYPTO_CFG_DST) 580 581 endif 582 endif 583 584 ########################################################################################## 585 586 $(JDK_OUTPUTDIR)/lib/sound.properties : $(JDK_TOPDIR)/src/share/lib/sound.properties 587 $(MKDIR) -p $(@D) 588 $(RM) $@ 589 $(CP) $< $(@) 590 591 COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties 592 593 ##########################################################################################