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