1 | # $Id$
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2019 Oracle Corporation
|
---|
8 | #
|
---|
9 | # Oracle Corporation confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | LIBRARIES += crypto_rc4
|
---|
17 | crypto_rc4_TEMPLATE = SUBLIBCRYPTO
|
---|
18 | crypto_rc4_DEFS = OPENSSL_NO_DEPRECATED
|
---|
19 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
20 | crypto_rc4_SOURCES.x86 += \
|
---|
21 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-586.S
|
---|
22 | crypto_rc4_SOURCES.amd64 += \
|
---|
23 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-x86_64.S \
|
---|
24 | $(VBOX_PATH_CRYPTO_GENASM)/rc4-md5-x86_64.S
|
---|
25 | else
|
---|
26 | crypto_rc4_SOURCES += \
|
---|
27 | rc4_enc.c \
|
---|
28 | rc4_skey.c
|
---|
29 | endif
|
---|
30 | $(evalcall VBOX_OPENSSL_X86,crypto_rc4)
|
---|
31 |
|
---|
32 |
|
---|
33 | recreate-rc4-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
34 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl \
|
---|
35 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl \
|
---|
36 | $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl
|
---|
37 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-586.S
|
---|
38 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-x86_64.S
|
---|
39 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/rc4-md5-x86_64.S
|
---|
40 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-586.S
|
---|
41 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-x86_64.S
|
---|
42 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/rc4-md5-x86_64.S
|
---|
43 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-586.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-586.S
|
---|
44 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-x86_64.S
|
---|
45 | perl $(VBOX_PATH_CRYPTO_RC4)/asm/rc4-md5-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/rc4-md5-x86_64.S
|
---|
46 |
|
---|
47 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|