jdk/makefiles/CreateSecurityJars.gmk
author lana
Wed, 30 Oct 2013 13:51:07 -0700
changeset 21416 7d9198dd107c
parent 21399 jdk/makefiles/CreateJars.gmk@3ed2559e161d
parent 21128 jdk/makefiles/CreateJars.gmk@2a7460bba7a5
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
     2
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
12892
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
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    26
default: all
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    27
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    28
include $(SPEC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
include MakeBase.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    30
include JavaCompilation.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    31
include Setup.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    33
# The jars created in this file are required for the exploded jdk image to function and
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    34
# cannot wait to be built in the images target.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    35
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    36
##########################################################################################
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    37
# Create manifest for security jars
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    38
#
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    39
# Include these extra attributes for now, should probably take out.
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    40
#
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    41
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    42
JCE_MANIFEST := $(JDK_OUTPUTDIR)/lib/_the.security.manifest.mf
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    43
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    44
$(JCE_MANIFEST): $(MAINMANIFEST)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    45
	$(MKDIR) -p $(@D)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    46
	$(RM) $@ $@.tmp
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    47
	$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    48
	    -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    49
	    $(MAINMANIFEST) >> $@.tmp
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    50
	$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    51
	$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    52
	$(MV) $@.tmp $@
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    53
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    54
##########################################################################################
18573
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    55
# For security and crypto jars, always build the jar, but for closed, install the prebuilt
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    56
# signed version instead of the newly built jar. Unsigned jars are treated as intermediate
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    57
# targets and explicitly added to the JARS list. For open, signing is not needed. See
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    58
# SignJars.gmk for more information.
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    59
#
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    60
# The source for the crypto jars is not available for all licensees. The BUILD_CRYPTO
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    61
# variable is set to no if these jars can't be built to skip that step of the build.
18573
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    62
# Note that for OPENJDK, the build will fail if BUILD_CRYPTO=no since then there is no
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    63
# other way to get the jars than to build them.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    64
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    65
SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    66
SUNPKCS11_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunpkcs11.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    67
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    68
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    69
    SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    70
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    71
    INCLUDES := sun/security/pkcs11, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    72
    JAR := $(SUNPKCS11_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    73
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    74
    SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    75
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    76
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    77
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    78
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    79
  SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    80
  $(SUNPKCS11_JAR_DST): $(SUNPKCS11_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    81
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
    82
	$(install-file)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    83
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    84
  $(SUNPKCS11_JAR_DST): $(SUNPKCS11_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    85
	$(install-file)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    86
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    87
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    88
JARS += $(SUNPKCS11_JAR_UNSIGNED) $(SUNPKCS11_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    89
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    90
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    91
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    92
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    93
SUNEC_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunec.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    94
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    95
$(eval $(call SetupArchive,BUILD_SUNEC_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    96
    SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    97
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    98
    INCLUDES := sun/security/ec, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    99
    JAR := $(SUNEC_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   100
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   101
    SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   102
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   103
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   104
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   105
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   106
  SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   107
  $(SUNEC_JAR_DST): $(SUNEC_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   108
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   109
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   110
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   111
  $(SUNEC_JAR_DST): $(SUNEC_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   112
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   113
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   114
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   115
JARS += $(SUNEC_JAR_UNSIGNED) $(SUNEC_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   116
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   117
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   118
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   119
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   120
SUNJCE_PROVIDER_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunjce_provider.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   121
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   122
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   123
  $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   124
      SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   125
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   126
      INCLUDES := com/sun/crypto/provider, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   127
      JAR := $(SUNJCE_PROVIDER_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   128
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   129
      SKIP_METAINF := true))
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   130
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   131
  $(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   132
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   133
  JARS += $(SUNJCE_PROVIDER_JAR_UNSIGNED)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   134
endif
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   135
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   136
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   137
  SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   138
  $(SUNJCE_PROVIDER_JAR_DST): $(SUNJCE_PROVIDER_JAR_SRC)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   139
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..."
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   140
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   141
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   142
  $(SUNJCE_PROVIDER_JAR_DST): $(SUNJCE_PROVIDER_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   143
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   144
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   145
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   146
JARS += $(SUNJCE_PROVIDER_JAR_DST)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   147
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   148
##########################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   149
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   150
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   151
JCE_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/jce.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   152
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   153
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   154
  $(eval $(call SetupArchive,BUILD_JCE_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   155
      SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   156
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   157
      INCLUDES := javax/crypto sun/security/internal, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   158
      JAR := $(JCE_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   159
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   160
      SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   161
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   162
  $(JCE_JAR_UNSIGNED): $(JCE_MANIFEST)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   163
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   164
  JARS += $(JCE_JAR_UNSIGNED)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   165
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   166
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   167
ifndef OPENJDK
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   168
  JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   169
  $(JCE_JAR_DST): $(JCE_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   170
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   171
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   173
  $(JCE_JAR_DST): $(JCE_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   174
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   176
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   177
JARS += $(JCE_JAR_DST)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   178
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   179
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   180
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   181
US_EXPORT_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   182
US_EXPORT_POLICY_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/US_export_policy.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   183
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   184
ifneq ($(BUILD_CRYPTO), no)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   185
  #
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   186
  # TODO fix so that SetupArchive does not write files into SRCS
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   187
  # then we don't need this extra copying
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   188
  #
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   189
  # NOTE: We currently do not place restrictions on our limited export
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   190
  # policy. This was not a typo.
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   191
  #
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   192
  US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   193
  US_EXPORT_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/US_export_policy_jar.tmp
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   194
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   195
  $(US_EXPORT_POLICY_JAR_TMP)/%: $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   196
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   197
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   198
  US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   199
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   200
  $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR, $(US_EXPORT_POLICY_JAR_DEPS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   201
      SRCS := $(US_EXPORT_POLICY_JAR_TMP), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   202
      SUFFIXES := .policy, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   203
      JAR := $(US_EXPORT_POLICY_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   204
      EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   205
      SKIP_METAINF := true))
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   206
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   207
  JARS += $(US_EXPORT_POLICY_JAR_UNSIGNED)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   208
endif
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   209
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   210
ifndef OPENJDK
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   211
  $(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   212
	$(ECHO) $(LOG_INFO) Copying $(@F)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   213
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   214
else
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   215
  $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNSIGNED)
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   216
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   217
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   218
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   219
JARS += $(US_EXPORT_POLICY_JAR_DST)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   220
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   221
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   222
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   223
LOCAL_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/local_policy.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   224
LOCAL_POLICY_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/local_policy.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   225
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   226
ifneq ($(BUILD_CRYPTO), no)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   227
  #
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   228
  # TODO fix so that SetupArchive does not write files into SRCS
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   229
  # then we don't need this extra copying
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   230
  #
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   231
  LOCAL_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/local_policy_jar.tmp
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   232
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   233
  ifeq ($(UNLIMITED_CRYPTO), true)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   234
    LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   235
    LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   236
    LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   237
  else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   238
    LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   239
    LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   240
        $(LOCAL_POLICY_JAR_TMP)/default_local.policy
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   241
    LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   242
  endif
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   243
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   244
  $(LOCAL_POLICY_JAR_TMP)/%: $(LOCAL_POLICY_JAR_SRC_DIR)/%
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   245
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   246
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   247
  $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR, $(LOCAL_POLICY_JAR_DEPS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   248
      SRCS := $(LOCAL_POLICY_JAR_TMP), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   249
      SUFFIXES := .policy, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   250
      JAR := $(LOCAL_POLICY_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   251
      EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   252
      SKIP_METAINF := true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   253
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   254
  JARS += $(LOCAL_POLICY_JAR_UNSIGNED)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   255
endif
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   256
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   257
ifndef OPENJDK
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   258
  $(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   259
	$(ECHO) $(LOG_INFO) Copying $(@F)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   260
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   261
else
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   262
  $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNSIGNED)
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   263
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   264
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   265
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   266
JARS += $(LOCAL_POLICY_JAR_DST)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   267
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   268
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   269
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   270
ifeq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   271
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   272
  SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   273
  SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunmscapi.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   274
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   275
  $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   276
      SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   277
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   278
      INCLUDES := sun/security/mscapi, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   279
      JAR := $(SUNMSCAPI_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   280
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   281
      SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   282
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   283
  $(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST)
15137
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   284
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   285
  ifndef OPENJDK
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   286
    SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   287
    $(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_SRC)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   288
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..."
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   289
	$(install-file)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   290
  else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   291
    $(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   292
	$(install-file)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   293
  endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   294
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   295
  JARS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   296
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   297
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   298
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   299
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   300
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   301
ifeq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   302
  ifndef OPENJDK
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   303
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   304
    UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   305
    UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/ucrypto.jar
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   306
    UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   307
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   308
    $(eval $(call SetupArchive,BUILD_UCRYPTO_JAR, , \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   309
        SRCS := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   310
        SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   311
        INCLUDES := com/oracle/security/ucrypto, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   312
        JAR := $(UCRYPTO_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   313
        MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   314
        SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   315
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   316
    $(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   317
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   318
    $(UCRYPTO_JAR_DST): $(UCRYPTO_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   319
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   320
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   321
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   322
    JARS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   323
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   324
  endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   325
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   326
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   327
all: $(JARS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   328
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   329
.PHONY: default all