make/ZipSecurity.gmk
author goetz
Fri, 20 Jul 2018 09:33:49 +0200
changeset 51213 24c4780f69a5
parent 43176 1da1ffe0c6fd
child 53683 48ff68e2fe5c
permissions -rw-r--r--
8207766: [testbug] Adapt tests for Aix. Reviewed-by: clanger, mbaesken
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     1
#
43176
1da1ffe0c6fd 8172527: Rename jdk.crypto.token to jdk.crypto.cryptoki
ascarpino
parents: 42514
diff changeset
     2
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     4
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    10
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    15
# accompanied this code).
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    16
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    20
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    23
# questions.
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    24
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    25
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    26
default: all
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    27
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    28
include $(SPEC)
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    29
include MakeBase.gmk
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    30
include JavaCompilation.gmk
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    31
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    32
##########################################################################################
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    33
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    34
# sec-bin.zip is used by builds where the corresponding sources are not available
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    35
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    36
$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    37
    SRC := $(JDK_OUTPUTDIR), \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    38
    INCLUDES := \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    39
        modules/java.base/javax/crypto \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    40
        modules/java.base/javax/crypto/spec \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    41
        modules/java.base/sun/security/internal/interfaces \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    42
        modules/java.base/sun/security/internal/spec \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    43
        modules/java.base/com/sun/crypto/provider \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    44
        modules/jdk.crypto.ec/sun/security/ec \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    45
        modules/jdk.crypto.mscapi/sun/security/mscapi \
43176
1da1ffe0c6fd 8172527: Rename jdk.crypto.token to jdk.crypto.cryptoki
ascarpino
parents: 42514
diff changeset
    46
        modules/jdk.crypto.cryptoki/sun/security/pkcs11 \
1da1ffe0c6fd 8172527: Rename jdk.crypto.token to jdk.crypto.cryptoki
ascarpino
parents: 42514
diff changeset
    47
        modules/jdk.crypto.cryptoki/sun/security/pkcs11/wrapper \
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    48
        modules/jdk.crypto.ucrypto/com/oracle/security/ucrypto \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    49
        modules/java.base/javax/net \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    50
        modules/java.base/javax/security/cert \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    51
        modules/java.base/com/sun/net/ssl \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    52
        modules/java.base/com/sun/security/cert \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    53
        modules/java.base/sun/net/www/protocol/https \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    54
        modules/java.base/sun/security/pkcs12 \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    55
        modules/java.base/sun/security/ssl \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    56
        modules/java.security.jgss/sun/security/krb5 \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    57
        modules/java.security.jgss/sun/security/krb5/internal \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    58
        modules/java.security.jgss/sun/security/krb5/internal/ccache \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    59
        modules/java.security.jgss/sun/security/krb5/internal/crypto \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    60
        modules/java.security.jgss/sun/security/krb5/internal/ktab \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    61
        modules/java.security.jgss/sun/security/krb5/internal/rcache \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    62
        modules/java.security.jgss/sun/security/krb5/internal/util, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    63
    INCLUDE_FILES := modules/java.security.jgss/sun/security/jgss/spi/GSSContextSpi.class, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    64
    EXCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    65
    ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip))
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    66
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    67
TARGETS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    68
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    69
##########################################################################################
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    70
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    71
# Windows specific binary security packages.
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    72
#
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    73
ifeq ($(OPENJDK_TARGET_OS), windows)
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    74
  # sec-windows-bin.zip is used by builds where the corresponding sources are not available
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    75
  $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    76
      SRC := $(JDK_OUTPUTDIR), \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    77
      INCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    78
      ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    79
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    80
  TARGETS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    81
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    82
  # JGSS files contain the native Kerberos library
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    83
  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    84
    JGSS_ZIP_NAME = jgss-windows-x64-bin.zip
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    85
  else
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    86
    JGSS_ZIP_NAME = jgss-windows-i586-bin.zip
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    87
  endif
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    88
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    89
  $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    90
      SRC := $(SUPPORT_OUTPUTDIR), \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    91
      INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    92
          modules_libs/java.security.jgss/w2k_lsa_auth.diz \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    93
          modules_libs/java.security.jgss/w2k_lsa_auth.map \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    94
          modules_libs/java.security.jgss/w2k_lsa_auth.pdb, \
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    95
      ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    96
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    97
  TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    98
endif
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    99
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   100
##########################################################################################
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   101
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   102
all: $(TARGETS)
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   103
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   104
.PHONY: default all