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