VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.6/Makefile.kmk

Last change on this file was 106061, checked in by vboxsync, 7 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.6 KB
Line 
1# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
2## @file
3# Sub-Makefile for the libtpms library.
4#
5
6#
7# Copyright (C) 2021-2024 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
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31VBOX_PATH_LIBTPMS = $(PATH_ROOT)/src/libs/libtpms-0.9.6
32
33LIBRARIES += VBox-libtpms_tpm12 VBox-libtpms_tpm2 VBox-libtpms
34VBox-libtpms_tpm12_TEMPLATE = VBoxR3DllNonPedantic
35VBox-libtpms_tpm12_SDKS = VBoxOpenSsl
36VBox-libtpms_tpm12_DEFS = \
37 TPM_PCCLIENT \
38 TPM_VOLATILE_LOAD \
39 TPM_ENABLE_ACTIVATE \
40 TPM_AES \
41 TPM_LIBTPMS_CALLBACKS \
42 TPM_NV_DISK \
43 TPM_NOMAINTENANCE_COMMANDS \
44 TPM_V12
45ifn1of ($(KBUILD_TARGET), win)
46 VBox-libtpms_tpm12_DEFS += TPM_POSIX
47 VBox-libtpms_tpm12_CFLAGS += -include tpm_library_conf.h
48else
49 VBox-libtpms_tpm12_DEFS += TPM_WINDOWS
50 VBox-libtpms_tpm12_CFLAGS += /FI tpm_library_conf.h
51endif
52VBox-libtpms_tpm12_CFLAGS.win += -wd4701
53VBox-libtpms_tpm12_CFLAGS.win += -wd4703
54VBox-libtpms_tpm12_INCS = \
55 $(VBOX_PATH_LIBTPMS) \
56 $(VBOX_PATH_LIBTPMS)/include/libtpms \
57 $(VBOX_PATH_LIBTPMS)/src \
58 $(VBOX_PATH_LIBTPMS)/src/tpm12
59VBox-libtpms_tpm12_SOURCES = \
60 src/tpm12/tpm_admin.c \
61 src/tpm12/tpm_audit.c \
62 src/tpm12/tpm_auth.c \
63 src/tpm12/tpm_cryptoh.c \
64 src/tpm12/tpm_counter.c \
65 src/tpm12/tpm_daa.c \
66 src/tpm12/tpm_delegate.c \
67 src/tpm12/tpm_digest.c \
68 src/tpm12/tpm_error.c \
69 src/tpm12/tpm_global.c \
70 src/tpm12/tpm_identity.c \
71 src/tpm12/tpm_init.c \
72 src/tpm12/tpm_libtpms_io.c \
73 src/tpm12/tpm_key.c \
74 src/tpm12/tpm_load.c \
75 src/tpm12/tpm_maint.c \
76 src/tpm12/tpm_migration.c \
77 src/tpm12/tpm_nonce.c \
78 src/tpm12/tpm_nvram.c \
79 src/tpm12/tpm_openssl_helpers.c \
80 src/tpm12/tpm_owner.c \
81 src/tpm12/tpm_pcr.c \
82 src/tpm12/tpm_permanent.c \
83 src/tpm12/tpm_platform.c \
84 src/tpm12/tpm_process.c \
85 src/tpm12/tpm_secret.c \
86 src/tpm12/tpm_session.c \
87 src/tpm12/tpm_sizedbuffer.c \
88 src/tpm12/tpm_startup.c \
89 src/tpm12/tpm_store.c \
90 src/tpm12/tpm_storage.c \
91 src/tpm12/tpm_ticks.c \
92 src/tpm12/tpm_time.c \
93 src/tpm12/tpm_transport.c \
94 src/tpm12/tpm_ver.c \
95 src/tpm12/tpm_svnrevision.c \
96 src/tpm12/tpm_crypto.c \
97 src/tpm_tpm12_interface.c \
98 src/tpm_tpm12_tis.c
99
100VBox-libtpms_tpm2_TEMPLATE = VBoxR3DllNonPedantic
101VBox-libtpms_tpm2_SDKS = VBoxOpenSsl
102VBox-libtpms_tpm2_DEFS = \
103 TPM_LIBTPMS_CALLBACKS
104VBox-libtpms_2_DEFS += \
105 USE_OPENSSL_FUNCTIONS_SYMMETRIC=1 \
106 USE_OPENSSL_FUNCTIONS_EC=1 \
107 USE_OPENSSL_FUNCTIONS_ECDSA=1 \
108 USE_OPENSSL_FUNCTIONS_RSA=1
109ifn1of ($(KBUILD_TARGET), win)
110 VBox-libtpms_tpm2_DEFS += TPM_POSIX
111 VBox-libtpms_tpm2_CFLAGS += -include tpm_library_conf.h
112else
113 VBox-libtpms_tpm2_DEFS += TPM_WINDOWS
114 VBox-libtpms_tpm2_CFLAGS += /FI tpm_library_conf.h
115endif
116VBox-libtpms_tpm2_CFLAGS.win += -wd4701
117VBox-libtpms_tpm2_CFLAGS.win += -wd4703
118VBox-libtpms_tpm2_CFLAGS.win += -wd4005
119VBox-libtpms_tpm2_INCS = \
120 $(VBOX_PATH_LIBTPMS) \
121 $(VBOX_PATH_LIBTPMS)/include/libtpms \
122 $(VBOX_PATH_LIBTPMS)/src \
123 $(VBOX_PATH_LIBTPMS)/src/tpm2 \
124 $(VBOX_PATH_LIBTPMS)/src/tpm2/crypto \
125 $(VBOX_PATH_LIBTPMS)/src/tpm2/crypto/openssl
126VBox-libtpms_tpm2_SOURCES = \
127 src/tpm2/ACT_spt.c \
128 src/tpm2/ACTCommands.c \
129 src/tpm2/AlgorithmCap.c \
130 src/tpm2/AlgorithmTests.c \
131 src/tpm2/AsymmetricCommands.c \
132 src/tpm2/AttestationCommands.c \
133 src/tpm2/Attest_spt.c \
134 src/tpm2/AuditCommands.c \
135 src/tpm2/Bits.c \
136 src/tpm2/BnConvert.c \
137 src/tpm2/BnMath.c \
138 src/tpm2/BnMemory.c \
139 src/tpm2/Cancel.c \
140 src/tpm2/CapabilityCommands.c \
141 src/tpm2/Clock.c \
142 src/tpm2/ClockCommands.c \
143 src/tpm2/CommandAudit.c \
144 src/tpm2/CommandCodeAttributes.c \
145 src/tpm2/CommandDispatcher.c \
146 src/tpm2/ContextCommands.c \
147 src/tpm2/Context_spt.c \
148 src/tpm2/CryptEccData.c \
149 src/tpm2/CryptSelfTest.c \
150 src/tpm2/CryptUtil.c \
151 src/tpm2/DA.c \
152 src/tpm2/DebugHelpers.c \
153 src/tpm2/DictionaryCommands.c \
154 src/tpm2/DuplicationCommands.c \
155 src/tpm2/EACommands.c \
156 src/tpm2/EncryptDecrypt_spt.c \
157 src/tpm2/Entity.c \
158 src/tpm2/Entropy.c \
159 src/tpm2/EphemeralCommands.c \
160 src/tpm2/ExecCommand.c \
161 src/tpm2/Global.c \
162 src/tpm2/Handle.c \
163 src/tpm2/HashCommands.c \
164 src/tpm2/Hierarchy.c \
165 src/tpm2/HierarchyCommands.c \
166 src/tpm2/IntegrityCommands.c \
167 src/tpm2/IoBuffers.c \
168 src/tpm2/Locality.c \
169 src/tpm2/LocalityPlat.c \
170 src/tpm2/ManagementCommands.c \
171 src/tpm2/Manufacture.c \
172 src/tpm2/Marshal.c \
173 src/tpm2/MathOnByteBuffers.c \
174 src/tpm2/Memory.c \
175 src/tpm2/NVCommands.c \
176 src/tpm2/NVDynamic.c \
177 src/tpm2/NVMem.c \
178 src/tpm2/NVReserved.c \
179 src/tpm2/NV_spt.c \
180 src/tpm2/Object.c \
181 src/tpm2/ObjectCommands.c \
182 src/tpm2/Object_spt.c \
183 src/tpm2/PCR.c \
184 src/tpm2/PlatformACT.c \
185 src/tpm2/PlatformData.c \
186 src/tpm2/Policy_spt.c \
187 src/tpm2/Power.c \
188 src/tpm2/PowerPlat.c \
189 src/tpm2/PP.c \
190 src/tpm2/PPPlat.c \
191 src/tpm2/PrimeData.c \
192 src/tpm2/PropertyCap.c \
193 src/tpm2/RandomCommands.c \
194 src/tpm2/Response.c \
195 src/tpm2/ResponseCodeProcessing.c \
196 src/tpm2/RunCommand.c \
197 src/tpm2/Session.c \
198 src/tpm2/SessionCommands.c \
199 src/tpm2/SessionProcess.c \
200 src/tpm2/SigningCommands.c \
201 src/tpm2/StartupCommands.c \
202 src/tpm2/SymmetricCommands.c \
203 src/tpm2/TestingCommands.c \
204 src/tpm2/Ticket.c \
205 src/tpm2/Time.c \
206 src/tpm2/TpmAsn1.c \
207 src/tpm2/TpmSizeChecks.c \
208 src/tpm2/TPMCmdp.c \
209 src/tpm2/TpmFail.c \
210 src/tpm2/Unique.c \
211 src/tpm2/Unmarshal.c \
212 src/tpm2/Vendor_TCG_Test.c \
213 src/tpm2/X509_ECC.c \
214 src/tpm2/X509_RSA.c \
215 src/tpm2/X509_spt.c \
216 src/tpm2/BackwardsCompatibilityObject.c \
217 src/tpm2/LibtpmsCallbacks.c \
218 src/tpm2/NVMarshal.c \
219 src/tpm2/StateMarshal.c \
220 src/tpm2/Volatile.c \
221 src/tpm2/crypto/openssl/CryptCmac.c \
222 src/tpm2/crypto/openssl/CryptDes.c \
223 src/tpm2/crypto/openssl/CryptEccKeyExchange.c \
224 src/tpm2/crypto/openssl/CryptEccMain.c \
225 src/tpm2/crypto/openssl/CryptEccSignature.c \
226 src/tpm2/crypto/openssl/CryptHash.c \
227 src/tpm2/crypto/openssl/CryptPrime.c \
228 src/tpm2/crypto/openssl/CryptPrimeSieve.c \
229 src/tpm2/crypto/openssl/CryptRand.c \
230 src/tpm2/crypto/openssl/CryptRsa.c \
231 src/tpm2/crypto/openssl/CryptSmac.c \
232 src/tpm2/crypto/openssl/CryptSym.c \
233 src/tpm2/crypto/openssl/ExpDCache.c \
234 src/tpm2/crypto/openssl/Helpers.c \
235 src/tpm2/crypto/openssl/TpmToOsslDesSupport.c \
236 src/tpm2/crypto/openssl/TpmToOsslMath.c \
237 src/tpm2/crypto/openssl/TpmToOsslSupport.c \
238 src/tpm_tpm2_interface.c \
239 src/tpm_tpm2_tis.c
240
241VBox-libtpms_TEMPLATE = VBoxR3DllNonPedantic
242ifn1of ($(KBUILD_TARGET), win)
243 VBox-libtpms_CFLAGS += -include tpm_library_conf.h
244else
245 VBox-libtpms_CFLAGS += /FI tpm_library_conf.h
246endif
247VBox-libtpms_DEFS = \
248 WITH_TPM1 \
249 WITH_TPM2 \
250 TPM_LIBTPMS_CALLBACKS
251VBox-libtpms_INCS = \
252 $(VBOX_PATH_LIBTPMS) \
253 $(VBOX_PATH_LIBTPMS)/include/libtpms \
254 $(VBOX_PATH_LIBTPMS)/src
255VBox-libtpms_SOURCES = \
256 src/disabled_interface.c \
257 src/tpm_debug.c \
258 src/tpm_library.c \
259 src/tpm_memory.c \
260 src/tpm_nvfile.c \
261 $(PATH_STAGE_LIB)/VBox-libtpms_tpm12$(VBOX_SUFF_LIB) \
262 $(PATH_STAGE_LIB)/VBox-libtpms_tpm2$(VBOX_SUFF_LIB)
263
264include $(FILE_KBUILD_SUB_FOOTER)
265
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