jdk/make/CreateSecurityJars.gmk
author kshefov
Tue, 25 Nov 2014 14:16:55 +0400
changeset 27758 dfba484228ed
parent 27182 4525d13b8af1
permissions -rw-r--r--
8059070: [TESTBUG] java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java failed - timeout Reviewed-by: psandoz, vlivanov
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
     2
# Copyright (c) 2013, 2014, 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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
##########################################################################################
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    33
# Create manifest for security jars
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    34
#
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    35
# 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
    36
#
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21416
diff changeset
    37
MAINMANIFEST := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    38
JCE_MANIFEST := $(JDK_OUTPUTDIR)/jce/unsigned/_the.security.manifest.mf
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    39
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    40
$(JCE_MANIFEST): $(MAINMANIFEST)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    41
	$(MKDIR) -p $(@D)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    42
	$(RM) $@ $@.tmp
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    43
	$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    44
	    -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    45
	    $(MAINMANIFEST) >> $@.tmp
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    46
	$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    47
	$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    48
	$(ECHO) "Release-Version: $(RELEASE)" >> $@.tmp
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    49
	$(MV) $@.tmp $@
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    50
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
    51
##########################################################################################
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    52
# For crypto jars, always build the jar.
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
    53
#
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    54
# The source for the crypto jars is not available for all licensees.
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    55
# The BUILD_CRYPTO variable is set to no if these jars can't be built
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    56
# to skip that step of the build.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    57
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    58
SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    59
SUNPKCS11_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunpkcs11.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    60
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    61
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR, , \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    62
    SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.pkcs11, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    63
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    64
    INCLUDES := sun/security/pkcs11, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    65
    JAR := $(SUNPKCS11_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    66
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    67
    SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    68
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    69
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    70
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    71
$(SUNPKCS11_JAR_DST): $(SUNPKCS11_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
    72
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    73
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    74
TARGETS += $(SUNPKCS11_JAR_UNSIGNED) $(SUNPKCS11_JAR_DST)
12892
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
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    78
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    79
SUNEC_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunec.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    80
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    81
$(eval $(call SetupArchive,BUILD_SUNEC_JAR, , \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    82
    SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.ec, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    83
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    84
    INCLUDES := sun/security/ec, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    85
    JAR := $(SUNEC_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    86
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    87
    SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    88
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
    89
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    90
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    91
$(SUNEC_JAR_DST): $(SUNEC_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
    92
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    93
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    94
TARGETS += $(SUNEC_JAR_UNSIGNED) $(SUNEC_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    95
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    96
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    97
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
    98
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
    99
SUNJCE_PROVIDER_JAR_UNSIGNED := \
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
   100
    $(JDK_OUTPUTDIR)/jce/unsigned/sunjce_provider.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   101
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   102
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   103
  $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR, , \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
   104
      SRCS := $(JDK_OUTPUTDIR)/modules/java.base, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   105
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   106
      INCLUDES := com/sun/crypto/provider, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   107
      JAR := $(SUNJCE_PROVIDER_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   108
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   109
      SKIP_METAINF := true))
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   110
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   111
  $(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   112
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   113
  TARGETS += $(SUNJCE_PROVIDER_JAR_UNSIGNED)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   114
endif
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   115
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
   116
$(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
   117
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   118
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   119
TARGETS += $(SUNJCE_PROVIDER_JAR_DST)
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   120
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   121
##########################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   122
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   123
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   124
JCE_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/jce.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   125
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   126
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   127
  $(eval $(call SetupArchive,BUILD_JCE_JAR, , \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
   128
      SRCS := $(JDK_OUTPUTDIR)/modules/java.base, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   129
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   130
      INCLUDES := javax/crypto sun/security/internal, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   131
      JAR := $(JCE_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   132
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   133
      SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   134
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   135
  $(JCE_JAR_UNSIGNED): $(JCE_MANIFEST)
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   136
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   137
  TARGETS += $(JCE_JAR_UNSIGNED)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 17493
diff changeset
   138
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   139
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
   140
$(JCE_JAR_DST): $(JCE_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
   141
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   142
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   143
TARGETS += $(JCE_JAR_DST)
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   144
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   145
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   146
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   147
ifeq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   148
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   149
  SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   150
  SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunmscapi.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   151
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   152
  $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR, , \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
   153
      SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.mscapi, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   154
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   155
      INCLUDES := sun/security/mscapi, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   156
      JAR := $(SUNMSCAPI_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   157
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   158
      SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   159
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   160
  $(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST)
15137
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   161
26861
47dde7f5cf36 8058845: Update JCE environment for build improvements
wetmore
parents: 26191
diff changeset
   162
  $(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
   163
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   164
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   165
  TARGETS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST)
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
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   168
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   169
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   170
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   171
ifeq ($(OPENJDK_TARGET_OS), solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
27182
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   173
  UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   174
  UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/ucrypto.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
27182
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   176
  $(eval $(call SetupArchive,BUILD_UCRYPTO_JAR, , \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   177
      SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.ucrypto, \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   178
      SUFFIXES := .class, \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   179
      INCLUDES := com/oracle/security/ucrypto, \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   180
      JAR := $(UCRYPTO_JAR_UNSIGNED), \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   181
      MANIFEST := $(JCE_MANIFEST), \
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   182
      SKIP_METAINF := true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   183
27182
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   184
  $(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   185
27182
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   186
  $(UCRYPTO_JAR_DST): $(UCRYPTO_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
   187
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   188
27182
4525d13b8af1 8046002: Move Ucrypto to the open jdk repo
valeriep
parents: 26861
diff changeset
   189
  TARGETS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   190
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   191
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   192
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   193
all: $(TARGETS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   194
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   195
.PHONY: default all