Makefile.prog revision 1.1
1# $NetBSD: Makefile.prog,v 1.1 2012/01/28 16:04:12 christos 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 33.if ${PROG} != "tpm_version" && ${PROG:M*sealdata} == "" 34BINDIR=/usr/sbin 35.if ${PROG} != "tpm_restrictsrk" 36.SUFFIXES: .8 37.PATH.8: ${DIST}/man/man8 38MAN+=${PROG}.8 39.else 40NOMAN=yes 41MAN= 42#MLINKS+=tpm_restrictpubek.8 tpm_restrictsrk.8 43.endif 44.else 45BINDIR=/usr/bin 46.if ${PROG} != "tpm_unsealdata" 47.SUFFIXES: .1 48.PATH.1: ${DIST}/man/man1 49MAN+=${PROG}.1 50.else 51NOMAN=yes 52MAN= 53.endif 54.endif 55 56.include <bsd.prog.mk> 57