1 | # $Id: Makefile.kmk 101211 2023-09-21 06:43:35Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for OpenSSL ssl.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # The main target: libssl.
|
---|
33 | #
|
---|
34 | if "$(SDK_VBoxOpenSslStatic_INCS)" == "$(SDK_VBoxOpenSslStatic_VBOX_DEFAULT_INCS)"
|
---|
35 | LIBRARIES += VBox-libssl
|
---|
36 | endif
|
---|
37 | VBox-libssl_TEMPLATE = LibCrypto
|
---|
38 | VBox-libssl_DEFS.win = NOCRYPT # Exclude WinCrypt.h
|
---|
39 | #VBox-libssl_DEFS = OPENSSL_NO_DEPRECATED This removes TLSv1_1_client_method required for rdesktop-vrdp
|
---|
40 | VBox-libssl_SOURCES = \
|
---|
41 | bio_ssl.c \
|
---|
42 | d1_lib.c \
|
---|
43 | d1_msg.c \
|
---|
44 | d1_srtp.c \
|
---|
45 | methods.c \
|
---|
46 | pqueue.c \
|
---|
47 | record/dtls1_bitmap.c \
|
---|
48 | record/rec_layer_d1.c \
|
---|
49 | record/rec_layer_s3.c \
|
---|
50 | record/ssl3_buffer.c \
|
---|
51 | record/ssl3_record.c \
|
---|
52 | record/ssl3_record_tls13.c \
|
---|
53 | record/tls_pad.c \
|
---|
54 | s3_cbc.c \
|
---|
55 | s3_enc.c \
|
---|
56 | s3_lib.c \
|
---|
57 | s3_msg.c \
|
---|
58 | ssl_asn1.c \
|
---|
59 | ssl_cert.c \
|
---|
60 | ssl_ciph.c \
|
---|
61 | ssl_conf.c \
|
---|
62 | ssl_err.c \
|
---|
63 | ssl_init.c \
|
---|
64 | ssl_lib.c \
|
---|
65 | ssl_mcnf.c \
|
---|
66 | ssl_rsa.c \
|
---|
67 | ssl_sess.c \
|
---|
68 | ssl_stat.c \
|
---|
69 | ssl_txt.c \
|
---|
70 | ssl_utst.c \
|
---|
71 | statem/extensions.c \
|
---|
72 | statem/extensions_clnt.c \
|
---|
73 | statem/extensions_cust.c \
|
---|
74 | statem/extensions_srvr.c \
|
---|
75 | statem/statem.c \
|
---|
76 | statem/statem_clnt.c \
|
---|
77 | statem/statem_dtls.c \
|
---|
78 | statem/statem_lib.c \
|
---|
79 | statem/statem_srvr.c \
|
---|
80 | t1_enc.c \
|
---|
81 | t1_lib.c \
|
---|
82 | t1_trce.c \
|
---|
83 | tls13_enc.c \
|
---|
84 | tls_depr.c \
|
---|
85 | tls_srp.c
|
---|
86 |
|
---|
87 | ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
|
---|
88 | LIBRARIES += VBox-libssl-x86
|
---|
89 | VBox-libssl-x86_TEMPLATE = VBoxLibCrypto-x86
|
---|
90 | VBox-libssl-x86_EXTENDS = VBox-libssl
|
---|
91 | endif
|
---|
92 |
|
---|
93 |
|
---|
94 | ifdef VBOX_NEED_EXTPACK_OPENSSL
|
---|
95 | #
|
---|
96 | # For the extension pack.
|
---|
97 | #
|
---|
98 | LIBRARIES += VBoxExtPack-libssl
|
---|
99 | VBoxExtPack-libssl_EXTENDS = VBox-libssl
|
---|
100 | VBoxExtPack-libssl_DEFS = VBOX_IN_EXTPACK
|
---|
101 | endif
|
---|
102 |
|
---|
103 |
|
---|
104 | ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING
|
---|
105 | #
|
---|
106 | # The build program version.
|
---|
107 | #
|
---|
108 | LIBRARIES += VBoxBldProg-libssl
|
---|
109 | VBoxBldProg-libssl_EXTENDS = VBox-libssl
|
---|
110 | VBoxBldProg-libssl_TEMPLATE = VBoxLibCryptoBldProg
|
---|
111 | endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING
|
---|
112 |
|
---|
113 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
114 |
|
---|