# $NetBSD: Makefile,v 1.4.6.1 2023/08/11 13:42:57 martin Exp $ .include DIST=${NETBSDSRCDIR}/external/bsd/pam-u2f/dist .PATH: ${DIST} ${DIST}/pamu2fcfg CFFILE=${DIST}/configure.ac PACKAGE!= ${TOOL_SED} -ne 's/AC_INIT(\[\([a-zA-Z0-9_-]*\)\].*/\1/p' ${CFFILE} VERSION!= ${TOOL_SED} -ne 's/AC_INIT(\[[a-zA-Z0-9_-]*\], \[\([0-9.]*\)\].*/\1/p' ${CFFILE} CPPFLAGS+= -I${DIST} -I${.CURDIR} CPPFLAGS+= -DPACKAGE='"${PACKAGE}"' -DVERSION='"${VERSION}"' CPPFLAGS+= -DHAVE_UNISTD_H BINDIR=/usr/bin PROG=pamu2fcfg SRCS=pamu2fcfg.c cmdline.c b64.c readpassphrase.c explicit_bzero.c util.c COPTS.util.c += -Wno-error=stack-protector LDADD+=-lpam -lfido2 -lcbor -lusbhid -lcrypto -lm DPADD+=${LIBPAM} ${LIBFIDO2} ${LIBCBOR} ${LIBUSBHID} ${LIBCRYPTO} ${LIBM} pamu2fcfg.1: asciidoc -b docbook45 -d manpage -o pamu2fcfg.1.xml ../../dist/man/pamu2fcfg.1.txt xsltproc --nonet --xinclude -o pamu2fcfg.1 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' pamu2fcfg.1.xml rm -f pamu2fcfg.1.xml COPTS.util.c+= -Wno-error=deprecated-declarations .include