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