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_rc4
|
---|
22 | crypto_rc4_TEMPLATE = SUBLIBCRYPTO
|
---|
23 | crypto_rc4_DEFS = OPENSSL_NO_DEPRECATED
|
---|
24 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
25 | crypto_rc4_SOURCES.x86 += \
|
---|
26 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-586.S
|
---|
27 | crypto_rc4_SOURCES.amd64 += \
|
---|
28 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-x86_64.S \
|
---|
29 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-md5-x86_64.S
|
---|
30 | else
|
---|
31 | crypto_rc4_SOURCES += \
|
---|
32 | rc4_enc.c \
|
---|
33 | rc4_skey.c
|
---|
34 | endif
|
---|
35 | $(evalcall VBOX_OPENSSL_X86,crypto_rc4)
|
---|
36 |
|
---|
37 |
|
---|
38 | recreate-rc4-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
39 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl \
|
---|
40 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl \
|
---|
41 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl
|
---|
42 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-586.S
|
---|
43 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-x86_64.S
|
---|
44 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-md5-x86_64.S
|
---|
45 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-586.S
|
---|
46 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-x86_64.S
|
---|
47 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-md5-x86_64.S
|
---|
48 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-586.S
|
---|
49 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-x86_64.S
|
---|
50 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-md5-x86_64.S
|
---|
51 |
|
---|
52 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|