VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/Makefile.kmk@ 93889

Last change on this file since 93889 was 91649, checked in by vboxsync, 3 years ago

src/libs: Export fixing for libtpms-0.9.0, bugref:10078

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