VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.3/crypto/ec/Makefile.kmk@ 95218

Last change on this file since 95218 was 94320, checked in by vboxsync, 3 years ago

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.8 KB
Line 
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21LIBRARIES += crypto_ec
22crypto_ec_TEMPLATE = SUBLIBCRYPTO
23crypto_ec_DEFS = OPENSSL_NO_DEPRECATED
24crypto_ec_SOURCES = \
25 curve25519.c \
26 curve448/arch_32/f_impl32.c \
27 curve448/arch_64/f_impl64.c \
28 curve448/curve448.c \
29 curve448/curve448_tables.c \
30 curve448/eddsa.c \
31 curve448/f_generic.c \
32 curve448/scalar.c \
33 ec2_oct.c \
34 ec2_smpl.c \
35 ec_ameth.c \
36 ec_asn1.c \
37 ec_backend.c \
38 ec_check.c \
39 ec_curve.c \
40 ec_cvt.c \
41 ec_deprecated.c \
42 ec_err.c \
43 ec_key.c \
44 ec_kmeth.c \
45 ec_lib.c \
46 ec_mult.c \
47 ec_oct.c \
48 ec_pmeth.c \
49 ec_print.c \
50 ecdh_kdf.c \
51 ecdh_ossl.c \
52 ecdsa_ossl.c \
53 ecdsa_sign.c \
54 ecdsa_vrf.c \
55 eck_prn.c \
56 ecp_mont.c \
57 ecp_nist.c \
58 ecp_nistz256.c \
59 ecp_oct.c \
60 ecp_smpl.c \
61 ecx_backend.c \
62 ecx_key.c \
63 ecx_meth.c
64
65ifdef VBOX_WITH_CRYPTO_ASM
66 crypto_ec_SOURCES.x86 += \
67 $(VBOX_PATH_CRYPTO_GENASM)/ecp_nistz256-x86.S
68 crypto_ec_SOURCES.amd64 += \
69 $(VBOX_PATH_CRYPTO_GENASM)/ecp_nistz256-x86_64.S \
70 $(VBOX_PATH_CRYPTO_GENASM)/x25519-x86_64.S
71endif
72$(evalcall VBOX_OPENSSL_X86,crypto_ec)
73
74
75recreate-ec-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
76 $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl \
77 $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl \
78 $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl
79 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/ecp_nistz256-x86.S
80 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/ecp_nistz256-x86_64.S
81 perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/x25519-x86_64.S
82 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ecp_nistz256-x86.S
83 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ecp_nistz256-x86_64.S
84 perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/x25519-x86_64.S
85 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/ecp_nistz256-x86.S
86 perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/ecp_nistz256-x86_64.S
87 perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/x25519-x86_64.S
88
89include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette