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
  23 # questions.
  24 #
  25 
  26 include $(JDK_TOPDIR)/make/docs/CORE_PKGS.gmk
  27 include $(JDK_TOPDIR)/make/docs/NON_CORE_PKGS.gmk
  28 
  29 # What jdk version are we building
  30 THIS_JDK_VERSION := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
  31 
  32 #
  33 # Perform release engineering tasks.
  34 #
  35 # images    An image is what the product looks like when it is
  36 #           installed.
  37 #
  38 
  39 IMAGE_BINDIR = bin
  40 
  41 # The compiler should not issue a "Proprietary" warning when compiling
  42 # classes in the com.sun.java.swing.plaf packages, since we've always
  43 # allowed, and even advocated, extending them (see bug 6476749).
  44 #
  45 # This approach is NOT to be used as a general purpose way to avoid such
  46 # compiler warnings for non-core packages. The correct way is to document
  47 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
  48 # definition.
  49 #
  50 # Swing has taken this approach only as a temporary measure to avoid
  51 # the compiler warnings until we can properly document these packages.
  52 # This is covered under 6491853.
  53 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
  54                         com.sun.java.swing.plaf.motif    \
  55                         com.sun.java.swing.plaf.gtk
  56 
  57 #
  58 # Include the exported private packages in ct.sym.
  59 # This is an interim solution until the ct.sym is replaced
  60 # with a new module system (being discussed for JDK 8).
  61 #
  62 EXPORTED_PRIVATE_PKGS = com.oracle.net \
  63                         com.oracle.nio
  64 
  65 # 64-bit solaris has a few special cases. We define the variable
  66 # SOLARIS64 for use in this Makefile to easily test those cases
  67 ifeq ($(PLATFORM), solaris)
  68   ifeq ($(ARCH_DATA_MODEL), 64)
  69     SOLARIS64 = true
  70     IMAGE_BINDIR = bin/$(ARCH)
  71   endif
  72 endif
  73 
  74 JTG_DOCS            = $(JDK_TOPDIR)/src/solaris/doc
  75 
  76 ifeq ($(PLATFORM), macosx)
  77   include $(JDK_TOPDIR)/make/common/Release-$(PLATFORM).gmk
  78 endif
  79 
  80 # The base names of all the license and document files for the jdk and jre
  81 #   (These files get placed in the jdk and jre install images)
  82 ifdef OPENJDK
  83   # Where to find these files
  84   SHARE_JDK_DOC_SRC = $(JDK_TOPDIR)
  85   SHARE_JRE_DOC_SRC = $(JDK_TOPDIR)
  86   # Same files for jdk and jre, no name changes
  87   IMAGE_DOCLIST_JDK = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README
  88   IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES =
  89   IMAGE_DOCLIST_JRE = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README
  90 else
  91   # make/closed/common/Defs.gmk for closed location of SHARE_JDK_DOC_SRC
  92 
  93   IMAGE_DOCLIST_JDK = COPYRIGHT README.html  LICENSE THIRDPARTYLICENSEREADME.txt
  94   IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES = demo/DEMOS_LICENSE sample/SAMPLES_LICENSE
  95   IMAGE_DOCLIST_JRE = COPYRIGHT Welcome.html LICENSE THIRDPARTYLICENSEREADME.txt
  96   ifeq ($(PLATFORM), windows)
  97     IMAGE_DOCLIST_JRE += README.txt
  98   else
  99     IMAGE_DOCLIST_JRE += README
 100   endif
 101 endif
 102 
 103 # Paths to these files we need
 104 JDK_DOCFILES   = $(IMAGE_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%)
 105 JRE_DOCFILES   = $(IMAGE_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%)
 106 JDK_DEMOS_AND_SAMPLES_DOCFILES = $(IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES:%=$(JDK_IMAGE_DIR)/%)
 107 
 108 # absolute directory names: note, these must exist prior to build
 109 # time - they are created in the main Makefile.
 110 JRE_IMAGE_BINDIR   = $(JRE_IMAGE_DIR)/bin
 111 
 112 MAINMANIFEST  = $(JDK_TOPDIR)/make/tools/manifest.mf
 113 BEANMANIFEST  = $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
 114 
 115 #
 116 # Man pages
 117 #
 118 
 119 JRE_MAN_PAGES =         \
 120         java.1          \
 121         keytool.1       \
 122         orbd.1          \
 123         pack200.1       \
 124         policytool.1    \
 125         rmid.1          \
 126         rmiregistry.1   \
 127         servertool.1    \
 128         tnameserv.1     \
 129         unpack200.1
 130 
 131 ifndef OPENJDK
 132   JRE_MAN_PAGES += javaws.1
 133 endif
 134 
 135 JDK_MAN_PAGES =            \
 136         $(JRE_MAN_PAGES)   \
 137         appletviewer.1     \
 138         extcheck.1         \
 139         idlj.1             \
 140         jar.1              \
 141         jarsigner.1        \
 142         javac.1            \
 143         javadoc.1          \
 144         javah.1            \
 145         javap.1            \
 146         jcmd.1             \
 147         jconsole.1         \
 148         jdb.1              \
 149         jhat.1             \
 150         jinfo.1            \
 151         jmap.1             \
 152         jps.1              \
 153         jrunscript.1       \
 154         jsadebugd.1        \
 155         jstack.1           \
 156         jstat.1            \
 157         jstatd.1           \
 158         native2ascii.1     \
 159         rmic.1             \
 160         schemagen.1        \
 161         serialver.1        \
 162         wsgen.1            \
 163         wsimport.1         \
 164         xjc.1
 165 
 166 ifndef OPENJDK
 167   JDK_MAN_PAGES += jvisualvm.1
 168 endif
 169 
 170 ifeq ($(PLATFORM), solaris)
 171   MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR)
 172   MAN1SUBDIR=sun/man/man1
 173 endif # solaris
 174 
 175 ifeq ($(PLATFORM), linux)
 176   MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR)
 177   MAN1SUBDIR=man
 178   JA_DIRNAME=ja_JP.UTF-8
 179 endif # linux
 180 
 181 define copy-man-pages
 182 $(MKDIR) -p $1/man/man1
 183 for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \
 184   for manpage in $2; do \
 185     if [ -f $${manbase}/$${manpage} ] ; then \
 186       $(CP) $${manbase}/$${manpage} $1/man/man1 ; \
 187       for ja_encoding in $(JA_TARGET_ENCODINGS); do \
 188         ja_dir="ja"; \
 189         if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \
 190           ja_dir="ja_JP.$${ja_encoding}"; \
 191         fi; \
 192         $(MKDIR) -p $1/man/$${ja_dir}/man1; \
 193         $(CAT) $${manbase}/ja/$${manpage} \
 194           | $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \
 195           | $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \
 196           | $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \
 197             > $1/man/$${ja_dir}/man1/$${manpage}; \
 198       done; \
 199     fi; \
 200   done; \
 201 done
 202 $(java-vm-cleanup)
 203 if [ "$(JA_DIRNAME)" != "" ] ; then \
 204   $(CD) $1/man && $(RM) ja && $(LN) -s $(JA_DIRNAME) ja; \
 205 fi
 206 endef
 207 
 208 
 209 # no compression unless requested
 210 ifndef COMPRESS_JARS
 211   CREATE_JAR_OPTS = c0mf
 212   CREATE_JAR_OPTS_NOMANIFEST = c0f
 213 else
 214   CREATE_JAR_OPTS = cmf
 215   CREATE_JAR_OPTS_NOMANIFEST = cf
 216 endif
 217 
 218 #
 219 # Targets.
 220 #
 221 INITIAL_IMAGE_JRE=initial-image-jre
 222 INITIAL_IMAGE_JDK=initial-image-jdk
 223 ifeq ($(PLATFORM), solaris)
 224   ifeq ($(ARCH_DATA_MODEL), 64)
 225     INITIAL_IMAGE_JRE=initial-image-jre-sol64
 226     INITIAL_IMAGE_JDK=initial-image-jdk-sol64
 227   endif
 228 endif
 229 
 230 images images-clobber \
 231 initial-image-jre initial-image-jdk \
 232 initial-image-jre-sol64 initial-image-jdk-sol64 \
 233 trim-image-jre trim-image-jdk \
 234 identify-image-jre identify-image-jdk \
 235 process-image-jre process-image-jdk \
 236 compare-image \
 237 sec-files sec-files-win jgss-files ::
 238         @$(ECHO) ">>>Making "$@" @ `$(DATE)` ..."
 239 
 240 # Order is important here, trim jre after jdk image is created
 241 ifeq ($(PLATFORM), macosx)
 242 
 243 images:: sanity-images post-sanity-images  \
 244          $(INITIAL_IMAGE_JRE) $(EXTRA_JRE_TARGETS) $(INITIAL_IMAGE_JDK) \
 245          trim-image-jre trim-image-jdk \
 246      identify-image-jre identify-image-jdk \
 247          process-image-jre process-image-jdk sec-files sec-files-win jgss-files \
 248          $(EXTRA_IMAGE_TARGETS)
 249 else
 250 
 251 images:: sanity-images post-sanity-images  \
 252          $(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \
 253          trim-image-jre trim-image-jdk \
 254          identify-image-jre identify-image-jdk \
 255          process-image-jre process-image-jdk sec-files sec-files-win jgss-files 
 256 endif
 257 
 258 # Don't use these
 259 image-jre:: initial-image-jre trim-image-jre identify-image-jre process-image-jre
 260 image-jdk:: initial-image-jdk trim-image-jdk identify-image-jdk process-image-jdk
 261 
 262 #
 263 # Sources we ship in the SDK.
 264 #
 265 SOURCES = \
 266         java/applet                     \
 267         java/awt                        \
 268         java/beans                      \
 269         java/io                         \
 270         java/lang                       \
 271         java/math                       \
 272         java/net                        \
 273         java/nio                        \
 274         java/rmi                        \
 275         java/security                   \
 276         java/sql                        \
 277         java/text                       \
 278         java/util                       \
 279         com/sun/corba                   \
 280         com/sun/image/codec/jpeg        \
 281         com/sun/imageio                 \
 282         com/sun/java/swing              \
 283         com/sun/javadoc                 \
 284         com/sun/jmx                     \
 285         com/sun/source                  \
 286         com/sun/naming                  \
 287         com/sun/security/auth           \
 288         com/sun/security/jgss           \
 289         javax/accessibility             \
 290         javax/annotation                \
 291         javax/script                    \
 292         javax/imageio                   \
 293         javax/lang                      \
 294         javax/management                \
 295         javax/naming                    \
 296         javax/print                     \
 297         javax/rmi                       \
 298         javax/security                  \
 299         javax/sound                     \
 300         javax/sql                       \
 301         javax/swing                     \
 302         javax/tools                     \
 303         javax/xml                       \
 304         com/sun/org/apache              \
 305         com/sun/java_cup                \
 306         com/sun/jlex                    \
 307         org/ietf                        \
 308         org/omg                         \
 309         org/w3c/dom                     \
 310         org/xml/sax
 311 #
 312 # Directories where sources may be found.  If a file with the same path
 313 # name exists in more than one of these places, the one found last on this
 314 # list wins.
 315 #
 316 SOURCE_DIRS = $(SHARE_SRC)/classes $(PLATFORM_SRC)/classes
 317 SOURCE_DIRS += $(GENSRCDIR)
 318 SOURCE_DIRS += $(IMPORTSRCDIR)
 319 ifndef OPENJDK
 320   SOURCE_DIRS += $(CLOSED_SRC)/share/classes
 321 endif
 322 
 323 
 324 #
 325 # Specific files and directories that will be filtered out from above areas.
 326 #
 327 SOURCE_FILTERs = $(SCM_DIRs) ',*'
 328 SOURCE_FILES_filter = $(SOURCE_FILTERs:%=-name % -prune -o)
 329 
 330 #
 331 # Bug 4249883 - excluding some unnecessary packages from com.sun.tools
 332 #
 333 # Bug 5008685 - exclude jconsole from sun/tools
 334 #
 335 TOOLS = \
 336         META-INF/services/com.sun.jdi.connect.Connector \
 337         META-INF/services/com.sun.jdi.connect.spi.TransportService \
 338         sun/tools/asm           \
 339         sun/tools/jar           \
 340         sun/tools/java          \
 341         sun/tools/javac         \
 342         sun/tools/jcmd          \
 343         sun/tools/jps           \
 344         sun/tools/jstat         \
 345         sun/tools/jstatd        \
 346         sun/tools/native2ascii  \
 347         sun/tools/serialver     \
 348         sun/tools/tree          \
 349         sun/tools/util          \
 350         sun/security/tools/jarsigner/JarBASE64Encoder.class \
 351         sun/security/tools/jarsigner/Main.class \
 352         sun/security/tools/jarsigner/JarSignerParameters.class \
 353         sun/security/tools/jarsigner/Resources.class \
 354         sun/security/tools/jarsigner/Resources_ja.class \
 355         sun/security/tools/jarsigner/Resources_zh_CN.class \
 356         sun/security/tools/jarsigner/SignatureFile\$$Block.class \
 357         sun/security/tools/jarsigner/SignatureFile.class \
 358         sun/security/tools/jarsigner/TimestampedSigner.class \
 359         sun/rmi/rmic            \
 360         sun/applet              \
 361         sun/jvmstat             \
 362         com/sun/javadoc         \
 363         com/sun/jdi             \
 364         com/sun/jarsigner       \
 365         com/sun/source          \
 366         com/sun/tools/classfile \
 367         com/sun/tools/doclets   \
 368         com/sun/tools/doclint   \
 369         com/sun/tools/example/debug/expr \
 370         com/sun/tools/example/debug/tty  \
 371         com/sun/tools/extcheck  \
 372         com/sun/tools/hat       \
 373         com/sun/tools/javac     \
 374         com/sun/tools/javadoc   \
 375         com/sun/tools/javah     \
 376         com/sun/tools/javap     \
 377         com/sun/tools/jdeps     \
 378         com/sun/tools/corba     \
 379         com/sun/tools/internal/xjc       \
 380         com/sun/tools/internal/ws       \
 381         META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
 382         META-INF/services/com.sun.tools.internal.xjc.Plugin \
 383         com/sun/istack/internal/tools       \
 384         com/sun/tools/internal/jxc/ap   \
 385         com/sun/tools/internal/ws/wscompile/plugin/at_generated \
 386         com/sun/codemodel       \
 387         com/sun/tools/internal/jxc             \
 388         com/sun/xml/internal/rngom       \
 389         com/sun/xml/internal/xsom       \
 390         org/relaxng/datatype   \
 391         com/sun/xml/internal/dtdparser \
 392         com/sun/tools/jdi       \
 393         com/sun/tools/script/shell      \
 394         META-INF/services/com.sun.tools.attach.spi.AttachProvider \
 395         com/sun/tools/attach    \
 396         sun/tools/attach        \
 397         sun/tools/jstack        \
 398         sun/tools/jinfo         \
 399         sun/tools/jmap
 400 
 401 # classes that go into jfr.jar
 402 JFR_CLASSES_DIRS= \
 403         com/oracle/jrockit/jfr \
 404         oracle/jrockit/jfr
 405 
 406 # classes that go into jsse.jar
 407 JSSE_CLASSES_DIRS = \
 408         sun/security/provider/Sun.class \
 409         sun/security/rsa/SunRsaSign.class \
 410         sun/security/ssl \
 411         com/sun/net/ssl/internal/ssl
 412 
 413 # files under $(OUTPUTDIR) that need to go into sec-bin.zip for builds
 414 # where the corresponding sources are not available
 415 SEC_FILES_DIRS = \
 416         classes/javax/net \
 417         classes/javax/security/cert \
 418         classes/com/sun/net/ssl \
 419         classes/com/sun/security/cert \
 420         classes/sun/net/www/protocol/https \
 421         classes/sun/security/pkcs12 \
 422         classes/sun/security/ssl \
 423         classes/sun/security/krb5/*.class \
 424         classes/sun/security/krb5/internal/*.class \
 425         classes/sun/security/krb5/internal/ccache \
 426         classes/sun/security/krb5/internal/crypto \
 427         classes/sun/security/krb5/internal/ktab \
 428         classes/sun/security/krb5/internal/rcache \
 429         classes/sun/security/krb5/internal/util \
 430         classes/sun/security/jgss/spi/GSSContextSpi.class
 431 
 432 # files under $(OUTPUTDIR) that need to go into sec-windows-win.zip for builds
 433 # where the corresponding sources are not available
 434 SEC_FILES_WIN_DIRS = \
 435         classes/sun/security/krb5/internal/tools
 436 
 437 # files under $(BINDIR) that need to go into jgss_files.zip for builds
 438 # where the corresponding sources are not available
 439 JGSS_FILES_DIRS = \
 440         bin/w2k_lsa_auth.dll \
 441         bin/w2k_lsa_auth.map \
 442         bin/w2k_lsa_auth.pdb
 443 
 444 # The following get removed from the SDK image.
 445 NOTJDKTOOLS = \
 446         java_vm
 447 
 448 # The following get removed from the JRE after the bulk-copy of BINDIR...
 449 NOTJRETOOLS = \
 450         appletviewer$(EXE_SUFFIX) \
 451         extcheck$(EXE_SUFFIX) \
 452         idlj$(EXE_SUFFIX) \
 453         jar$(EXE_SUFFIX) \
 454         jarsigner$(EXE_SUFFIX) \
 455         java-rmi.cgi \
 456         javac$(EXE_SUFFIX) \
 457         javadoc$(EXE_SUFFIX) \
 458         javah$(EXE_SUFFIX) \
 459         javap$(EXE_SUFFIX) \
 460         jdeps$(EXE_SUFFIX) \
 461         jcmd$(EXE_SUFFIX) \
 462         jdb$(EXE_SUFFIX) \
 463         jps$(EXE_SUFFIX) \
 464         jrunscript$(EXE_SUFFIX) \
 465         jstat$(EXE_SUFFIX) \
 466         jstatd$(EXE_SUFFIX) \
 467         jstack$(EXE_SUFFIX) \
 468         packagebean$(SCRIPT_SUFFIX) \
 469         rmic$(EXE_SUFFIX) \
 470         serialver$(EXE_SUFFIX) \
 471         unregbean$(EXE_SUFFIX) \
 472         jconsole$(EXE_SUFFIX) \
 473         jinfo$(EXE_SUFFIX) \
 474         jmap$(EXE_SUFFIX) \
 475         native2ascii$(EXE_SUFFIX) \
 476         xjc$(EXE_SUFFIX) \
 477         wsgen$(EXE_SUFFIX) \
 478         wsimport$(EXE_SUFFIX) \
 479         schemagen$(EXE_SUFFIX) \
 480         jsadebugd$(EXE_SUFFIX) \
 481         jhat$(EXE_SUFFIX)
 482 
 483 # The following get removed from the JRE after the bulk-copy of LIBDIR...
 484 NOTJRELIBS = tools.jar \
 485         jconsole.jar
 486 
 487 ifeq ($(INCLUDE_SA), true)
 488   NOTJRELIBS += sa-jdi.jar
 489 
 490   # The following get removed from the JRE after the bulk-copy of LIBDIR...
 491   NOTJRE_SHARED_LIBS = $(SALIB_NAME)
 492 else
 493   NOTJRE_SHARED_LIBS =
 494 endif
 495 
 496 # Attach library is JDK only
 497 NOTJRE_SHARED_LIBS += $(LIB_PREFIX)attach.$(LIBRARY_SUFFIX)
 498 
 499 #
 500 ###### RULES
 501 
 502 # Processing license files from source area to image area
 503 #    These will be modified to have the platform specific EOL chars.
 504 define process-doc-file
 505 $(prep-target)
 506 $(SED) 's/$$//g' $< > $@
 507 $(CHMOD) 444 $@
 508 endef
 509 
 510 # JDK files
 511 $(JDK_IMAGE_DIR)/%: $(SHARE_JDK_DOC_SRC)/%
 512         $(process-doc-file)
 513 
 514 $(JDK_IMAGE_DIR)/demo/DEMOS_LICENSE: $(SHARE_JDK_DOC_SRC)/DEMOS_LICENSE
 515         $(process-doc-file)
 516 
 517 $(JDK_IMAGE_DIR)/sample/SAMPLES_LICENSE: $(SHARE_JDK_DOC_SRC)/SAMPLES_LICENSE
 518         $(process-doc-file)
 519 
 520 # JRE files
 521 $(JRE_IMAGE_DIR)/%: $(SHARE_JRE_DOC_SRC)/%
 522         $(process-doc-file)
 523 ifeq ($(PLATFORM), windows)
 524 $(JRE_IMAGE_DIR)/README.txt: $(SHARE_JRE_DOC_SRC)/README
 525         $(process-doc-file)
 526 endif
 527 
 528 # Differences tool
 529 DIRDIFF_JARFILE = $(BUILDTOOLJARDIR)/dirdiff.jar
 530 
 531 ######################################################
 532 # List of directories in classes directory that should NOT be in rt.jar
 533 ######################################################
 534 
 535 NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list
 536 
 537 $(NOT_RT_JAR_LIST): FRC
 538         $(prep-target)
 539         $(ECHO) "#\n" >> $@
 540         $(ECHO) "# List of subdirectories not in include in rt.jar" >> $@
 541         $(ECHO) "# Directories must contain trailing '/'." >> $@
 542         $(ECHO) "com/sun/javadoc/" >> $@
 543         $(ECHO) "com/sun/jdi/" >> $@
 544         $(ECHO) "com/sun/jarsigner/" >> $@
 545         $(ECHO) "com/sun/source/" >> $@
 546         $(ECHO) "com/sun/istack/internal/tools/" >> $@
 547         $(ECHO) "META-INF/services/com.sun.jdi.connect.Connector" >> $@
 548         $(ECHO) "META-INF/services/com.sun.jdi.connect.spi.TransportService" >> $@
 549         $(ECHO) "META-INF/services/com.sun.tools.xjc.Plugin" >> $@
 550         $(ECHO) "com/sun/tools/" >> $@
 551         $(ECHO) "sun/jvmstat/" >> $@
 552         $(ECHO) "sun/nio/cs/ext/" >> $@
 553         $(ECHO) "sun/awt/HKSCS.class" >> $@
 554         $(ECHO) "sun/awt/motif/X11GB2312\$$Decoder.class" >> $@
 555         $(ECHO) "sun/awt/motif/X11GB2312\$$Encoder.class" >> $@
 556         $(ECHO) "sun/awt/motif/X11GB2312.class" >> $@
 557         $(ECHO) "sun/awt/motif/X11GBK\$$Encoder.class" >> $@
 558         $(ECHO) "sun/awt/motif/X11GBK.class" >> $@
 559         $(ECHO) "sun/awt/motif/X11KSC5601\$$Decoder.class" >> $@
 560         $(ECHO) "sun/awt/motif/X11KSC5601\$$Encoder.class" >> $@
 561         $(ECHO) "sun/awt/motif/X11KSC5601.class" >> $@
 562         $(ECHO) "sun/rmi/rmic/" >> $@
 563         $(ECHO) "sun/tools/asm/" >> $@
 564         $(ECHO) "sun/tools/java/" >> $@
 565         $(ECHO) "sun/tools/javac/" >> $@
 566         $(ECHO) "com/sun/tools/classfile/" >> $@
 567         $(ECHO) "com/sun/tools/javap/" >> $@
 568         $(ECHO) "com/sun/tools/jdeps/" >> $@
 569         $(ECHO) "sun/tools/jcmd/" >> $@
 570         $(ECHO) "sun/tools/jconsole/" >> $@
 571         $(ECHO) "sun/tools/jps/" >> $@
 572         $(ECHO) "sun/tools/jstat/" >> $@
 573         $(ECHO) "sun/tools/jstatd/" >> $@
 574         $(ECHO) "sun/tools/native2ascii/" >> $@
 575         $(ECHO) "sun/tools/serialver/" >> $@
 576         $(ECHO) "sun/tools/tree/" >> $@
 577         $(ECHO) "sun/tools/util/" >> $@
 578         $(ECHO) "sun/security/tools/jarsigner/JarBASE64Encoder.class" >> $@
 579         $(ECHO) "sun/security/tools/jarsigner/Main.class" >> $@
 580         $(ECHO) "sun/security/tools/jarsigner/JarSignerParameters.class" >> $@
 581         $(ECHO) "sun/security/tools/jarsigner/Resources.class" >> $@
 582         $(ECHO) "sun/security/tools/jarsigner/Resources_ja.class" >> $@
 583         $(ECHO) "sun/security/tools/jarsigner/Resources_zh_CN.class" >> $@
 584         $(ECHO) "sun/security/tools/jarsigner/SignatureFile\$$Block.class" >> $@
 585         $(ECHO) "sun/security/tools/jarsigner/SignatureFile.class" >> $@
 586         $(ECHO) "sun/security/tools/jarsigner/TimestampedSigner.class" >> $@
 587         $(ECHO) "sun/security/provider/Sun.class" >> $@
 588         $(ECHO) "sun/security/rsa/SunRsaSign.class" >> $@
 589         $(ECHO) "sun/security/ssl/" >> $@
 590         $(ECHO) "com/sun/net/ssl/internal/ssl/" >> $@
 591         $(ECHO) "javax/crypto/" >> $@
 592         $(ECHO) "sun/security/internal/" >> $@
 593         $(ECHO) "com/sun/crypto/provider/" >> $@
 594         $(ECHO) "META-INF/services/com.sun.tools.attach.spi.AttachProvider" >> $@
 595         $(ECHO) "com/sun/tools/attach/" >> $@
 596         $(ECHO) "org/relaxng/datatype/" >> $@
 597         $(ECHO) "com/sun/codemodel/" >> $@
 598         $(ECHO) "com/sun/xml/internal/dtdparser/" >> $@
 599         $(ECHO) "com/sun/xml/internal/rngom/" >> $@
 600         $(ECHO) "com/sun/xml/internal/xsom/" >> $@
 601         $(ECHO) "com/sun/tools/script/shell/" >> $@
 602         $(ECHO) "sun/tools/attach/" >> $@
 603         $(ECHO) "sun/tools/jstack/" >> $@
 604         $(ECHO) "sun/tools/jinfo/" >> $@
 605         $(ECHO) "sun/tools/jmap/" >> $@
 606 ifndef OPENJDK
 607 ifndef JAVASE_EMBEDDED
 608         $(ECHO) "com/oracle/jrockit/jfr/" >> $@
 609         $(ECHO) "com/oracle/jrockit/jfr/client/" >> $@
 610         $(ECHO) "com/oracle/jrockit/jfr/management/" >> $@
 611         $(ECHO) "oracle/jrockit/jfr/" >> $@
 612         $(ECHO) "oracle/jrockit/jfr/events/" >> $@
 613         $(ECHO) "oracle/jrockit/jfr/openmbean/" >> $@
 614         $(ECHO) "oracle/jrockit/jfr/parser/" >> $@
 615         $(ECHO) "oracle/jrockit/jfr/settings/" >> $@
 616         $(ECHO) "oracle/jrockit/jfr/tools/" >> $@
 617 endif
 618 endif
 619 
 620 
 621 # File order list for rt.jar
 622 #     - sun.applet is included, till hotjava stops relying on it.
 623 #     - sun.tools.jar is included, needs cleanup.
 624 #
 625 REORDER_TEMPDIR=$(ABS_TEMPDIR)/reorder
 626 TOTAL_JAR_FILELIST=$(REORDER_TEMPDIR)/file_list
 627 
 628 JARFILELISTS_TEMPDIR=$(ABS_TEMPDIR)/jarfilelists
 629 RT_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/rt_jar_list
 630 RES_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/resources_jar_list
 631 
 632 JARREORDER_JARFILE = $(ABS_BUILDTOOLJARDIR)/jarreorder.jar
 633 
 634 $(TOTAL_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_RT_JAR_LIST)
 635         $(prep-target)
 636         $(RM) $@.temp
 637         ($(CD) $(CLASSBINDIR) && \
 638             $(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \
 639                 -o  $@.temp $(ABS_LIBDIR)/classlist $(NOT_RT_JAR_LIST) . )
 640         $(MV) $@.temp $@
 641         @($(CD) $(CLASSBINDIR) && $(java-vm-cleanup))
 642 
 643 # Create jfr.jar
 644 JFR_JAR=
 645 ifndef OPENJDK
 646 ifndef JAVASE_EMBEDDED
 647 JFR_JAR=$(ABS_TEMPDIR)/jfr-orig.jar
 648 $(JFR_JAR): $(OTHER_JAR_MANIFEST_FILE)
 649         $(prep-target)
 650         $(CD) $(CLASSBINDIR) && \
 651             $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
 652                 $(JFR_CLASSES_DIRS) $(BOOT_JAR_JFLAGS)
 653         @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
 654 endif
 655 endif
 656 
 657 # Create the rt.jar file list & non-class files list
 658 
 659 JARSPLIT_JARFILE = $(BUILDTOOLJARDIR)/jarsplit.jar
 660 
 661 $(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \
 662     $(TOTAL_JAR_FILELIST) $(JARSPLIT_JARFILE)
 663         @$(RM) $(RT_JAR_FILELIST) $(RES_JAR_FILELIST)
 664         $(MKDIR) -p $(JARFILELISTS_TEMPDIR)
 665         $(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) \
 666                 $(TOTAL_JAR_FILELIST) \
 667                 -o  $(RT_JAR_FILELIST) $(RES_JAR_FILELIST)
 668         @$(java-vm-cleanup)
 669 
 670 # Create the manifest file.
 671 RT_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/rt_manifest.tmp
 672 $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
 673         $(prep-target)
 674         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 675                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 676                $(MAINMANIFEST) >> $@
 677         $(ECHO) >> $@
 678         $(CAT) $(BEANMANIFEST) >> $@
 679 
 680 OTHER_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/other_manifest.tmp
 681 $(OTHER_JAR_MANIFEST_FILE): $(MAINMANIFEST)
 682         $(prep-target)
 683         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 684                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 685                $(MAINMANIFEST) >> $@
 686 
 687 # Create resources.jar containing non-class files
 688 RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar
 689 $(RESOURCES_JAR): $(RES_JAR_FILELIST) $(OTHER_JAR_MANIFEST_FILE)
 690         $(prep-target)
 691         $(CD) $(CLASSBINDIR) && \
 692             $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
 693                 @$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
 694         @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
 695 
 696 # Create jsse.jar containing SunJSSE implementation classes
 697 JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar
 698 $(JSSE_JAR): $(OTHER_JAR_MANIFEST_FILE)
 699         $(prep-target)
 700         $(CD) $(CLASSBINDIR) && \
 701             $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
 702                 $(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS)
 703         @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
 704 
 705 # Create sec-bin.zip
 706 SEC_FILES_ZIP=$(ABS_TEMPDIR)/sec-bin.zip
 707 sec-files::
 708         $(prep-target)
 709         $(RM) $(SEC_FILES_ZIP)
 710         $(CD) $(OUTPUTDIR) && \
 711                 $(ZIPEXE) -rq9 $(SEC_FILES_ZIP) $(SEC_FILES_DIRS)
 712         @$(java-vm-cleanup)
 713 
 714 # Create sec-windows-bin.zip
 715 SEC_FILES_WIN_ZIP=$(ABS_TEMPDIR)/sec-windows-bin.zip
 716 sec-files-win::
 717 ifeq ($(PLATFORM), windows)
 718         $(prep-target)
 719         $(RM) $(SEC_FILES_WIN_ZIP)
 720         $(CD) $(OUTPUTDIR) && \
 721                 $(ZIPEXE) -rq9 $(SEC_FILES_WIN_ZIP) $(SEC_FILES_WIN_DIRS)
 722         @$(java-vm-cleanup)
 723 endif
 724 
 725 # Create JGSS files that contains the native Kerberos library
 726 JGSS_WIN32_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-i586-bin.zip
 727 JGSS_WIN64_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-x64-bin.zip
 728 jgss-files::
 729 ifeq ($(PLATFORM), windows)
 730         $(prep-target)
 731   ifeq ($(ARCH_DATA_MODEL), 32)
 732         $(RM) $(JGSS_WIN32_FILES_ZIP)
 733         $(CD) $(OUTPUTDIR) && \
 734                 $(ZIPEXE) -rq9 $(JGSS_WIN32_FILES_ZIP) $(JGSS_FILES_DIRS)
 735   else
 736         $(RM) $(JGSS_WIN64_FILES_ZIP)
 737         $(CD) $(OUTPUTDIR) && \
 738                 $(ZIPEXE) -rq9 $(JGSS_WIN64_FILES_ZIP) $(JGSS_FILES_DIRS)
 739   endif
 740         @$(java-vm-cleanup)
 741 endif
 742 
 743 # Create rt.jar
 744 RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar
 745 $(RT_JAR): $(RT_JAR_FILELIST) $(RT_JAR_MANIFEST_FILE)
 746         $(prep-target)
 747         $(CD) $(CLASSBINDIR) && \
 748             $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ \
 749                 @$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
 750         @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
 751 
 752 # Meta-index construction to make core class loaders lazier
 753 
 754 BUILDMETAINDEX_JARFILE = $(ABS_BUILDTOOLJARDIR)/buildmetaindex.jar
 755 
 756 ######################################################
 757 # JRE Image
 758 ######################################################
 759 
 760 initial-image-jre-setup:
 761         $(RM) -r $(JRE_IMAGE_DIR)
 762         $(MKDIR) -p $(JRE_IMAGE_DIR)
 763 
 764 # 64-bit solaris jre image contains only the 64-bit add-on files.
 765 initial-image-jre-sol64:: initial-image-jre-setup
 766         @# Use tar instead of cp to preserve the symbolic links
 767         for dir in bin lib ; do \
 768           ( $(CD) $(OUTPUTDIR) && \
 769                 $(TAR) cf - `$(FIND) $$dir -name '$(ARCH)' -print` | \
 770                 ($(CD) $(JRE_IMAGE_DIR) && $(TAR) xf -) ) ; \
 771         done
 772         @# Remove some files from the jre area
 773         for t in $(NOTJRETOOLS) ; do \
 774             $(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \
 775         done
 776         for l in $(NOTJRELIBS) ; do \
 777             $(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \
 778         done
 779         $(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl'`
 780         $(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl'`
 781 
 782 # Construct an initial jre image (initial jdk jre) no trimming or stripping
 783 # See "initial-image-jdk-setup" for an explanation of the rm of
 784 # drive names like C:
 785 initial-image-jre:: initial-image-jre-setup \
 786                     $(JRE_DOCFILES) \
 787                     $(RT_JAR) $(RESOURCES_JAR) $(JSSE_JAR) $(JFR_JAR) \
 788                     $(BUILDMETAINDEX_JARFILE)
 789         @# Copy in bin directory
 790 ifeq ($(USING_MSYS),true)
 791         # No cpio in MinGW/MSYS
 792         $(CD) $(OUTPUTDIR) && $(TAR) -cf - bin | ($(CD) $(JRE_IMAGE_DIR) && $(TAR) -xpf -)
 793 else
 794         $(CD) $(OUTPUTDIR) && $(FIND) bin -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR)
 795 endif
 796         @# CTE plugin security change require new empty directory lib/applet
 797         $(MKDIR) -p $(JRE_IMAGE_DIR)/lib/applet
 798         @# Copy in lib directory
 799 ifeq ($(USING_MSYS),true)
 800         # No cpio in MinGW/MSYS
 801         $(CD) $(OUTPUTDIR) && $(TAR) -cf - lib | ($(CD) $(JRE_IMAGE_DIR) && $(TAR) -xpf -)
 802 else
 803         $(CD) $(OUTPUTDIR) && $(FIND) lib -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR)
 804 endif
 805 
 806   ifeq ($(USING_CYGWIN),true)
 807           $(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]:
 808           $(RM) -rf $(OUTPUTDIR)/[A-Za-z]:
 809   endif
 810         @# Make sure all directories are read/execute for everyone
 811         $(CHMOD) a+rx `$(FIND) $(JRE_IMAGE_DIR) -type d`
 812         @# Remove some files from the jre area
 813         for t in $(NOTJRETOOLS) ; do \
 814             $(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \
 815         done
 816         for l in $(NOTJRELIBS) ; do \
 817             $(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \
 818         done
 819         @# Remove orb.idl and ir.idl from jre
 820         $(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl' -exec $(RM) \{} \;
 821         $(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl' -exec $(RM) \{} \;
 822         @# Copy in rt.jar & resources.jar file
 823         $(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar
 824         $(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar
 825         $(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar
 826 ifneq ($(JFR_JAR),)
 827         $(CP) $(JFR_JAR) $(JRE_IMAGE_DIR)/lib/jfr.jar
 828 endif
 829         @# Generate meta-index to make boot and extension class loaders lazier
 830         $(CD) $(JRE_IMAGE_DIR)/lib && \
 831             $(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \
 832                 -o meta-index *.jar
 833         @$(CD) $(JRE_IMAGE_DIR)/lib && $(java-vm-cleanup)
 834         $(CD) $(JRE_IMAGE_DIR)/lib/ext && \
 835             $(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \
 836                 -o meta-index *.jar
 837         @$(CD) $(JRE_IMAGE_DIR)/lib/ext && $(java-vm-cleanup)
 838 ifeq ($(PLATFORM), macosx)
 839         @#install jobjc, apple mac only
 840         $(CP) $(OUTPUTDIR)/JObjC.build/JObjC.jar $(JRE_IMAGE_DIR)/lib/JObjC.jar
 841 endif
 842 ifeq ($(PLATFORM), windows)
 843         @# Remove certain *.lib files
 844         $(CD) $(JRE_IMAGE_DIR)/lib && \
 845             $(RM) java.$(LIB_SUFFIX) jvm.$(LIB_SUFFIX) \
 846                   awt.$(LIB_SUFFIX) jawt.$(LIB_SUFFIX)
 847   ifeq ($(ARCH_DATA_MODEL), 32)
 848         @# The Java Kernel JRE image ships with a special VM.  It is not included
 849         @# in the full JRE image, so remove it.  Also, is it only for 32-bit windows.
 850         $(CD) $(JRE_IMAGE_DIR)/bin && $(RM) -r kernel
 851   endif
 852 endif # Windows
 853 ifneq ($(PLATFORM), windows)
 854         $(call copy-man-pages,$(JRE_IMAGE_DIR),$(JRE_MAN_PAGES))
 855 endif # !windows
 856 
 857 # Trim out any extra files not for the jre shipment but wanted in the jdk jre.
 858 #   (Note the jdk WILL want the jre image before this trimming)
 859 #   Removes server VM on Windows 32bit.
 860 #   Remove certain shared libraries that should not be in the jre image
 861 #      but should be in the jdk jre image.
 862 trim-image-jre::
 863 ifeq ($(PLATFORM), windows)
 864   ifeq ($(ARCH_DATA_MODEL), 32)
 865         $(RM) -r $(JRE_IMAGE_DIR)/bin/server
 866   endif
 867   ifdef NOTJRE_SHARED_LIBS
 868         for l in $(NOTJRE_SHARED_LIBS) ; do \
 869             $(RM) $(JRE_IMAGE_DIR)/bin/$$l ; \
 870         done ;
 871   endif
 872 else # PLATFORM
 873   ifdef NOTJRE_SHARED_LIBS
 874         for l in $(NOTJRE_SHARED_LIBS) ; do \
 875             $(RM) $(JRE_IMAGE_DIR)/lib/$(LIBARCH)/$$l ; \
 876         done ;
 877   endif
 878 endif # PLATFORM
 879 
 880 # Get list of all binary (COFF or Elf) files in the jre
 881 JRE_BIN_LIST=$(TEMPDIR)/jre-bin-files.list
 882 $(JRE_BIN_LIST):
 883         $(RM) $@
 884 ifeq ($(PLATFORM), windows)
 885         $(FIND) $(JRE_IMAGE_DIR)/bin -type f -name \*.exe \
 886            -o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" > $@
 887 else
 888         $(FIND) $(JRE_IMAGE_DIR)/lib -type f -name \*.$(LIB_SUFFIX) >> $@
 889 # The FILE command reports .debuginfo files as "ELF", but we don't want
 890 # those files in the JRE_BIN_LIST file. EXE_SUFFIX is empty on non-Windows.
 891         $(FILE) `$(FIND) $(JRE_IMAGE_DIR)/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \
 892             | $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@
 893 endif
 894 
 895 # Post process the image (strips and mcs on Elf files we are shipping)
 896 #   (Note the jdk WILL want the jre image before this processing)
 897 process-image-jre:: $(JRE_BIN_LIST)
 898 ifneq ($(POST_STRIP_PROCESS), )
 899         @for f in `$(CAT) $(JRE_BIN_LIST)`; do \
 900           $(CHMOD) u+w $${f}; \
 901           $(ECHO) $(POST_STRIP_PROCESS) $${f}; \
 902           $(POST_STRIP_PROCESS) $${f}; \
 903           $(CHMOD) go-w $${f}; \
 904         done
 905 endif
 906 ifneq ($(POST_MCS_PROCESS), )
 907         @for f in `$(CAT) $(JRE_BIN_LIST)`; do \
 908           $(CHMOD) u+w $${f}; \
 909           $(ECHO) $(POST_MCS_PROCESS) $${f}; \
 910           $(POST_MCS_PROCESS) $${f}; \
 911           $(CHMOD) go-w $${f}; \
 912         done
 913 endif
 914         @for f in `$(CAT) $(JRE_BIN_LIST)`; do \
 915           $(call binary_file_verification,$${f}); \
 916         done
 917         $(RM) $(JRE_BIN_LIST)
 918 
 919 ######################################################
 920 # JDK Image
 921 ######################################################
 922 # Note: cpio ($(CPIO)) sometimes leaves directories without rx access.
 923 
 924 # REMIND: the $(RM) calls for patterns like c:, d: following $(CPIO)
 925 # are because the 1.7.x versions of cygwin's cpio command drops these
 926 # in the working directory if the output path begins with that pattern
 927 # The one for the output jre subdirectory gets there because cpio sees its
 928 # own dropping in the input jre subdirectory. Need to remove both of these.
 929 # We can remove these RM's if someone figures out how to stop cpio from
 930 # leaving these there.
 931 # Note that its a real problem not because this directory can end up in the
 932 # bundle (I think it won't since it not in bin or lib and those are the
 933 # only places from which we copy everything), but because the presence
 934 # of this file causes cygwin's find to bomb out, thus breaking the build
 935 # in "install".
 936 
 937 initial-image-jdk-setup:
 938         $(RM) -r $(JDK_IMAGE_DIR)
 939         $(MKDIR) -p $(JDK_IMAGE_DIR)/jre
 940 ifeq ($(USING_MSYS),true)
 941         ($(CD) $(JRE_IMAGE_DIR) && $(TAR) -cf - . \
 942               | ($(CD) $(JDK_IMAGE_DIR)/jre && $(TAR) -xpf -))
 943 else
 944         ($(CD) $(JRE_IMAGE_DIR) && $(FIND) . -depth -print \
 945               | $(CPIO) -pdum $(JDK_IMAGE_DIR)/jre )
 946 endif
 947   ifeq ($(USING_CYGWIN),true)
 948           $(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]:
 949           $(RM) -rf $(JDK_IMAGE_DIR)/jre/[A-Za-z]:
 950   endif
 951         $(RM) -rf $(JDK_IMAGE_DIR)/jre/man
 952         $(CHMOD) a+rx `$(FIND) $(JDK_IMAGE_DIR) -type d`
 953 
 954 initial-image-jdk64-bindemos:
 955         for dir in bin demo ; do \
 956           ( $(CD) $(OUTPUTDIR) && \
 957                 $(TAR) cf - `$(FIND) $$dir -name '$(LIBARCH)' -print` | \
 958                 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) ) ; \
 959         done
 960 
 961 # Solaris 64 bit image is special
 962 initial-image-jdk-sol64:: initial-image-jdk-setup \
 963                           initial-image-jdk64-bindemos
 964 
 965 # DB files to add
 966 ifdef OPENJDK
 967 
 968 initial-image-jdk-db:
 969 
 970 else
 971 
 972 # Create the list of db *.zip files to bundle with jdk
 973 ABS_DB_PATH  :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
 974 DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null)
 975 
 976 # Java DB image. Move the Java DB demo directory into the JDK's demo
 977 # dir and in the process, rename it to db.  Also remove index.html,
 978 # since it presumes docs are co-located. Also remove register.html (no
 979 # longer relevant).
 980 initial-image-jdk-db: $(DB_ZIP_LIST)
 981         $(MKDIR) -p $(JDK_IMAGE_DIR)/db
 982         for d in $(DB_ZIP_LIST); do \
 983           ($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
 984         done
 985         $(CP) $(ABS_DB_PATH)/README-JDK.html $(JDK_IMAGE_DIR)/db
 986 ifndef NO_DEMOS
 987         $(RM) -rf $(DEMODIR)/db
 988         $(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
 989         $(CP) $(ABS_DB_PATH)/README-JDK-DEMOS.html $(DEMODIR)/db/
 990 else
 991         $(RM) -rf $(JDK_IMAGE_DIR)/db/demo
 992 endif
 993         $(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html
 994 endif
 995 
 996 # The launcher source files we need for src.zip
 997 FILES_launcher = $(wildcard $(SHARE_SRC)/bin/*) \
 998                  $(wildcard $(PLATFORM_SRC)/bin/java_md*)
 999 
1000 # Standard jdk image
1001 initial-image-jdk:: initial-image-jdk-setup \
1002                     initial-image-jdk-db \
1003                     $(JDK_DOCFILES) \
1004                     $(JDK_DEMOS_AND_SAMPLES_DOCFILES)
1005         $(MKDIR) $(JDK_IMAGE_DIR)/lib
1006         @#
1007         @# Copy in the jars in lib that only belong in the JDK
1008         @#
1009         for l in $(NOTJRELIBS); do \
1010             if [ -r $(LIBDIR)/$$l ]; then \
1011                 $(CP) $(LIBDIR)/$$l $(JDK_IMAGE_DIR)/lib; \
1012             fi; \
1013         done
1014   ifeq ($(PLATFORM), windows)
1015         @#
1016         @# lib/
1017         @#
1018         $(CP) $(LIBDIR)/$(LIB_PREFIX)jvm.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib
1019         $(CP) $(LIBDIR)/$(LIB_PREFIX)jawt.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib
1020         @#
1021         @# bin/
1022         @#
1023         @# copy all EXE files and only certain DLL files from BINDIR
1024         $(MKDIR) -p $(JDK_IMAGE_DIR)/bin
1025         $(CP) $(BINDIR)/*$(EXE_SUFFIX) $(JDK_IMAGE_DIR)/bin
1026         $(CP) $(BINDIR)/jli.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin
1027     ifeq ($(COMPILER_VERSION), VS2010)
1028         $(CP) $(BINDIR)/msvc*100.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin
1029     endif
1030   else # PLATFORM
1031         @#
1032         @# bin/
1033         @#
1034         ($(CD) $(BINDIR)/.. && $(TAR) cf - \
1035             `$(FIND) bin \( -type f -o -type l \) -print `) | \
1036             ($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -)
1037   endif # PLATFORM
1038         @#
1039         @# files that might not exist need to be touched.
1040         @#
1041         $(TOUCH) $(CLASSBINDIR)/META-INF/services/com.sun.tools.internal.xjc.Plugin
1042         @#
1043         @# lib/tools.jar
1044         @#
1045         $(CD) $(CLASSBINDIR) && \
1046             $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS_NOMANIFEST) $(ABS_LIBDIR)/tools.jar \
1047                 $(TOOLS) $(BOOT_JAR_JFLAGS)
1048         @$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
1049         $(CP) $(LIBDIR)/tools.jar $(JDK_IMAGE_DIR)/lib/tools.jar
1050         @#
1051         @# lib/ct.sym
1052         @#
1053         $(MKDIR) -p $(OUTPUTDIR)/symbols/META-INF/sym
1054         $(JAVAC_CMD) -XDprocess.packages -proc:only \
1055             -processor com.sun.tools.javac.sym.CreateSymbols \
1056             -Acom.sun.tools.javac.sym.Jar=$(RT_JAR) \
1057             -Acom.sun.tools.javac.sym.Dest=$(OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
1058             $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
1059         $(BOOT_JAR_CMD) $(CREATE_JAR_OPTS_NOMANIFEST) $(LIBDIR)/ct.sym \
1060             -C $(OUTPUTDIR)/symbols META-INF $(BOOT_JAR_JFLAGS)
1061         @$(java-vm-cleanup)
1062         $(CP) $(LIBDIR)/ct.sym $(JDK_IMAGE_DIR)/lib/ct.sym
1063         @#
1064         @# CORBA supported orb.idl and ir.idl should be copied to lib
1065         @#
1066         $(CP) $(LIBDIR)/orb.idl $(JDK_IMAGE_DIR)/lib/orb.idl
1067         $(CP) $(LIBDIR)/ir.idl $(JDK_IMAGE_DIR)/lib/ir.idl
1068   ifeq ($(PLATFORM), linux)
1069         @#
1070         @# on Linux copy jexec from jre/lib to /lib
1071         @#
1072         $(CP) $(LIBDIR)/jexec $(JDK_IMAGE_DIR)/lib/jexec
1073   endif # PLATFORM
1074         @#
1075         @# src.zip
1076         @#
1077         $(MKDIR) -p $(JDK_IMAGE_DIR)/src
1078         @#
1079         @# The '*-*' pattern in the find command excludes files named with dashes,
1080         @# such as the java.nio templates for generated classes
1081         @#
1082         @# The Linux 'tar' command cannot handle the huge command line argument
1083         @# generated by the more efficient solaris/windows method of copying files.
1084         @# So for Linux, make use of the -T option (like Solaris' -I option) of
1085         @# obtaining the list of files from a file. MKS tar has no such option.
1086 
1087   ifneq (,$(findstring $(PLATFORM), linux macosx))
1088         for d in $(SOURCE_DIRS); do \
1089           $(RM) $(ABS_TEMPDIR)/src-files.list; \
1090           ($(CD) $$d &&  \
1091             for sd in $(SOURCES) ; do \
1092               if [ -d $$sd ] ; then \
1093                 $(FIND) $$sd $(SOURCE_FILES_filter) \
1094                         -name '*.java' -print \
1095                         >> $(ABS_TEMPDIR)/src-files.list ; \
1096               fi; \
1097             done ; \
1098           ) ; \
1099           if [ -f  $(ABS_TEMPDIR)/src-files.list ] ; then \
1100             ($(CD) $$d && $(TAR) cf - -T $(ABS_TEMPDIR)/src-files.list ) \
1101                | ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \
1102           fi; \
1103         done
1104   else
1105         for d in $(SOURCE_DIRS); do \
1106           $(RM) $(ABS_TEMPDIR)/src-files.list; \
1107           ($(CD) $$d && \
1108             for sd in $(SOURCES) ; do \
1109               if [ -d $$sd ] ; then \
1110                 $(FIND) $$sd $(SOURCE_FILES_filter) \
1111                         -name '*.java' -print \
1112                         >> $(ABS_TEMPDIR)/src-files.list ; \
1113               fi; \
1114             done ; \
1115           ) ; \
1116           if [ -f  $(ABS_TEMPDIR)/src-files.list ] ; then \
1117             ($(CD) $$d && $(TAR) cf - `$(CAT) $(ABS_TEMPDIR)/src-files.list`) \
1118               | ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \
1119           fi; \
1120         done
1121   endif
1122         $(RM) $(ABS_TEMPDIR)/src-files.list
1123         $(CHMOD) -R +w $(JDK_IMAGE_DIR)/src
1124         $(MKDIR) -p $(JDK_IMAGE_DIR)/src/launcher
1125         $(CP) $(FILES_launcher) $(JDK_IMAGE_DIR)/src/launcher
1126         $(CD) $(JDK_IMAGE_DIR)/src && $(ZIPEXE) -qr ../src.zip *
1127         $(RM) -r $(JDK_IMAGE_DIR)/src
1128         @#
1129         @# demo, include
1130         @#
1131 ifndef NO_DEMOS
1132         $(CP) -r -f $(DEMODIR) $(JDK_IMAGE_DIR)
1133 endif
1134 ifndef NO_SAMPLES
1135         $(CP) -r -f $(SAMPLEDIR) $(JDK_IMAGE_DIR)
1136 endif
1137         $(CP) -r $(INCLUDEDIR) $(JDK_IMAGE_DIR)
1138         @#
1139         @# Swing BeanInfo generation
1140         @#
1141         $(CD) javax/swing/beaninfo && $(MAKE) swing-1.2-beans
1142 ifneq ($(PLATFORM), windows)
1143         $(call copy-man-pages,$(JDK_IMAGE_DIR),$(JDK_MAN_PAGES))
1144 endif # !windows
1145 
1146 # Trim out files we don't want to ship
1147 trim-image-jdk::
1148         @# Remove tools that should not be part of SDK.
1149         for t in $(NOTJDKTOOLS); do \
1150             $(RM) $(JDK_IMAGE_DIR)/bin/$${t}$(EXE_SUFFIX); \
1151         done
1152 
1153 # Get list of binary (COFF or Elf) files in the jdk
1154 JDK_BIN_LIST=$(TEMPDIR)/jdk-bin-files.list
1155 $(JDK_BIN_LIST):
1156 ifeq ($(PLATFORM), windows)
1157         $(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f -name \*.exe \
1158            -o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" > $@
1159         $(FIND) $(JDK_IMAGE_DIR)/bin -type f -name \*.exe \
1160            -o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" >> $@
1161 else
1162         $(RM) $@
1163         $(FIND) $(JDK_IMAGE_DIR)/jre/lib -type f -name \*.$(LIB_SUFFIX) >> $@
1164 # The FILE command reports .debuginfo files as "ELF", but we don't want
1165 # those files in the JDK_BIN_LIST file. EXE_SUFFIX is empty on non-Windows.
1166         $(FILE) `$(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \
1167             | $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@
1168         file `$(FIND) $(JDK_IMAGE_DIR)/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \
1169             | $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@
1170 endif
1171 
1172 # Post process the image (strips and mcs on files we are shipping)
1173 process-image-jdk:: $(JDK_BIN_LIST)
1174 ifneq ($(POST_STRIP_PROCESS), )
1175         @for f in `$(CAT) $(JDK_BIN_LIST)`; do \
1176           $(CHMOD) u+w $${f}; \
1177           $(ECHO) $(POST_STRIP_PROCESS) $${f}; \
1178           $(POST_STRIP_PROCESS) $${f}; \
1179           $(CHMOD) go-w $${f}; \
1180         done
1181 endif
1182 ifneq ($(POST_MCS_PROCESS), )
1183         @for f in `$(CAT) $(JDK_BIN_LIST)`; do \
1184           $(CHMOD) u+w $${f}; \
1185           $(ECHO) $(POST_MCS_PROCESS) $${f}; \
1186           $(POST_MCS_PROCESS) $${f}; \
1187           $(CHMOD) go-w $${f}; \
1188         done
1189 endif
1190         @for f in `$(CAT) $(JDK_BIN_LIST)`; do \
1191           $(call binary_file_verification,$${f}); \
1192         done
1193         $(RM) $(JDK_BIN_LIST)
1194 
1195 ###################################################################
1196 # What did we build
1197 ###################################################################
1198 
1199 # The jdk text info file that lives at the root of the install image.
1200 
1201 JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release
1202 JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release
1203 
1204 # Common way to emit a line into the release or info file
1205 define info-file-item # name value
1206 $(PRINTF) '%s="%s"\n' $1 $2 >> $@
1207 endef
1208 
1209 # Values to emit
1210 MINIMUM_OS_NAME    := $(REQUIRED_OS_NAME)
1211 MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION)
1212 MINIMUM_OS_ARCH    := $(ARCH)
1213 ALL_SOURCE_TIPS     = $(shell \
1214   if [ -f $(SOURCE_TIPS) ] ; then \
1215     $(CAT) $(SOURCE_TIPS) ; \
1216   fi)
1217 
1218 $(JDK_INFO_FILE): FRC
1219         $(prep-target)
1220         $(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
1221         $(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
1222         $(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
1223         $(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
1224         $(call info-file-item, "SOURCE",       "$(ALL_SOURCE_TIPS)")
1225 
1226 # Create release file to identify this image
1227 identify-image-jdk:: $(JDK_INFO_FILE)
1228 
1229 $(JRE_INFO_FILE): FRC
1230         $(prep-target)
1231         $(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)")
1232         $(call info-file-item, "OS_NAME",      "$(MINIMUM_OS_NAME)")
1233         $(call info-file-item, "OS_VERSION",   "$(MINIMUM_OS_VERSION)")
1234         $(call info-file-item, "OS_ARCH",      "$(MINIMUM_OS_ARCH)")
1235         $(call info-file-item, "SOURCE",       "$(ALL_SOURCE_TIPS)")
1236 
1237 # Create release file to identify this image
1238 identify-image-jre:: $(JRE_INFO_FILE)
1239 
1240 ###################################################################
1241 # What do we compare against
1242 ###################################################################
1243 
1244 # The temporary files and areas created
1245 TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre
1246 TEMP_PREV_JDK_BASE_DIR=$(TEMPDIR)/previous_jdk
1247 TEMP_PREV_JRE_COMPARISON=$(TEMP_PREV_JRE_BASE_DIR)/previous_jre_comparison.txt
1248 TEMP_PREV_JDK_COMPARISON=$(TEMP_PREV_JDK_BASE_DIR)/previous_jdk_comparison.txt
1249 TEMP_PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_BASE_DIR)/jre$(PREVIOUS_JDK_VERSION)
1250 TEMP_PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_BASE_DIR)/jdk$(PREVIOUS_JDK_VERSION)
1251 
1252 # unbundle(sourcedir,bundlename,destdir)
1253 #    logic is slightly different if a .tar.gz file (linux)
1254 define unbundle
1255 $(RM) -r $3
1256 $(MKDIR) -p $3
1257 $(CP) $1 $3
1258 if [ "`$(BASENAME) $2 .gz`" != "$2" ] ; then \
1259   ( $(CD) $3 && ( $(GUNZIP) -dc $2 | $(TAR) xf - ) && $(RM) $2 ); \
1260 else \
1261   ( $(CD) $3 && $(TAR) xf $2 && $(RM) $2 ); \
1262 fi
1263 ( $(CD) $3 && $(RM) $2 )
1264 endef
1265 
1266 # In general, ignore the fastdebug tree, and changes in the demo and sample area
1267 COMPARE_FILTER = | $(EGREP) -v /fastdebug/ | $(EGREP) -v /demo/ | $(EGREP) -v /sample/
1268 
1269 # If a previuous image is provided, no need to install it.
1270 ifdef PREVIOUS_RELEASE_IMAGE
1271 
1272   # Just use the pre-installed images
1273   PREV_JRE_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE)/jre
1274   PREV_JDK_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE)
1275 
1276 else
1277 
1278   # Use the temp images we will create
1279   PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_IMAGE_DIR)
1280   PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_IMAGE_DIR)
1281 
1282 # Force the installation in this case
1283 compare-image:: install-previous-sanity install-previous-jre install-previous-jdk
1284 
1285 # Unbundle the jre
1286 $(TEMP_PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JRE_BUNDLE)
1287         $(call unbundle,$(PREVIOUS_JRE_BUNDLE),$(PREVIOUS_JRE_FILE),$(TEMP_PREV_JRE_BASE_DIR))
1288         $(TOUCH) $@
1289 
1290 # Unbundle the jdk
1291 $(TEMP_PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JDK_BUNDLE)
1292         $(call unbundle,$(PREVIOUS_JDK_BUNDLE),$(PREVIOUS_JDK_FILE),$(TEMP_PREV_JDK_BASE_DIR))
1293         $(TOUCH) $@
1294 
1295 endif
1296 
1297 # Make sure all images have a java in them (used as the touch file)
1298 install-previous-sanity:
1299         @if [ ! -f $(PREVIOUS_JRE_BUNDLE) ]; then \
1300           $(ECHO) "ERROR: You do not have access to the previous java release jre bundles. \n" \
1301             "      Please check your access to \n" \
1302             "          $(PREVIOUS_JRE_BUNDLE) \n" \
1303             "      and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JRE_FILE \n" \
1304             "      This will affect you if you build the images target. \n" \
1305             "" >> $(ERROR_FILE) ; \
1306         fi
1307         @if [ ! -f $(PREVIOUS_JDK_BUNDLE) ]; then \
1308           $(ECHO) "ERROR: You do not have access to the previous java release sdk bundles. \n" \
1309           "      Please check your access to \n" \
1310           "          $(PREVIOUS_sdk_BUNDLE) \n" \
1311           "      and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JDK_FILE. \n" \
1312           "      This will affect you if you build the images target. \n" \
1313           "" >> $(ERROR_FILE) ; \
1314         fi
1315 install-previous-jre: $(PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX)
1316 install-previous-jdk: $(PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX)
1317 
1318 # Create the jre comparison report
1319 $(TEMP_PREV_JRE_COMPARISON): install-previous-jre $(DIRDIFF_JARFILE)
1320         $(prep-target)
1321         $(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \
1322            $(PREV_JRE_IMAGE_DIR) $(JRE_IMAGE_DIR) | $(SORT) > $@
1323         @$(java-vm-cleanup)
1324 
1325 # Create the jdk comparison report
1326 $(TEMP_PREV_JDK_COMPARISON): install-previous-jdk $(DIRDIFF_JARFILE)
1327         $(prep-target)
1328         $(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \
1329            $(PREV_JDK_IMAGE_DIR) $(JDK_IMAGE_DIR) | $(SORT) > $@
1330         @$(java-vm-cleanup)
1331 
1332 # Clean up names in the messages printed out
1333 CAT_FILTER = $(SED) -e "s|$(JDK_IMAGE_DIR)|JDK_IMAGE|g" \
1334                     -e "s|$(JRE_IMAGE_DIR)|JRE_IMAGE|g"
1335 
1336 # Report on the jre image comparison
1337 compare-image-jre: $(TEMP_PREV_JRE_COMPARISON)
1338         @$(ECHO) "JRE Image Comparison to version $(PREVIOUS_JDK_VERSION)"
1339         @$(ECHO) "  Previous: $(PREV_JRE_IMAGE_DIR)"
1340         @$(ECHO) "  Current:  $(JRE_IMAGE_DIR)"
1341         @$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER)
1342         ( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE)
1343 
1344 # Report on the jdk image comparison
1345 compare-image-jdk: $(TEMP_PREV_JDK_COMPARISON)
1346         @$(ECHO) "JDK Image Comparison to version $(PREVIOUS_JDK_VERSION)"
1347         @$(ECHO) "  Previous: $(PREV_JDK_IMAGE_DIR)"
1348         @$(ECHO) "  Current:  $(JDK_IMAGE_DIR)"
1349         $(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER)
1350         ( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE)
1351 
1352 # Do both image comparisons
1353 compare-image:: compare-image-jre compare-image-jdk
1354 
1355 # Clean up any temp images and reports
1356 compare-image-clobber:
1357         $(RM) -r $(TEMP_PREV_JRE_BASE_DIR)
1358         $(RM) -r $(TEMP_PREV_JDK_BASE_DIR)
1359 
1360 ######################################################
1361 # clobber
1362 ######################################################
1363 images-clobber::
1364         $(RM) -r $(REORDER_TEMPDIR)
1365         $(RM) -r $(JARFILELISTS_TEMPDIR)
1366 ifeq ($(ARCH_DATA_MODEL), 32)
1367         $(CD) javax/swing/beaninfo && $(MAKE) swingbeans.clobber
1368         $(RM) -r $(CLASSBINDIR)/META-INF
1369         $(RM) $(TEMPDIR)/tmp.jar
1370 endif
1371 ifeq ($(PLATFORM), linux)
1372         $(RM) -r $(OUTPUTDIR)/$(ARCH)
1373 endif
1374 ifeq ($(PLATFORM), windows)
1375         $(RM) $(TEMPDIR)/rebase.input
1376 endif
1377         $(RM) -r $(JDK_IMAGE_DIR)
1378         $(RM) -r $(JRE_IMAGE_DIR)
1379 
1380 images images-clobber::
1381         @$(ECHO) ">>>Finished making "$@" @ `$(DATE)` ..."
1382         @$(java-vm-cleanup)
1383 
1384 .PHONY: images image-jre image-jdk \
1385         initial-image-jre initial-image-jdk \
1386         initial-image-jre-sol64 initial-image-jdk-sol64 \
1387         initial-image-jdk-setup \
1388         initial-image-jdk-db \
1389         initial-image-jdk64-bindemos \
1390         initial-image-jre-setup \
1391         trim-image-jre trim-image-jdk \
1392         process-image-jre process-image-jdk \
1393         identify-image-jre identify-image-jdk \
1394         install-previous-jre install-previous-jdk \
1395         compare-image-jre compare-image-jdk \
1396         compare-image compare-image-clobber \
1397         images-clobber
1398 
1399 # Force rule
1400 FRC: