Home | History | Annotate | Line # | Download | only in pamu2fcfg
Makefile revision 1.4
      1  1.4   khorben # $NetBSD: Makefile,v 1.4 2020/11/04 13:46:46 khorben Exp $
      2  1.1  christos 
      3  1.1  christos .include <bsd.own.mk>
      4  1.1  christos 
      5  1.1  christos DIST=${NETBSDSRCDIR}/external/bsd/pam-u2f/dist
      6  1.1  christos 
      7  1.1  christos .PATH: ${DIST} ${DIST}/pamu2fcfg
      8  1.1  christos 
      9  1.1  christos CFFILE=${DIST}/configure.ac
     10  1.1  christos PACKAGE!= ${TOOL_SED} -ne 's/AC_INIT(\[\([a-zA-Z0-9_-]*\)\].*/\1/p' ${CFFILE}
     11  1.1  christos VERSION!= ${TOOL_SED} -ne 's/AC_INIT(\[[a-zA-Z0-9_-]*\], \[\([0-9.]*\)\].*/\1/p' ${CFFILE}
     12  1.1  christos 
     13  1.1  christos CPPFLAGS+= -I${DIST} -I${.CURDIR}
     14  1.1  christos CPPFLAGS+= -DPACKAGE='"${PACKAGE}"' -DVERSION='"${VERSION}"'
     15  1.1  christos CPPFLAGS+= -DHAVE_UNISTD_H
     16  1.1  christos 
     17  1.1  christos BINDIR=/usr/bin
     18  1.1  christos PROG=pamu2fcfg
     19  1.1  christos SRCS=pamu2fcfg.c cmdline.c b64.c readpassphrase.c explicit_bzero.c util.c
     20  1.1  christos COPTS.util.c += -Wno-error=stack-protector
     21  1.1  christos 
     22  1.2  christos LDADD+=-lpam -lfido2 -lcbor -lusbhid -lcrypto -lm
     23  1.2  christos DPADD+=${LIBPAM} ${LIBFIDO2} ${LIBCBOR} ${LIBUSBHID} ${LIBCRYPTO} ${LIBM}
     24  1.1  christos 
     25  1.4   khorben pamu2fcfg.1:
     26  1.4   khorben 	asciidoc -b docbook45 -d manpage -o pamu2fcfg.1.xml ../../dist/man/pamu2fcfg.1.txt
     27  1.4   khorben 	xsltproc --nonet --xinclude -o pamu2fcfg.1 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' pamu2fcfg.1.xml
     28  1.4   khorben 	rm -f pamu2fcfg.1.xml
     29  1.4   khorben 
     30  1.1  christos .include <bsd.prog.mk>
     31