1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
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 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | LIBRARIES += crypto_poly1305
|
---|
32 | crypto_poly1305_TEMPLATE = SUBLIBCRYPTO
|
---|
33 | crypto_poly1305_DEFS = OPENSSL_NO_DEPRECATED
|
---|
34 | crypto_poly1305_SOURCES = \
|
---|
35 | poly1305.c
|
---|
36 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
37 | crypto_poly1305_SOURCES.x86 += \
|
---|
38 | $(VBOX_PATH_CRYPTO_GENASM)/poly1305-x86.S
|
---|
39 | crypto_poly1305_SOURCES.amd64 += \
|
---|
40 | $(VBOX_PATH_CRYPTO_GENASM)/poly1305-x86_64.S
|
---|
41 | endif
|
---|
42 | $(evalcall VBOX_OPENSSL_X86,crypto_poly1305)
|
---|
43 |
|
---|
44 | recreate-poly1305-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
45 | $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86.pl \
|
---|
46 | $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86_64.pl
|
---|
47 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/poly1305-x86.S
|
---|
48 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/poly1305-x86_64.S
|
---|
49 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/poly1305-x86.S
|
---|
50 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/poly1305-x86_64.S
|
---|
51 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/poly1305-x86.S
|
---|
52 | perl $(VBOX_PATH_CRYPTO_POLY1305)/asm/poly1305-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/poly1305-x86_64.S
|
---|
53 |
|
---|
54 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|