make/java/redist/Makefile

Print this page


   1 #
   2 # Copyright (c) 1997, 2011, 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


  44 DB_SUFFIX = _db
  45 DTRACE_SUFFIX = _dtrace
  46 
  47 ifeq ($(PLATFORM), windows)
  48   LIB_LOCATION = $(BINDIR)
  49 else ifeq ($(PLATFORM), macosx)
  50   LIB_LOCATION = $(LIBDIR)
  51 else
  52   LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
  53 endif
  54 
  55 JVM_NAME               = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
  56 JVMLIB_NAME            = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
  57 JVMMAP_NAME            = $(LIB_PREFIX)jvm.map
  58 JVMPDB_NAME            = $(LIB_PREFIX)jvm.pdb
  59 LIBJSIG_NAME           = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
  60 JVMDB_NAME             = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
  61 JVMDTRACE_NAME         = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
  62 
  63 JVM_DEBUGINFO_NAME       = $(LIB_PREFIX)jvm.debuginfo

  64 LIBJSIG_DEBUGINFO_NAME   = $(LIB_PREFIX)jsig.debuginfo

  65 JVMDB_DEBUGINFO_NAME     = $(LIB_PREFIX)jvm$(DB_SUFFIX).debuginfo

  66 JVMDTRACE_DEBUGINFO_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).debuginfo

  67 
  68 CLASSSHARINGDATA_DIR   = $(BUILDDIR)/tools/sharing
  69 
  70 # Needed to do file copy
  71 ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
  72 
  73 SUBDIRS_desktop = fonts
  74 SUBDIRS_tools   = sajdi
  75 include $(BUILDDIR)/common/Subdirs.gmk
  76 
  77 all clean clobber::
  78         $(SUBDIRS-loop)
  79 
  80 all:: build
  81 
  82 # List of files created here or coming from BUILDDIR area (this workspace)
  83 INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
  84 
  85 # List of files coming from outside this workspace
  86 ifndef BUILD_CLIENT_ONLY
  87   IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
  88                 $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
  89   ifneq ($(OBJCOPY),)






  90     # the import JDK may not contain .debuginfo files
  91     ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)),)
  92       IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME)
  93     endif
  94   endif

  95 else
  96   IMPORT_LIST =
  97 endif
  98 
  99 # Hotspot client is only available on 32-bit non-Zero builds
 100 ifneq ($(ZERO_BUILD), true)
 101 ifeq ($(ARCH_DATA_MODEL), 32)
 102   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
 103                  $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
 104   ifneq ($(OBJCOPY),)






 105     # the import JDK may not contain .debuginfo files
 106     ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)),)
 107       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME)
 108     endif
 109   endif

 110 endif
 111 endif
 112 
 113 ifeq ($(PLATFORM), windows)
 114 #  Windows     vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  Windows
 115 
 116 IMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
 117 
 118 $(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
 119         $(install-import-file)
 120         $(call chmod-file, a+x)
 121 
 122 # Get the hotspot .map and .pdb files for client and server
 123 ifndef BUILD_CLIENT_ONLY
 124 IMPORT_LIST += \
 125         $(LIBDIR)/$(JVMLIB_NAME) \
 126         $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \









 127         $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)



 128 endif
 129 
 130 # Add .map and .pdb files to the import path for client and kernel VMs. 
 131 # These are only available on 32-bit windows builds. 
 132 ifeq ($(ARCH_DATA_MODEL), 32)










 133   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
 134                  $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)


 135   ifeq ($(DO_KERNEL), true)









 136     IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
 137                    $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
 138   endif



 139 endif
 140 
 141 $(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
 142         $(install-import-file)
 143 
 144 # it is OK for the .map and .pdb files to not exist, so do not force a 
 145 # dependency on them from the bootstrap location, and allow the copy to fail.
 146 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
 147         @$(prep-target)
 148         -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME)  $@
 149 
 150 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
 151         @$(prep-target)
 152         -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME)  $@
 153 
 154 ifndef BUILD_CLIENT_ONLY
 155 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
 156         @$(prep-target)
 157         -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
 158 endif
 159 
 160 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
 161         @$(prep-target)
 162         -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME)  $@
 163 
 164 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
 165         @$(prep-target)
 166         -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME)  $@
 167 








 168 ifndef BUILD_CLIENT_ONLY
 169 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): 
 170         @$(prep-target)
 171         -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@




 172 endif
 173 
 174 #  Windows     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  Windows
 175 else # PLATFORM
 176 #  NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  NOT Windows
 177 
 178 IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_NAME) 
 179 ifneq ($(OBJCOPY),)






 180   # the import JDK may not contain .debuginfo files
 181   ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 182     IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 183   endif

 184 endif
 185 ifndef BUILD_CLIENT_ONLY
 186   IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
 187   ifneq ($(OBJCOPY),)

 188     # the import JDK may not contain the target of the symlink






 189     ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 190       IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 191     endif
 192   endif

 193 endif
 194 
 195 ifeq ($(PLATFORM), solaris)
 196   ifndef BUILD_CLIENT_ONLY
 197     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
 198     ifneq ($(OBJCOPY),)






 199       # the import JDK may not contain .debuginfo files
 200       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
 201         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
 202       endif
 203     endif

 204     # The conditional can be removed when import JDKs contain these files.
 205     ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
 206       IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
 207       ifneq ($(OBJCOPY),)






 208         # the import JDK may not contain .debuginfo files
 209         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
 210           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
 211         endif
 212       endif

 213     else
 214       $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
 215     endif 
 216   endif 
 217 endif
 218 
 219 ifneq ($(ZERO_BUILD), true)
 220 ifeq ($(ARCH_DATA_MODEL), 32)
 221 
 222 IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
 223 ifneq ($(OBJCOPY),)

 224   # the import JDK may not contain the target of the symlink






 225   ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 226     IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 227   endif

 228 endif
 229 
 230 ifeq ($(PLATFORM), solaris)
 231 #  solaris   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  solaris
 232 
 233 IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
 234 ifneq ($(OBJCOPY),)






 235   # the import JDK may not contain .debuginfo files
 236   ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
 237     IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
 238   endif

 239 endif
 240 
 241 # The conditional can be removed when import JDKs contain these files.
 242 ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
 243   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
 244   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
 245   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
 246   ifneq ($(OBJCOPY),)








 247     # the import JDK may not contain .debuginfo files
 248     ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
 249       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
 250       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
 251       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 252   endif
 253   endif

 254 else
 255   $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
 256 endif
 257 
 258 ifndef BUILD_CLIENT_ONLY
 259   # The conditional can be removed when import JDKs contain these files.
 260   ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
 261     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
 262     ifneq ($(OBJCOPY),)






 263       # the import JDK may not contain .debuginfo files
 264       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)),)
 265         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
 266       endif
 267     endif

 268   else
 269     $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
 270   endif
 271 
 272   # The conditional can be removed when import JDKs contain these files.
 273   ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
 274     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
 275     ifneq ($(OBJCOPY),)






 276       # the import JDK may not contain .debuginfo files
 277       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)),)
 278         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 279       endif
 280     endif

 281   else
 282     $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
 283  endif
 284 endif
 285 
 286 # For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
 287 IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
 288 
 289 $(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
 290         @$(prep-target)
 291 
 292 #  solaris   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
 293 endif # 32bit solaris
 294 
 295 endif # 32bit
 296 
 297 endif # ZERO_BUILD
 298 
 299 #  NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
 300 
 301 endif # PLATFORM
 302 
 303 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
 304         $(install-import-file)
 305         @$(call binary_file_verification,$@)
 306 
 307 ifneq ($(OBJCOPY),)




 308 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)
 309         $(install-import-file)

 310 endif
 311 
 312 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
 313         $(install-file)
 314         @$(call binary_file_verification,$@)
 315 
 316 $(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
 317         $(install-import-file)
 318         @$(call binary_file_verification,$@)
 319 
 320 ifneq ($(OBJCOPY),)




 321 $(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)
 322         $(install-import-file)

 323 endif
 324 
 325 ifndef BUILD_CLIENT_ONLY
 326 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
 327 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
 328         @$(prep-target)
 329         $(call install-sym-link, ../$(LIBJSIG_NAME))
 330 
 331 ifneq ($(OBJCOPY),)

 332 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME) \
 333 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
 334         @$(prep-target)
 335         $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))
 336 endif
 337 else
 338 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME):
 339         @$(prep-target)
 340         $(call install-sym-link, ../$(LIBJSIG_NAME))
 341 
 342 ifneq ($(OBJCOPY),)

 343 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
 344         @$(prep-target)
 345         $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))

 346 endif
 347 endif
 348 
 349 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
 350         $(install-import-file)
 351         @$(call binary_file_verification,$@)
 352 
 353 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
 354         $(install-import-file)
 355         @$(call binary_file_verification,$@)
 356 
 357 ifneq ($(OBJCOPY),)







 358 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)
 359         $(install-import-file)
 360 
 361 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
 362         $(install-import-file)

 363 endif
 364 
 365 ifndef BUILD_CLIENT_ONLY
 366 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
 367         $(install-import-file)
 368         @$(call binary_file_verification,$@)
 369 
 370 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
 371         $(install-import-file)
 372         @$(call binary_file_verification,$@)
 373 
 374 ifneq ($(OBJCOPY),)







 375 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)
 376         $(install-import-file)
 377 
 378 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
 379         $(install-import-file)


 380 endif
 381 endif
 382 
 383 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
 384         $(install-import-file)
 385         @$(call binary_file_verification,$@)
 386 
 387 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
 388         $(install-import-file)
 389         @$(call binary_file_verification,$@)
 390 
 391 ifneq ($(OBJCOPY),)







 392 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
 393         $(install-import-file)
 394 
 395 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 396         $(install-import-file)

 397 endif
 398 
 399 ifndef BUILD_CLIENT_ONLY
 400 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
 401         $(install-import-file)
 402         @$(call binary_file_verification,$@)
 403 
 404 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
 405         $(install-import-file)
 406         @$(call binary_file_verification,$@)
 407 
 408 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
 409         $(install-import-file)
 410         @$(call binary_file_verification,$@)
 411 
 412 ifneq ($(OBJCOPY),)










 413 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
 414         $(install-import-file)
 415 
 416 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 417         $(install-import-file)
 418 
 419 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)
 420         $(install-import-file)

 421 endif
 422 
 423 $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
 424         $(install-import-file)
 425 endif
 426 
 427 $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
 428         $(install-import-file)
 429 
 430 $(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
 431         $(install-file)
 432 
 433 #
 434 # Specific to non-OpenJDK building
 435 #
 436 ifndef OPENJDK
 437 
 438 INTERNAL_IMPORT_LIST += \
 439             $(LIBDIR)/security/US_export_policy.jar \
 440             $(LIBDIR)/security/local_policy.jar \


   1 #
   2 # Copyright (c) 1997, 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


  44 DB_SUFFIX = _db
  45 DTRACE_SUFFIX = _dtrace
  46 
  47 ifeq ($(PLATFORM), windows)
  48   LIB_LOCATION = $(BINDIR)
  49 else ifeq ($(PLATFORM), macosx)
  50   LIB_LOCATION = $(LIBDIR)
  51 else
  52   LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
  53 endif
  54 
  55 JVM_NAME               = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
  56 JVMLIB_NAME            = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
  57 JVMMAP_NAME            = $(LIB_PREFIX)jvm.map
  58 JVMPDB_NAME            = $(LIB_PREFIX)jvm.pdb
  59 LIBJSIG_NAME           = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
  60 JVMDB_NAME             = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
  61 JVMDTRACE_NAME         = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
  62 
  63 JVM_DEBUGINFO_NAME       = $(LIB_PREFIX)jvm.debuginfo
  64 JVM_DIZ_NAME             = $(LIB_PREFIX)jvm.diz
  65 LIBJSIG_DEBUGINFO_NAME   = $(LIB_PREFIX)jsig.debuginfo
  66 LIBJSIG_DIZ_NAME         = $(LIB_PREFIX)jsig.diz
  67 JVMDB_DEBUGINFO_NAME     = $(LIB_PREFIX)jvm$(DB_SUFFIX).debuginfo
  68 JVMDB_DIZ_NAME           = $(LIB_PREFIX)jvm$(DB_SUFFIX).diz
  69 JVMDTRACE_DEBUGINFO_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).debuginfo
  70 JVMDTRACE_DIZ_NAME       = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).diz
  71 
  72 CLASSSHARINGDATA_DIR   = $(BUILDDIR)/tools/sharing
  73 
  74 # Needed to do file copy
  75 ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
  76 
  77 SUBDIRS_desktop = fonts
  78 SUBDIRS_tools   = sajdi
  79 include $(BUILDDIR)/common/Subdirs.gmk
  80 
  81 all clean clobber::
  82         $(SUBDIRS-loop)
  83 
  84 all:: build
  85 
  86 # List of files created here or coming from BUILDDIR area (this workspace)
  87 INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
  88 
  89 # List of files coming from outside this workspace
  90 ifndef BUILD_CLIENT_ONLY
  91   IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
  92                 $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
  93   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  94     ifeq ($(ZIP_DEBUGINFO_FILES),1)
  95       # the import JDK may not contain .diz files
  96       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DIZ_NAME)),)
  97         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DIZ_NAME)
  98       endif
  99     else
 100       # the import JDK may not contain .debuginfo files
 101       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)),)
 102         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME)
 103       endif
 104     endif
 105   endif
 106 else
 107   IMPORT_LIST =
 108 endif
 109 
 110 # Hotspot client is only available on 32-bit non-Zero builds
 111 ifneq ($(ZERO_BUILD), true)
 112 ifeq ($(ARCH_DATA_MODEL), 32)
 113   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
 114                  $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
 115   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 116     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 117       # the import JDK may not contain .diz files
 118       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DIZ_NAME)),)
 119         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DIZ_NAME)
 120       endif
 121     else
 122       # the import JDK may not contain .debuginfo files
 123       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)),)
 124         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME)
 125       endif
 126     endif
 127   endif
 128 endif
 129 endif
 130 
 131 ifeq ($(PLATFORM), windows)
 132 #  Windows     vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  Windows
 133 
 134 IMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
 135 
 136 $(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
 137         $(install-import-file)
 138         $(call chmod-file, a+x)
 139 
 140 # Get the hotspot .map and .pdb files for client and server
 141 ifndef BUILD_CLIENT_ONLY
 142   IMPORT_LIST += $(LIBDIR)/$(JVMLIB_NAME)
 143   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 144     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 145       # the import JDK may not contain .diz files
 146       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DIZ_NAME)),)
 147         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DIZ_NAME)
 148       endif
 149     else
 150       # the import JDK may not contain .pdb files
 151       ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME)),)
 152         # assume .map file is present if .pdb file is preset
 153         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
 154           $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
 155       endif
 156     endif
 157   endif
 158 endif
 159 
 160 # Add .map and .pdb files to the import path for client and kernel VMs. 
 161 # These are only available on 32-bit windows builds. 
 162 ifeq ($(ARCH_DATA_MODEL), 32)
 163   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 164     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 165       # the import JDK may not contain .diz files
 166       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DIZ_NAME)),)
 167         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DIZ_NAME)
 168       endif
 169     else
 170       # the import JDK may not contain .pdb files
 171       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME)),)
 172         # assume .map file is present if .pdb file is preset
 173         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
 174                        $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
 175       endif
 176     endif
 177     ifeq ($(DO_KERNEL), true)
 178       ifeq ($(ZIP_DEBUGINFO_FILES),1)
 179         # the import JDK may not contain .diz files
 180         ifneq ($(wildcard $(HOTSPOT_KERNEL_PATH)/$(JVM_DIZ_NAME)),)
 181           IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_DIZ_NAME)
 182         endif
 183       else
 184         # the import JDK may not contain .pdb files
 185         ifneq ($(wildcard $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME)),)
 186           # assume .map file is present if .pdb file is preset
 187           IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
 188                          $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
 189         endif
 190       endif
 191     endif
 192   endif
 193 endif
 194 
 195 $(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
 196         $(install-import-file)
 197 
 198 # it is OK for the .map and .pdb files to not exist, so do not force a 
 199 # dependency on them from the bootstrap location, and allow the copy to fail.
 200 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
 201         @$(prep-target)
 202         -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME)  $@
 203 
 204 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
 205         @$(prep-target)
 206         -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME)  $@
 207 
 208 ifndef BUILD_CLIENT_ONLY
 209 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
 210         @$(prep-target)
 211         -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
 212 endif
 213 
 214 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
 215         @$(prep-target)
 216         -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME)  $@
 217 
 218 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
 219         @$(prep-target)
 220         -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME)  $@
 221 
 222 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DIZ_NAME):
 223         @$(prep-target)
 224         -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVM_DIZ_NAME)  $@
 225 
 226 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_DIZ_NAME):
 227         @$(prep-target)
 228         -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVM_DIZ_NAME)  $@
 229 
 230 ifndef BUILD_CLIENT_ONLY
 231 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): 
 232         @$(prep-target)
 233         -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
 234 
 235 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DIZ_NAME):
 236         @$(prep-target)
 237         -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVM_DIZ_NAME) $@
 238 endif
 239 
 240 #  Windows     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  Windows
 241 else # PLATFORM
 242 #  NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  NOT Windows
 243 
 244 IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_NAME) 
 245 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 246   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 247     # the import JDK may not contain .diz files
 248     ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DIZ_NAME)),)
 249       IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_DIZ_NAME)
 250     endif
 251   else
 252     # the import JDK may not contain .debuginfo files
 253     ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 254       IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 255     endif
 256   endif
 257 endif
 258 ifndef BUILD_CLIENT_ONLY
 259   IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
 260   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 261     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 262       # the import JDK may not contain the target of the symlink
 263       ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DIZ_NAME)),)
 264         # check for the .diz file, but create the .debuginfo link
 265         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 266       endif
 267     else
 268       # the import JDK may not contain the target of the symlink
 269       ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 270         IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 271       endif
 272     endif
 273   endif
 274 endif
 275 
 276 ifeq ($(PLATFORM), solaris)
 277   ifndef BUILD_CLIENT_ONLY
 278     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
 279     ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 280       ifeq ($(ZIP_DEBUGINFO_FILES),1)
 281         # the import JDK may not contain .diz files
 282         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDB_DIZ_NAME)),)
 283           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DIZ_NAME)
 284         endif
 285       else
 286         # the import JDK may not contain .debuginfo files
 287         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
 288           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
 289         endif
 290       endif
 291     endif
 292     # The conditional can be removed when import JDKs contain these files.
 293     ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
 294       IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
 295       ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 296         ifeq ($(ZIP_DEBUGINFO_FILES),1)
 297           # the import JDK may not contain .diz files
 298           ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DIZ_NAME)),)
 299             IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DIZ_NAME)
 300           endif
 301         else
 302           # the import JDK may not contain .debuginfo files
 303           ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
 304             IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
 305           endif
 306         endif
 307       endif
 308     else
 309       $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
 310     endif 
 311   endif 
 312 endif
 313 
 314 ifneq ($(ZERO_BUILD), true)
 315 ifeq ($(ARCH_DATA_MODEL), 32)
 316 
 317 IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
 318 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 319   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 320     # the import JDK may not contain the target of the symlink
 321     ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DIZ_NAME)),)
 322       # check for the .diz file, but create the .debuginfo link
 323       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 324     endif
 325   else
 326     # the import JDK may not contain the target of the symlink
 327     ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
 328       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
 329     endif
 330   endif
 331 endif
 332 
 333 ifeq ($(PLATFORM), solaris)
 334 #  solaris   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  solaris
 335 
 336 IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
 337 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 338   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 339     # the import JDK may not contain .diz files
 340     ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DIZ_NAME)),)
 341       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DIZ_NAME)
 342     endif
 343   else
 344     # the import JDK may not contain .debuginfo files
 345     ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
 346       IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
 347     endif
 348   endif
 349 endif
 350 
 351 # The conditional can be removed when import JDKs contain these files.
 352 ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
 353   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
 354   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
 355   IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
 356   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 357     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 358       # the import JDK may not contain .diz files
 359       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DIZ_NAME)),)
 360         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DIZ_NAME)
 361         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DIZ_NAME)
 362         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DIZ_NAME)
 363       endif
 364     else
 365       # the import JDK may not contain .debuginfo files
 366       ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
 367         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
 368         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
 369         IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 370       endif
 371     endif
 372   endif
 373 else
 374   $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
 375 endif
 376 
 377 ifndef BUILD_CLIENT_ONLY
 378   # The conditional can be removed when import JDKs contain these files.
 379   ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
 380     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
 381     ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 382       ifeq ($(ZIP_DEBUGINFO_FILES),1)
 383         # the import JDK may not contain .diz files
 384         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DIZ_NAME)),)
 385           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DIZ_NAME)
 386         endif
 387       else
 388         # the import JDK may not contain .debuginfo files
 389         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)),)
 390           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
 391         endif
 392       endif
 393     endif
 394   else
 395     $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
 396   endif
 397 
 398   # The conditional can be removed when import JDKs contain these files.
 399   ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
 400     IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
 401     ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 402       ifeq ($(ZIP_DEBUGINFO_FILES),1)
 403         # the import JDK may not contain .diz files
 404         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DIZ_NAME)),)
 405           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DIZ_NAME)
 406         endif
 407       else
 408         # the import JDK may not contain .debuginfo files
 409         ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)),)
 410           IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 411         endif
 412       endif
 413     endif
 414   else
 415     $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
 416  endif
 417 endif
 418 
 419 # For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
 420 IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
 421 
 422 $(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
 423         @$(prep-target)
 424 
 425 #  solaris   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
 426 endif # 32bit solaris
 427 
 428 endif # 32bit
 429 
 430 endif # ZERO_BUILD
 431 
 432 #  NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
 433 
 434 endif # PLATFORM
 435 
 436 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
 437         $(install-import-file)
 438         @$(call binary_file_verification,$@)
 439 
 440 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 441   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 442 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DIZ_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_DIZ_NAME)
 443         $(install-import-file)
 444   else
 445 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)
 446         $(install-import-file)
 447   endif
 448 endif
 449 
 450 $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
 451         $(install-file)
 452         @$(call binary_file_verification,$@)
 453 
 454 $(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
 455         $(install-import-file)
 456         @$(call binary_file_verification,$@)
 457 
 458 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 459   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 460 $(LIB_LOCATION)/$(LIBJSIG_DIZ_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DIZ_NAME)
 461         $(install-import-file)
 462   else
 463 $(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)
 464         $(install-import-file)
 465   endif
 466 endif
 467 
 468 ifndef BUILD_CLIENT_ONLY
 469 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
 470 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
 471         @$(prep-target)
 472         $(call install-sym-link, ../$(LIBJSIG_NAME))
 473 
 474   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 475 # we don't create a symlink to a libjsig.diz file
 476 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME) \
 477 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
 478         @$(prep-target)
 479         $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))
 480   endif
 481 else
 482 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME):
 483         @$(prep-target)
 484         $(call install-sym-link, ../$(LIBJSIG_NAME))
 485 
 486   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 487 # we don't create a symlink to a libjsig.diz file
 488 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
 489         @$(prep-target)
 490         $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))
 491   endif
 492 endif

 493 
 494 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
 495         $(install-import-file)
 496         @$(call binary_file_verification,$@)
 497 
 498 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
 499         $(install-import-file)
 500         @$(call binary_file_verification,$@)
 501 
 502 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 503   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 504 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DIZ_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DIZ_NAME)
 505         $(install-import-file)
 506 
 507 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DIZ_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_DIZ_NAME)
 508         $(install-import-file)
 509   else
 510 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)
 511         $(install-import-file)
 512 
 513 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
 514         $(install-import-file)
 515   endif
 516 endif
 517 
 518 ifndef BUILD_CLIENT_ONLY
 519 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
 520         $(install-import-file)
 521         @$(call binary_file_verification,$@)
 522 
 523 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
 524         $(install-import-file)
 525         @$(call binary_file_verification,$@)
 526 
 527   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 528     ifeq ($(ZIP_DEBUGINFO_FILES),1)
 529 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DIZ_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_DIZ_NAME)
 530         $(install-import-file)
 531 
 532 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DIZ_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DIZ_NAME)
 533         $(install-import-file)
 534     else
 535 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)
 536         $(install-import-file)
 537 
 538 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
 539         $(install-import-file)
 540     endif
 541   endif
 542 endif

 543 
 544 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
 545         $(install-import-file)
 546         @$(call binary_file_verification,$@)
 547 
 548 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
 549         $(install-import-file)
 550         @$(call binary_file_verification,$@)
 551 
 552 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 553   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 554 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DIZ_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DIZ_NAME)
 555         $(install-import-file)
 556 
 557 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DIZ_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_DIZ_NAME)
 558         $(install-import-file)
 559   else
 560 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
 561         $(install-import-file)
 562 
 563 $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 564         $(install-import-file)
 565   endif
 566 endif
 567 
 568 ifndef BUILD_CLIENT_ONLY
 569 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
 570         $(install-import-file)
 571         @$(call binary_file_verification,$@)
 572 
 573 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
 574         $(install-import-file)
 575         @$(call binary_file_verification,$@)
 576 
 577 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
 578         $(install-import-file)
 579         @$(call binary_file_verification,$@)
 580 
 581 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 582   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 583 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DIZ_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DIZ_NAME)
 584         $(install-import-file)
 585 
 586 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DIZ_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DIZ_NAME)
 587         $(install-import-file)
 588 
 589 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DIZ_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_DIZ_NAME)
 590         $(install-import-file)
 591   else
 592 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
 593         $(install-import-file)
 594 
 595 $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
 596         $(install-import-file)
 597 
 598 $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)
 599         $(install-import-file)
 600   endif
 601 endif
 602 
 603 $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
 604         $(install-import-file)
 605 endif
 606 
 607 $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
 608         $(install-import-file)
 609 
 610 $(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
 611         $(install-file)
 612 
 613 #
 614 # Specific to non-OpenJDK building
 615 #
 616 ifndef OPENJDK
 617 
 618 INTERNAL_IMPORT_LIST += \
 619             $(LIBDIR)/security/US_export_policy.jar \
 620             $(LIBDIR)/security/local_policy.jar \