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