1 # $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $ 2 .include "../Makefile.inc" 3 4 CPPFLAGS+=-DAPPID=\"TSPI\" -DVAR_PREFIX=\"/var\" -DETC_PREFIX=\"/etc\" 5 CPPFLAGS+=-DTSS_BUILD_TSS12 -DTSS_BUILD_TRANSPORT -DTSS_BUILD_TICK 6 CPPFLAGS+=-DTSS_BUILD_COUNTER -DTSS_BUILD_AUTH -DTSS_BUILD_GETSET 7 CPPFLAGS+=-DTSS_BUILD_RANDOM -DTSS_BUILD_CAPS -DTSS_BUILD_CAPS_TPM 8 CPPFLAGS+=-DTSS_BUILD_POLICY -DTSS_BUILD_DIR -DTSS_BUILD_PCR_EVENTS 9 CPPFLAGS+=-DTSS_BUILD_HASH -DTSS_BUILD_SIGN -DTSS_BUILD_QUOTE 10 CPPFLAGS+=-DTSS_BUILD_PCR_COMP -DTSS_BUILD_SEAL -DTSS_BUILD_CHANGEAUTH 11 CPPFLAGS+=-DTSS_BUILD_BIND -DTSS_BUILD_OWN -DTSS_BUILD_PS -DTSS_BUILD_ADMIN 12 CPPFLAGS+=-DTSS_BUILD_AIK -DTSS_BUILD_EK -DTSS_BUILD_CERTIFY -DTSS_BUILD_KEY 13 CPPFLAGS+=-DTSS_BUILD_MAINT -DTSS_BUILD_MIGRATION -DTSS_BUILD_PCR_EXTEND 14 CPPFLAGS+=-DTSS_BUILD_SELFTEST -DTSS_BUILD_PCRS_LIST -DTSS_BUILD_HASH_LIST 15 CPPFLAGS+=-DTSS_BUILD_ENCDATA_LIST -DTSS_BUILD_RSAKEY_LIST -DTSS_BUILD_ASN1 16 CPPFLAGS+=-DTSS_BUILD_AUDIT -DTSS_BUILD_SEALX -DTSS_BUILD_QUOTE2 17 CPPFLAGS+=-DTSS_BUILD_NV -DTSS_BUILD_DELEGATION -DTSS_BUILD_CMK 18 19 TSPI=${DIST}/src/tspi 20 TRSPI=${DIST}/src/trspi 21 .PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl 22 23 SHLIB_MAJOR=3 24 SHLIB_MINOR=0 25 26 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto 27 LIB=tspi 28 SRCS=\ 29 hosttable.c \ 30 log.c \ 31 obj.c \ 32 obj_context.c \ 33 obj_delfamily.c \ 34 obj_encdata.c \ 35 obj_hash.c \ 36 obj_migdata.c \ 37 obj_nv.c \ 38 obj_pcrs.c \ 39 obj_policy.c \ 40 obj_rsakey.c \ 41 obj_tpm.c \ 42 ps_utils.c \ 43 rpc.c \ 44 rpc_admin.c \ 45 rpc_aik.c \ 46 rpc_audit.c \ 47 rpc_auth.c \ 48 rpc_bind.c \ 49 rpc_caps.c \ 50 rpc_caps_tpm.c \ 51 rpc_certify.c \ 52 rpc_changeauth.c \ 53 rpc_cmk.c \ 54 rpc_context.c \ 55 rpc_counter.c \ 56 rpc_delegate.c \ 57 rpc_dir.c \ 58 rpc_ek.c \ 59 rpc_evlog.c \ 60 rpc_key.c \ 61 rpc_maint.c \ 62 rpc_migration.c \ 63 rpc_nv.c \ 64 rpc_oper.c \ 65 rpc_own.c \ 66 rpc_pcr_extend.c \ 67 rpc_ps.c \ 68 rpc_quote.c \ 69 rpc_quote2.c \ 70 rpc_random.c \ 71 rpc_seal.c \ 72 rpc_selftest.c \ 73 rpc_sign.c \ 74 rpc_tick.c \ 75 rpc_transport.c \ 76 spi_utils.c \ 77 ssl_ui.c \ 78 tcs_api.c \ 79 tsp_admin.c \ 80 tsp_aik.c \ 81 tsp_asym.c \ 82 tsp_audit.c \ 83 tsp_auth.c \ 84 tsp_bind.c \ 85 tsp_caps.c \ 86 tsp_caps_tpm.c \ 87 tsp_certify.c \ 88 tsp_changeauth.c \ 89 tsp_context_mem.c \ 90 tsp_counter.c \ 91 tsp_delegate.c \ 92 tsp_dir.c \ 93 tsp_ek.c \ 94 tsp_get_flags.c \ 95 tsp_key.c \ 96 tsp_maint.c \ 97 tsp_migration.c \ 98 tsp_nv.c \ 99 tsp_oper.c \ 100 tsp_own.c \ 101 tsp_pcr.c \ 102 tsp_pcr_extend.c \ 103 tsp_policy.c \ 104 tsp_ps.c \ 105 tsp_quote.c \ 106 tsp_quote2.c \ 107 tsp_random.c \ 108 tsp_seal.c \ 109 tsp_selftest.c \ 110 tsp_sign.c \ 111 tsp_tick.c \ 112 tspi_admin.c \ 113 tspi_aik.c \ 114 tspi_asn1.c \ 115 tspi_audit.c \ 116 tspi_bind.c \ 117 tspi_caps.c \ 118 tspi_caps_tpm.c \ 119 tspi_certify.c \ 120 tspi_changeauth.c \ 121 tspi_cmk.c \ 122 tspi_context.c \ 123 tspi_counter.c \ 124 tspi_delegate.c \ 125 tspi_dir.c \ 126 tspi_ek.c \ 127 tspi_getset.c \ 128 tspi_hash.c \ 129 tspi_key.c \ 130 tspi_maint.c \ 131 tspi_migration.c \ 132 tspi_nv.c \ 133 tspi_oper.c \ 134 tspi_own.c \ 135 tspi_pcr_comp.c \ 136 tspi_pcr_comp12.c \ 137 tspi_pcr_events.c \ 138 tspi_pcr_extend.c \ 139 tspi_policy.c \ 140 tspi_ps.c \ 141 tspi_quote.c \ 142 tspi_quote2.c \ 143 tspi_random.c \ 144 tspi_seal.c \ 145 tspi_selftest.c \ 146 tspi_sign.c \ 147 tspi_tick.c \ 148 tspi_transport.c \ 149 tspps.c \ 150 hash.c \ 151 rsa.c \ 152 symmetric.c \ 153 trousers.c 154 155 .SUFFIXES: .h 156 .PATH.h: ${DIST}/src/include 157 INCSDIR=/usr/include 158 INCS=\ 159 trousers/trousers.h \ 160 trousers/tss.h \ 161 tss/compat11b.h \ 162 tss/platform.h \ 163 tss/tcpa_defines.h \ 164 tss/tcpa_error.h \ 165 tss/tcpa_struct.h \ 166 tss/tcpa_typedef.h \ 167 tss/tcs.h \ 168 tss/tcs_defines.h \ 169 tss/tcs_error.h \ 170 tss/tcs_structs.h \ 171 tss/tcs_typedef.h \ 172 tss/tddl_error.h \ 173 tss/tddlapi_error.h \ 174 tss/tddli.h \ 175 tss/tpm.h \ 176 tss/tpm_error.h \ 177 tss/tpm_ordinal.h \ 178 tss/tspi.h \ 179 tss/tss_defines.h \ 180 tss/tss_error.h \ 181 tss/tss_error_basics.h \ 182 tss/tss_structs.h \ 183 tss/tss_typedef.h 184 185 .SUFFIXES: .3 186 .PATH.3: ${DIST}/man/man3 187 MAN=\ 188 Tspi_ChangeAuth.3 \ 189 Tspi_ChangeAuthAsym.3 \ 190 Tspi_Context_Close.3 \ 191 Tspi_Context_CloseObject.3 \ 192 Tspi_Context_Connect.3 \ 193 Tspi_Context_Create.3 \ 194 Tspi_Context_CreateObject.3 \ 195 Tspi_Context_FreeMemory.3 \ 196 Tspi_Context_GetCapability.3 \ 197 Tspi_Context_GetDefaultPolicy.3 \ 198 Tspi_Context_GetKeyByPublicInfo.3 \ 199 Tspi_Context_GetKeyByUUID.3 \ 200 Tspi_Context_GetRegisteredKeysByUUID.3 \ 201 Tspi_Context_GetRegisteredKeysByUUID2.3 \ 202 Tspi_Context_GetTpmObject.3 \ 203 Tspi_Context_LoadKeyByBlob.3 \ 204 Tspi_Context_LoadKeyByUUID.3 \ 205 Tspi_Context_RegisterKey.3 \ 206 Tspi_Context_UnregisterKey.3 \ 207 Tspi_DAA_IssueCredential.3 \ 208 Tspi_DAA_IssueInit.3 \ 209 Tspi_DAA_IssueSetup.3 \ 210 Tspi_DAA_IssuerKeyVerification.3 \ 211 Tspi_DAA_VerifyInit.3 \ 212 Tspi_DAA_VerifySignature.3 \ 213 Tspi_Data_Bind.3 \ 214 Tspi_Data_Seal.3 \ 215 Tspi_Data_Unbind.3 \ 216 Tspi_Data_Unseal.3 \ 217 Tspi_DecodeBER_TssBlob.3 \ 218 Tspi_EncodeDER_TssBlob.3 \ 219 Tspi_GetAttribData.3 \ 220 Tspi_GetAttribUint32.3 \ 221 Tspi_GetPolicyObject.3 \ 222 Tspi_Hash_GetHashValue.3 \ 223 Tspi_Hash_SetHashValue.3 \ 224 Tspi_Hash_Sign.3 \ 225 Tspi_Hash_UpdateHashValue.3 \ 226 Tspi_Hash_VerifySignature.3 \ 227 Tspi_Key_CertifyKey.3 \ 228 Tspi_Key_ConvertMigrationBlob.3 \ 229 Tspi_Key_CreateKey.3 \ 230 Tspi_Key_CreateMigrationBlob.3 \ 231 Tspi_Key_GetPubKey.3 \ 232 Tspi_Key_LoadKey.3 \ 233 Tspi_Key_UnloadKey.3 \ 234 Tspi_Key_WrapKey.3 \ 235 Tspi_PcrComposite_GetPcrValue.3 \ 236 Tspi_PcrComposite_SelectPcrIndex.3 \ 237 Tspi_PcrComposite_SetPcrValue.3 \ 238 Tspi_Policy_AssignToObject.3 \ 239 Tspi_Policy_FlushSecret.3 \ 240 Tspi_Policy_SetSecret.3 \ 241 Tspi_SetAttribData.3 \ 242 Tspi_SetAttribUint32.3 \ 243 Tspi_TPM_AuthorizeMigrationTicket.3 \ 244 Tspi_TPM_CMKSetRestrictions.3 \ 245 Tspi_TPM_CertifySelfTest.3 \ 246 Tspi_TPM_CheckMaintenancePubKey.3 \ 247 Tspi_TPM_ClearOwner.3 \ 248 Tspi_TPM_CollateIdentityRequest.3 \ 249 Tspi_TPM_CreateEndorsementKey.3 \ 250 Tspi_TPM_CreateMaintenanceArchive.3 \ 251 Tspi_TPM_DAA_JoinCreateDaaPubKey.3 \ 252 Tspi_TPM_DAA_JoinInit.3 \ 253 Tspi_TPM_DAA_JoinStoreCredential.3 \ 254 Tspi_TPM_DAA_Sign.3 \ 255 Tspi_TPM_DirRead.3 \ 256 Tspi_TPM_DirWrite.3 \ 257 Tspi_TPM_GetAuditDigest.3 \ 258 Tspi_TPM_GetCapability.3 \ 259 Tspi_TPM_GetEvent.3 \ 260 Tspi_TPM_GetEventLog.3 \ 261 Tspi_TPM_GetEvents.3 \ 262 Tspi_TPM_GetPubEndorsementKey.3 \ 263 Tspi_TPM_GetRandom.3 \ 264 Tspi_TPM_GetStatus.3 \ 265 Tspi_TPM_GetTestResult.3 \ 266 Tspi_TPM_KillMaintenanceFeature.3 \ 267 Tspi_TPM_LoadMaintenancePubKey.3 \ 268 Tspi_TPM_OwnerGetSRKPubKey.3 \ 269 Tspi_TPM_PcrExtend.3 \ 270 Tspi_TPM_PcrRead.3 \ 271 Tspi_TPM_Quote.3 \ 272 Tspi_TPM_SelfTestFull.3 \ 273 Tspi_TPM_SetStatus.3 \ 274 Tspi_TPM_StirRandom.3 \ 275 Tspi_TPM_TakeOwnership.3 276 277 .include <bsd.lib.mk> 278