jdk/makefiles/CreateJars.gmk
author amurillo
Wed, 15 Aug 2012 16:49:38 -0700
changeset 13465 d3fc5d192448
parent 13353 a043d6778c4c
child 13583 dc0017b1a452
permissions -rw-r--r--
7191765: make jdk8 the default jprt release for hs24 Reviewed-by: jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     2
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     4
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    10
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    16
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    20
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    23
# questions.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    24
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    25
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    26
include $(SPEC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    27
include MakeBase.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    28
include JavaCompilation.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
include Setup.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    30
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    31
default: all
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    33
include Tools.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    34
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    35
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    36
# This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    37
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    38
MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    39
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    40
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    41
BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    42
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    43
JARS:=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    44
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    45
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    46
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    47
JCONSOLE_JAR_DEPS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    48
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/sun/tools/jconsole/ -name "_the.package") \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    49
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/com/sun/tools/jconsole/ -name "_the.package")
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    50
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    51
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,$(JCONSOLE_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    52
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    53
		SUFFIXES:=.class .gif .png .properties,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    54
		INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    55
		JARMAIN:=sun.tools.jconsole.JConsole,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    56
		JAR:=$(JDK_OUTPUTDIR)/lib/jconsole.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    57
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    58
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    59
JARS+=$(JDK_OUTPUTDIR)/lib/jconsole.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    60
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    61
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    62
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    63
DNS_JAR_DEPS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    64
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/sun/net/spi/nameservice/dns/ -name "_the.package") \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    65
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    66
$(eval $(call SetupArchive,BUILD_DNS_JAR,$(DNS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    67
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    68
		INCLUDES:=sun/net/spi/nameservice/dns,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    69
		EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    70
		JAR:=$(JDK_OUTPUTDIR)/lib/ext/dnsns.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    71
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    72
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    73
JARS+=$(JDK_OUTPUTDIR)/lib/ext/dnsns.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    74
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    75
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    76
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    77
LOCALEDATA_INCLUDE_PATTERNS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    78
	sun/text/resources/*_ar* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    79
	sun/text/resources/*_hi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    80
	sun/text/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    81
	sun/text/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    82
	sun/text/resources/*_ja* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    83
	sun/text/resources/*_ko* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    84
	sun/text/resources/*_th.* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    85
	sun/text/resources/*_th_* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    86
	sun/text/resources/*_vi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    87
	sun/text/resources/*_zh* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    88
	sun/text/resources/*Data_th \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    89
	sun/text/resources/thai_dict \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    90
	sun/util/resources/*_ar* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    91
	sun/util/resources/*_hi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    92
	sun/util/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    93
	sun/util/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    94
	sun/util/resources/*_ja* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    95
	sun/util/resources/*_ko* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    96
	sun/util/resources/*_th_* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    97
	sun/util/resources/*_th.* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    98
	sun/util/resources/*_vi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    99
	sun/util/resources/*_zh*
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   100
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   101
LOCALEDATA_INCLUDES := $(patsubst $(JDK_OUTPUTDIR)/classes/%,%,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   102
	$(foreach i,$(LOCALEDATA_INCLUDE_PATTERNS), $(wildcard $(JDK_OUTPUTDIR)/classes/$i)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   103
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   104
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   105
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   106
		SUFFIXES:=.class _dict _th,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   107
		INCLUDES:=$(LOCALEDATA_INCLUDES),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   108
		JAR:=$(JDK_OUTPUTDIR)/lib/ext/localedata.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   109
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   110
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   111
JARS+=$(JDK_OUTPUTDIR)/lib/ext/localedata.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   112
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   113
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   114
# rt.jar and resources.jar are being built in the same way as in the old build. They require
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   115
# the files to be in a certain order and converting that is not easy and will not be needed
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   116
# in jigsaw anyway.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   117
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   118
# Exclude list for rt.jar and resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   119
RT_JAR_EXCLUDES := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   120
	com/sun/javadoc \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   121
	com/sun/jdi \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   122
	com/sun/jarsigner \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   123
	com/sun/source \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   124
	com/sun/istack/internal/tools \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   125
	META-INF/services/com.sun.jdi.connect.Connector \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   126
	META-INF/services/com.sun.jdi.connect.spi.TransportService \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   127
	META-INF/services/com.sun.tools.xjc.Plugin \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   128
	com/sun/tools \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   129
	sun/jvmstat \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   130
	sun/nio/cs/ext \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   131
	sun/awt/HKSCS.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   132
	sun/awt/motif/X11GB2312\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   133
	sun/awt/motif/X11GB2312\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   134
	sun/awt/motif/X11GB2312.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   135
	sun/awt/motif/X11GBK\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   136
	sun/awt/motif/X11GBK.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   137
	sun/awt/motif/X11KSC5601\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   138
	sun/awt/motif/X11KSC5601\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   139
	sun/awt/motif/X11KSC5601.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   140
	META-INF/services/java.nio.charset.spi.CharsetProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   141
	sun/rmi/rmic \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   142
	sun/tools/asm \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   143
	sun/tools/java \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   144
	sun/tools/javac \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   145
	com/sun/tools/classfile \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   146
	com/sun/tools/javap \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   147
	sun/tools/jcmd \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   148
	sun/tools/jconsole \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   149
	sun/tools/jps \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   150
	sun/tools/jstat \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   151
	sun/tools/jstatd \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   152
	sun/tools/native2ascii \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   153
	sun/tools/serialver \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   154
	sun/tools/tree \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   155
	sun/tools/util \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   156
	sun/security/tools/JarBASE64Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   157
	sun/security/tools/JarSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   158
	sun/security/tools/JarSignerParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   159
	sun/security/tools/JarSignerResources.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   160
	sun/security/tools/JarSignerResources_ja.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   161
	sun/security/tools/JarSignerResources_zh_CN.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   162
	sun/security/tools/SignatureFile\$$$$Block.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   163
	sun/security/tools/SignatureFile.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   164
	sun/security/tools/TimestampedSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   165
	sun/security/provider/Sun.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   166
	sun/security/rsa/SunRsaSign.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   167
	sun/security/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   168
	sun/security/ec/ECDHKeyAgreement.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   169
	sun/security/ec/ECDSASignature\$$$$Raw.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   170
	sun/security/ec/ECDSASignature\$$$$SHA1.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   171
	sun/security/ec/ECDSASignature\$$$$SHA224.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
	sun/security/ec/ECDSASignature\$$$$SHA256.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   173
	sun/security/ec/ECDSASignature\$$$$SHA384.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   174
	sun/security/ec/ECDSASignature\$$$$SHA512.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
	sun/security/ec/ECDSASignature.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   176
	sun/security/ec/ECKeyPairGenerator.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   177
	sun/security/ec/SunEC\$$$$1.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   178
	sun/security/ec/SunEC.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   179
	sun/security/ec/SunECEntries.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   180
	sun/security/pkcs11 \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   181
	com/sun/net/ssl/internal/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   182
	javax/crypto \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   183
	sun/security/internal \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   184
	com/sun/crypto/provider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   185
	META-INF/services/com.sun.tools.attach.spi.AttachProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   186
	com/sun/tools/attach \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   187
	org/relaxng/datatype \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   188
	com/sun/codemodel \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   189
	com/sun/xml/internal/dtdparser \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   190
	com/sun/xml/internal/rngom \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   191
	com/sun/xml/internal/xsom \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   192
	com/sun/tools/script/shell \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   193
	sun/tools/attach \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   194
	sun/tools/jstack \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   195
	sun/tools/jinfo \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   196
	sun/tools/jmap \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   197
	sun/net/spi/nameservice/dns \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   198
	META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   199
	javax/swing/beaninfo \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   200
	javax/swing/AbstractButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   201
	javax/swing/BoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   202
	javax/swing/JAppletBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   203
	javax/swing/JButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   204
	javax/swing/JCheckBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   205
	javax/swing/JCheckBoxMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   206
	javax/swing/JColorChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   207
	javax/swing/JComboBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   208
	javax/swing/JComponentBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   209
	javax/swing/JDesktopPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   210
	javax/swing/JDialogBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   211
	javax/swing/JEditorPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   212
	javax/swing/JFileChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   213
	javax/swing/JFormattedTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   214
	javax/swing/JFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   215
	javax/swing/JInternalFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   216
	javax/swing/JLabelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   217
	javax/swing/JLayeredPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   218
	javax/swing/JListBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   219
	javax/swing/JMenuBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   220
	javax/swing/JMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   221
	javax/swing/JMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   222
	javax/swing/JOptionPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   223
	javax/swing/JPanelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   224
	javax/swing/JPasswordFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   225
	javax/swing/JPopupMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   226
	javax/swing/JProgressBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   227
	javax/swing/JRadioButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   228
	javax/swing/JRadioButtonMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   229
	javax/swing/JScrollBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   230
	javax/swing/JScrollPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   231
	javax/swing/JSeparatorBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   232
	javax/swing/JSliderBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   233
	javax/swing/JSpinnerBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   234
	javax/swing/JSplitPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   235
	javax/swing/JTabbedPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   236
	javax/swing/JTableBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   237
	javax/swing/JTextAreaBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   238
	javax/swing/JTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   239
	javax/swing/JTextPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   240
	javax/swing/JToggleButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   241
	javax/swing/JToolBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   242
	javax/swing/JTreeBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   243
	javax/swing/JWindowBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   244
	javax/swing/SwingBeanInfoBase.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   245
	javax/swing/text/JTextComponentBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   246
	sun/swing/BeanInfoUtils.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   247
	$(LOCALEDATA_INCLUDES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   248
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   249
# These files should never be put into rt.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   250
# but due to a misstake...some are put there if embedded
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   251
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   252
ifneq ($(JAVASE_EMBEDDED), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   253
# normal (correct) case
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   254
RT_JAR_EXCLUDES += \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   255
	com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   256
	oracle/jrockit/jfr
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   257
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   258
# embedded (broken) case
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   259
RT_JAR_EXCLUDES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   260
  oracle/jrockit/jfr/parser \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   261
  oracle/jrockit/jfr/tools \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   262
  oracle/jrockit/jfr/NativeOptions.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   263
  oracle/jrockit/jfr/RepositoryChunkHandler.class
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   264
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   265
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   266
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   267
        RT_JAR_EXCLUDES += com/sun/nio/sctp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   268
                           sun/nio/ch/sctp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   269
                           sun/jdbc \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   270
                           sun/nio/ch/DevPollArrayWrapper\$$$$Updator.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   271
                           sun/nio/ch/DevPollArrayWrapper.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   272
                           sun/nio/ch/DevPollSelectorImpl.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   273
                           sun/nio/ch/DevPollSelectorProvider.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   274
                           sun/nio/ch/EPollArrayWrapper\$$$$Updator.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   275
                           sun/nio/ch/EPollArrayWrapper.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   276
                           sun/nio/ch/EPollSelectorImpl.class \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   277
                           sun/nio/ch/EPollSelectorProvider.class
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   278
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   279
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   280
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   281
ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   282
			| $(GREP) -v -e '/_the\.*' -e '^_the\.*')
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   283
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   284
RT_JAR_MANIFEST_FILE := $(JDK_OUTPUTDIR)/lib/_the.rt.jar_manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   285
RESOURCE_JAR_MANIFEST_FILE := $(JDK_OUTPUTDIR)/lib/_the.resources.jar_manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   286
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   287
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   288
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   289
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   290
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   291
	       $(MAINMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   292
	$(ECHO) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   293
	$(CAT) $(BEANMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   294
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   295
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   296
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   297
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   298
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   299
	       $(MAINMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   300
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   301
$(JDK_OUTPUTDIR)/lib/_the.jars.exclude: $(MAKEFILE)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   302
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   303
	$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   304
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   305
$(JDK_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   306
  $(MAKEFILE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   307
	$(MKDIR) -p $(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   308
	$(RM) -f $@.temp
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   309
	$(TOOL_ADDJSUM) $< $@.temp
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   310
	$(MV) $@.temp $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   311
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   312
$(JDK_OUTPUTDIR)/lib/_the.jars.contents: $(BUILD_TOOLS) $(JDK_OUTPUTDIR)/lib/_the.jars.exclude \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   313
					 $(ALL_FILES_IN_CLASSES) $(JDK_OUTPUTDIR)/lib/classlist
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   314
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   315
	$(RM) $@.temp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   316
	($(CD) $(JDK_OUTPUTDIR)/classes && \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   317
	    $(TOOL_JARREORDER) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   318
		-o  $@.temp $(JDK_OUTPUTDIR)/lib/classlist $(JDK_OUTPUTDIR)/lib/_the.jars.exclude . )
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   319
	$(MV) $@.temp $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   320
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   321
$(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents: $(JDK_OUTPUTDIR)/lib/_the.jars.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   322
	$(GREP) -e '\.class$$' $(JDK_OUTPUTDIR)/lib/_the.jars.contents > $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   323
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   324
$(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents: $(JDK_OUTPUTDIR)/lib/_the.jars.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   325
	$(GREP) -v -e '\.class$$' -e '/_the\.*' -e '^_the\.*' $(JDK_OUTPUTDIR)/lib/_the.jars.contents > $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   326
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   327
RT_JAR_CREATE_OPTIONS := c0fm
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   328
ifeq ($(COMPRESS_JARS), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   329
    RT_JAR_CREATE_OPTIONS := cfm
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   330
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   331
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   332
$(JDK_OUTPUTDIR)/lib/rt.jar: $(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   333
	$(ECHO) Creating rt.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   334
	$(CD) $(JDK_OUTPUTDIR)/classes && \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   335
	    $(JAR) $(RT_JAR_CREATE_OPTIONS) $@ $(RT_JAR_MANIFEST_FILE) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   336
	        @$(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   337
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   338
$(JDK_OUTPUTDIR)/lib/resources.jar: $(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   339
				    $(RESOURCE_JAR_MANIFEST_FILE)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   340
	$(ECHO) Creating resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   341
	$(CD) $(JDK_OUTPUTDIR)/classes && \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   342
	    $(JAR) $(RT_JAR_CREATE_OPTIONS) $@ $(RESOURCE_JAR_MANIFEST_FILE) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   343
	        @$(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   344
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   345
JARS+=$(JDK_OUTPUTDIR)/lib/rt.jar $(JDK_OUTPUTDIR)/lib/resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   346
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   347
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   348
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   349
CHARSETS_JAR_DEPS :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   350
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   351
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   352
    CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   353
                          sun/awt/motif/X11GB2312\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   354
                          sun/awt/motif/X11GB2312.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   355
                          sun/awt/motif/X11KSC5601\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   356
                          sun/awt/motif/X11KSC5601\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   357
                          sun/awt/motif/X11GB2312\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   358
                          sun/awt/motif/X11GBK\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   359
                          sun/awt/motif/X11KSC5601.class
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   360
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   361
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   362
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,$(CHARSETS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   363
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   364
		SUFFIXES:=.class .dat,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   365
		INCLUDES:=sun/nio/cs/ext,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   366
		EXTRA_FILES := sun/awt/HKSCS.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   367
			       $(CHARSETS_EXTRA_FILES) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   368
                               META-INF/services/java.nio.charset.spi.CharsetProvider, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   369
		JAR:=$(JDK_OUTPUTDIR)/lib/charsets.jar, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   370
		SKIP_METAINF := true, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   371
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   372
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   373
JARS+=$(JDK_OUTPUTDIR)/lib/charsets.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   374
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   375
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   376
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   377
ifeq ($(ENABLE_JFR), true)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   378
    $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   379
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   380
		INCLUDES:=com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   381
			  oracle/jrockit/jfr,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   382
		JAR:=$(JDK_OUTPUTDIR)/lib/jfr.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   383
		SKIP_METAINF:=true,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   384
		MANIFEST:=$(MAINMANIFEST), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   385
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   386
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   387
    JARS+=$(JDK_OUTPUTDIR)/lib/jfr.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   388
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   389
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   390
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   391
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   392
$(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   393
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   394
		INCLUDES:=sun/security/provider/Sun.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   395
			  sun/security/rsa/SunRsaSign.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   396
			  sun/security/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   397
			  com/sun/net/ssl/internal/ssl,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   398
		JAR:=$(JDK_OUTPUTDIR)/lib/jsse.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   399
		SKIP_METAINF:=true,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   400
		MANIFEST:=$(MAINMANIFEST), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   401
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   402
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   403
JARS+=$(JDK_OUTPUTDIR)/lib/jsse.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   404
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   405
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   406
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   407
ifneq ($(OPENJDK_TARGET_OS)-$(ARCH_DATA_MODEL),windows-64)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   408
    SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   409
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   410
    ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   411
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   412
        SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   413
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   414
        $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   415
		@$(ECHO) "\n>>>Installing prebuilt SunPKCS11 provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   416
		$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   417
		$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   418
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   419
    else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   420
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   421
         $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,$(SUNPKCS11_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   422
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   423
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   424
		INCLUDES:=sun/security/pkcs11,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   425
		JAR:=$(SUNPKCS11_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   426
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   427
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   428
    endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   429
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   430
    JARS += $(SUNPKCS11_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   431
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   432
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   433
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   434
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   435
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   436
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   437
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   438
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   439
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   440
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   441
$(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   442
	@$(ECHO) "\n>>>Installing prebuilt SunEC provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   443
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   444
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   445
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   446
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   447
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   448
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   449
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   450
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   451
		INCLUDES:=sun/security/ec,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   452
		EXCLUDE_FILES := sun/security/ec/ECKeyFactory.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   453
			sun/security/ec/ECParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   454
			sun/security/ec/ECPrivateKeyImpl.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   455
			sun/security/ec/ECPublicKeyImpl.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   456
			sun/security/ec/NamedCurve.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   457
			sun/security/ec/ECKeyFactory*,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   458
		JAR:=$(SUNEC_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   459
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   460
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   461
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   462
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   463
JARS += $(SUNEC_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   464
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   465
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   466
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   467
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   468
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   469
		SUFFIXES:=BeanInfo.class .gif,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   470
		INCLUDES:=javax/swing sun/swing,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   471
		EXCLUDES:=javax/swing/plaf,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   472
		EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   473
		JAR:=$(JDK_OUTPUTDIR)/lib/dt.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   474
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   475
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   476
JARS+=$(JDK_OUTPUTDIR)/lib/dt.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   477
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   478
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   479
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   480
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   481
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   482
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   483
    SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   484
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   485
    $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   486
	@$(ECHO) "\n>>>Installing prebuilt SunJCE provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   487
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   488
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   489
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   490
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   491
    $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,$(SUNJCE_PROVIDER_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   492
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   493
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   494
		INCLUDES:= com/sun/crypto/provider,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   495
		JAR:=$(SUNJCE_PROVIDER_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   496
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   497
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   498
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   499
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   500
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   501
JARS += $(SUNJCE_PROVIDER_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   502
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   503
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   504
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   505
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   506
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   507
JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   508
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   509
$(JCE_JAR_DST) : $(JCE_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   510
	@$(ECHO) "\n>>>Installing prebuilt jce.jar..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   511
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   512
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   513
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   514
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   515
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   516
$(eval $(call SetupArchive,BUILD_JCE_JAR,$(JCE_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   517
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   518
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   519
		INCLUDES:= javax/crypto sun/security/internal,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   520
		JAR:=$(JCE_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   521
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   522
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   523
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   524
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   525
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   526
JARS += $(JCE_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   527
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   528
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   529
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   530
ifdef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   531
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   532
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   533
# TODO fix so that SetupArchive does not write files into SRCS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   534
#   then we don't need this extra copying
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   535
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   536
US_EXPORT_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   537
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   538
US_EXPORT_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/US_export_policy_jar.tmp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   539
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   540
$(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   541
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   542
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   543
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   544
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   545
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   546
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   547
		SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   548
		SUFFIXES:= .policy,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   549
		JAR:=$(US_EXPORT_POLICY_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   550
		EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   551
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   552
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   553
JARS += $(US_EXPORT_POLICY_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   554
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   555
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   556
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   557
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   558
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   559
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   560
ifdef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   561
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   562
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   563
# TODO fix so that SetupArchive does not write files into SRCS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   564
#   then we don't need this extra copying
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   565
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   566
LOCAL_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/local_policy.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   567
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   568
LOCAL_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/local_policy_jar.tmp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   569
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   570
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy $(LOCAL_POLICY_JAR_TMP)/default_local.policy
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   571
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   572
$(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   573
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   574
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   575
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   576
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   577
		SRCS:=$(LOCAL_POLICY_JAR_TMP),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   578
		SUFFIXES:= .policy,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   579
		JAR:=$(LOCAL_POLICY_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   580
		EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   581
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   582
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   583
JARS += $(LOCAL_POLICY_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   584
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   585
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   586
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   587
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   588
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   589
ifeq ($(OPENJDK_TARGET_OS),windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   590
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   591
SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   592
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   593
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   594
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   595
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   596
$(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   597
	@$(ECHO) "\n>>>Installing prebuilt SunMSCAPI provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   598
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   599
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   600
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   601
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   602
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   603
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,$(SUNMSCAPI_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   604
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   605
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   606
		INCLUDES:= sun/security/mscapi,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   607
		JAR:=$(SUNMSCAPI_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   608
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   609
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   610
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   611
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   612
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   613
JARS += $(SUNMSCAPI_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   614
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   615
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   616
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   617
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   618
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   619
ifeq ($(OPENJDK_TARGET_OS),solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   620
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   621
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   622
UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   623
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   624
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   625
$(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   626
	@$(ECHO) "\n>>>Installing prebuilt OracleUcrypto provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   627
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   628
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   629
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   630
JARS += $(UCRYPTO_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   631
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   632
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   633
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   634
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   635
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   636
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   637
TOOLS_JAR_INCLUDES := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   638
	sun/tools/asm		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   639
	sun/tools/jar		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   640
	sun/tools/java		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   641
	sun/tools/javac		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   642
	sun/tools/jcmd		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   643
	sun/tools/jps		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   644
	sun/tools/jstat		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   645
	sun/tools/jstatd	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   646
	sun/tools/native2ascii	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   647
	sun/tools/serialver	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   648
	sun/tools/tree		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   649
	sun/tools/util		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   650
	sun/security/tools/JarBASE64Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   651
	sun/security/tools/JarSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   652
	sun/security/tools/JarSignerParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   653
	sun/security/tools/JarSignerResources.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   654
	sun/security/tools/JarSignerResources_ja.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   655
	sun/security/tools/JarSignerResources_zh_CN.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   656
	sun/security/tools/SignatureFile* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   657
	sun/security/tools/TimestampedSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   658
	sun/rmi/rmic		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   659
	sun/applet		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   660
	sun/jvmstat		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   661
	com/sun/javadoc		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   662
	com/sun/jdi		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   663
	com/sun/jarsigner	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   664
	com/sun/source          \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   665
	com/sun/tools/classfile \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   666
	com/sun/tools/doclets   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   667
	com/sun/tools/example/debug/expr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   668
	com/sun/tools/example/debug/tty  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   669
	com/sun/tools/extcheck  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   670
	com/sun/tools/hat       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   671
	com/sun/tools/javac     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   672
	com/sun/tools/javadoc   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   673
	com/sun/tools/javah     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   674
	com/sun/tools/javap     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   675
	com/sun/tools/corba     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   676
	com/sun/tools/internal/xjc       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   677
	com/sun/tools/internal/ws       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   678
	com/sun/istack/internal/tools       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   679
	com/sun/tools/internal/jxc/ap   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   680
	com/sun/tools/internal/ws/wscompile/plugin/at_generated \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   681
        com/sun/codemodel       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   682
        com/sun/tools/internal/jxc             \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   683
        com/sun/xml/internal/rngom       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   684
        com/sun/xml/internal/xsom       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   685
        org/relaxng/datatype   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   686
	com/sun/xml/internal/dtdparser \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   687
	com/sun/tools/jdi	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   688
	com/sun/tools/script/shell	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   689
	com/sun/tools/attach	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   690
	sun/tools/attach	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   691
	sun/tools/jstack        \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   692
	sun/tools/jinfo         \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   693
	sun/tools/jmap
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   694
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   695
$(eval $(call SetupArchive,BUILD_TOOLS_JAR,$(TOOLS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   696
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   697
		SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   698
			  Tool aliasmap options,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   699
		INCLUDES:=$(TOOLS_JAR_INCLUDES),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   700
		EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   701
			     META-INF/services/com.sun.jdi.connect.spi.TransportService \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   702
			     META-INF/services/com.sun.tools.attach.spi.AttachProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   703
			     META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   704
			     META-INF/services/com.sun.tools.internal.xjc.Plugin,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   705
		JAR:=$(JDK_OUTPUTDIR)/lib/tools.jar,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   706
		SKIP_METAINF:=true, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   707
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   708
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   709
JARS+=$(JDK_OUTPUTDIR)/lib/tools.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   710
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   711
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   712
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   713
include $(JDK_TOPDIR)/makefiles/docs/CORE_PKGS.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   714
include $(JDK_TOPDIR)/makefiles/docs/NON_CORE_PKGS.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   715
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   716
# The compiler should not issue a "Proprietary" warning when compiling
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   717
# classes in the com.sun.java.swing.plaf packages, since we've always
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   718
# allowed, and even advocated, extending them (see bug 6476749).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   719
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   720
# This approach is NOT to be used as a general purpose way to avoid such
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   721
# compiler warnings for non-core packages. The correct way is to document
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   722
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   723
# definition.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   724
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   725
# Swing has taken this approach only as a temporary measure to avoid
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   726
# the compiler warnings until we can properly document these packages.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   727
# This is covered under 6491853.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   728
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   729
                        com.sun.java.swing.plaf.motif    \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   730
                        com.sun.java.swing.plaf.gtk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   731
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   732
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   733
# Include the exported private packages in ct.sym.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   734
# This is an interim solution until the ct.sym is replaced
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   735
# with a new module system (being discussed for JDK 8).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   736
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   737
EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   738
                        com.oracle.net \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   739
                        com.oracle.nio
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   740
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   741
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(JDK_OUTPUTDIR)/lib/rt.jar
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   742
	$(RM) -rf $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   743
	$(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   744
	$(JAVA) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   745
		-Xbootclasspath/a:$(JDK_OUTPUTDIR)/classes \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   746
		$(JAVAC_JARS) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   747
	    -XDprocess.packages -proc:only \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   748
	    -processor com.sun.tools.javac.sym.CreateSymbols \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   749
	    -Acom.sun.tools.javac.sym.Jar=$(JDK_OUTPUTDIR)/lib/rt.jar \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   750
	    -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   751
	    $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   752
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   753
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   754
MAKE_SURE_DIR_EXISTS_DUMMY := $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   755
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   756
		SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   757
		INCLUDES:=META-INF/sym,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   758
		JAR:=$(JDK_OUTPUTDIR)/lib/ct.sym, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   759
		CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   760
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   761
JARS+=$(JDK_OUTPUTDIR)/lib/ct.sym
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   762
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   763
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   764
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   765
SRC_ZIP_INCLUDES = \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   766
	java/applet			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   767
	java/awt			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   768
	java/beans			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   769
	java/io				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   770
	java/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   771
	java/math			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   772
	java/net			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   773
	java/nio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   774
	java/rmi			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   775
	java/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   776
	java/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   777
	java/text			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   778
	java/util			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   779
	com/sun/corba			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   780
	com/sun/image/codec/jpeg	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   781
	com/sun/imageio                 \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   782
	com/sun/java/swing		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   783
	com/sun/javadoc			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   784
	com/sun/jmx			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   785
	com/sun/source			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   786
	com/sun/naming			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   787
	com/sun/security/auth		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   788
	com/sun/security/jgss		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   789
	javax/accessibility		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   790
	javax/annotation		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   791
	javax/script			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   792
	javax/imageio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   793
	javax/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   794
	javax/management		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   795
	javax/naming			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   796
	javax/print			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   797
	javax/rmi			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   798
	javax/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   799
	javax/sound			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   800
	javax/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   801
	javax/swing			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   802
	javax/tools			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   803
	javax/xml			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   804
	com/sun/org/apache		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   805
	com/sun/java_cup		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   806
	com/sun/jlex	        	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   807
	org/ietf			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   808
	org/omg				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   809
	org/w3c/dom			\
13353
a043d6778c4c 4650871: Classes in sunw.* should be removed from workspace and rt.jar
malenkov
parents: 13164
diff changeset
   810
	org/xml/sax
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   811
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   812
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/classes
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   813
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   814
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   815
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   816
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   817
  SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   818
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   819
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   820
# Need to copy launcher src files into desired directory structure
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   821
# before zipping the sources.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   822
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   823
                      $(wildcard $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/bin/java_md*)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   824
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   825
		    $(patsubst $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   826
			$(LAUNCHER_SRC_FILES)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   827
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   828
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   829
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   830
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   831
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   832
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(LEGACY_OPENJDK_TARGET_OS_API)/bin/%
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   833
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   834
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   835
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   836
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   837
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   838
# This dir needs to exsist before macro is evaluated to avoid warning from find.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   839
MAKE_SURE_DIR_EXISTS_DUMMY := $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/src)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   840
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   841
		SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   842
		INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   843
		SUFFIXES:=.java .c .h,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   844
		ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   845
		EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   846
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   847
JARS+=$(IMAGES_OUTPUTDIR)/src.zip
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   848
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   849
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   850
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   851
all: $(JARS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   852
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   853
.PHONY: default all