summaryrefslogtreecommitdiff
path: root/src/libs/openssl-3.0.3/crypto/md5/Makefile.kmk
blob: fe940a2db1c3f326e6033388646f4663815a7af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id$
## @file
# OpenSSL Sub-Makefile.
#

#
# Copyright (C) 2019-2022 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#

SUB_DEPTH = ../../../../..
include $(KBUILD_PATH)/subheader.kmk

LIBRARIES += crypto_md5
crypto_md5_TEMPLATE = SUBLIBCRYPTO
crypto_md5_DEFS = OPENSSL_NO_DEPRECATED
crypto_md5_SOURCES = \
	md5_dgst.c \
	md5_one.c \
	md5_sha1.c
ifdef VBOX_WITH_CRYPTO_ASM
 crypto_ec_SOURCES.x86 += \
	$(VBOX_PATH_CRYPTO_GENASM)/md5-586.S
 crypto_ec_SOURCES.amd64 += \
	$(VBOX_PATH_CRYPTO_GENASM)/md5-x86_64.S
endif
$(evalcall VBOX_OPENSSL_X86,crypto_md5)


recreate-md5-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
	$(VBOX_PATH_CRYPTO_MD5)/asm/md5-586.pl \
	$(VBOX_PATH_CRYPTO_MD5)/asm/md5-x86_64.pl
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-586.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/md5-586.S
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/md5-x86_64.S
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-586.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/md5-586.S
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/md5-x86_64.S
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-586.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/md5-586.S
	perl $(VBOX_PATH_CRYPTO_MD5)/asm/md5-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/md5-x86_64.S

include $(FILE_KBUILD_SUB_FOOTER)