Makefile.prog revision 1.1.4.3
1# $NetBSD: Makefile.prog,v 1.1.4.3 2014/05/22 13:21:46 yamt Exp $ 2.include "../Makefile.inc" 3 4PROG=${.CURDIR:T} 5.if "${PROG:M*sealdata}" != "" 6.PATH.c: ${DIST}/src/cmds 7.else 8.PATH.c: ${DIST}/src/tpm_mgmt 9.endif 10 11.if "${PROG:Mtpm_nv*}" != "" 12SRCS=${PROG}.c tpm_nvcommon.c 13.elif ${PROG} == "tpm_setoperatorauth" 14.elif ${PROG} == "tpm_changeownerauth" 15SRCS=tpm_changeauth.c 16.elif ${PROG} == "tpm_setpresence" 17SRCS=tpm_present.c 18.elif ${PROG} == "tpm_setactive" 19SRCS=tpm_activate.c 20.elif ${PROG:Mtpm_set*} != "" 21SRCS=${PROG:S/set//}.c 22.endif 23 24LIBTPMUTILSOBJDIR!= cd ${.CURDIR}/../../lib/libtpm_utils && ${PRINTOBJDIR} 25 26.if ${PROG} == "tpm_unsealdata" 27DPADD+=${LIBTPM_UNSEAL} 28LDADD+=-ltpm_unseal 29.endif 30DPADD+=${LIBTSPI} 31LDADD+=-L${LIBTPMUTILSOBJDIR} -ltpm_utils -ltspi 32 33DPADD+=${LIBCRYPTO} 34LDADD+=-lcrypto 35 36.if ${PROG} != "tpm_version" && ${PROG:M*sealdata} == "" 37BINDIR=/usr/sbin 38.if ${PROG} != "tpm_restrictsrk" 39.SUFFIXES: .8 40.PATH.8: ${DIST}/man/man8 41MAN+=${PROG}.8 42.else 43NOMAN=yes 44MAN= 45#MLINKS+=tpm_restrictpubek.8 tpm_restrictsrk.8 46.endif 47.else 48BINDIR=/usr/bin 49.if ${PROG} != "tpm_unsealdata" 50.SUFFIXES: .1 51.PATH.1: ${DIST}/man/man1 52MAN+=${PROG}.1 53.else 54NOMAN=yes 55MAN= 56.endif 57.endif 58 59.include <bsd.prog.mk> 60