1 | # $Id: Makefile.kmk 94320 2022-03-22 10:38:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2019-2022 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | LIBRARIES += crypto_chacha
|
---|
22 | crypto_chacha_TEMPLATE = SUBLIBCRYPTO
|
---|
23 | crypto_chacha_DEFS = OPENSSL_NO_DEPRECATED
|
---|
24 | #ifdef VBOX_WITH_CRYPTO_ASM
|
---|
25 | # crypto_chacha_SOURCES.x86 += \
|
---|
26 | # $(VBOX_PATH_CRYPTO_GENASM)/chacha-x86.S
|
---|
27 | # crypto_chacha_SOURCES.amd64 += \
|
---|
28 | # $(VBOX_PATH_CRYPTO_GENASM)/chacha-x86_64.S
|
---|
29 | #else
|
---|
30 | crypto_chacha_SOURCES += chacha_enc.c
|
---|
31 | #endif
|
---|
32 | $(evalcall VBOX_OPENSSL_X86,crypto_chacha)
|
---|
33 |
|
---|
34 |
|
---|
35 | recreate-chacha-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
36 | $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl \
|
---|
37 | $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl
|
---|
38 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/chacha-x86.S
|
---|
39 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/chacha-x86_64.S
|
---|
40 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/chacha-x86.S
|
---|
41 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/chacha-x86_64.S
|
---|
42 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/chacha-x86.S
|
---|
43 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/chacha-x86_64.S
|
---|
44 |
|
---|
45 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|