VirtualBox

source: vbox/trunk/src/libs/openssl-3.3.2/crypto/modes/Makefile.kmk@ 109193

Last change on this file since 109193 was 108206, checked in by vboxsync, 3 months ago

openssl-3.3.2: Exported all files to OSE and removed .scm-settings ​bugref:10757

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 108206 2025-02-13 16:35:33Z vboxsync $
2## @file
3# OpenSSL Sub-Makefile.
4#
5
6#
7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.215389.xyz.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31LIBRARIES += crypto_modes
32crypto_modes_TEMPLATE = SubLibCrypto
33crypto_modes_DEFS = OPENSSL_NO_DEPRECATED
34crypto_modes_SOURCES = \
35 cbc128.c \
36 ccm128.c \
37 cfb128.c \
38 ctr128.c \
39 cts128.c \
40 gcm128.c \
41 ocb128.c \
42 ofb128.c \
43 siv128.c \
44 wrap128.c \
45 xts128.c \
46 xts128gb.c
47ifdef VBOX_WITH_CRYPTO_ASM
48 crypto_modes_SOURCES.x86 += \
49 $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86.S
50 crypto_modes_SOURCES.amd64 += \
51 $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86_64.S \
52 $(VBOX_PATH_CRYPTO_GENASM)/aesni-gcm-x86_64.S \
53 $(VBOX_PATH_CRYPTO_GENASM)/aes-gcm-avx512.S
54endif
55$(evalcall VBOX_OPENSSL_X86,crypto_modes)
56
57
58recreate-modes-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
59 $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl \
60 $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl \
61 $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl \
62 $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl
63 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86.S
64 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86_64.S
65 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/aesni-gcm-x86_64.S
66 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/aes-gcm-avx512.S
67
68 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86.S
69 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86_64.S
70 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/aesni-gcm-x86_64.S
71 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/aes-gcm-avx512.S
72
73 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86.S
74 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86_64.S
75 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/aesni-gcm-x86_64.S
76 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/aes-gcm-avx512.S
77
78include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette