Remove building with NOCRYPTO option
[minix3.git] / crypto / external / bsd / netpgp / bin / netpgpverify / Makefile
blobb06fa3a1b6a76580681db6a1dcf888e63c52b188
1 # $NetBSD: Makefile,v 1.13 2014/12/05 04:42:36 agc Exp $
3 PROG=netpgpverify
4 BINDIR= /usr/bin
6 SRCS= b64.c bignum.c bufgap.c digest.c
7 SRCS+= libverify.c main.c misc.c
8 SRCS+= pgpsum.c rsa.c
10 SRCS+= bzlib.c zlib.c
12 SRCS+= md5c.c rmd160.c sha1.c sha2.c tiger.c
14 CPPFLAGS+=-I${.CURDIR} -I${EXTDIST}/src/netpgpverify
15 COPTS.libverify.c+= -Wno-format-nonliteral
17 .ifndef PRODUCTION
18 CPPFLAGS+=-g -O0
19 LDFLAGS+=-g -O0
20 .endif
22 MAN= netpgpverify.1
23 WARNS= 5
25 EXTDIST=${.CURDIR}/../../dist
27 .PATH: ${EXTDIST}/src/netpgpverify
29 .include <bsd.prog.mk>
31 t tst: ${PROG}
32 ./${PROG} -k ${EXTDIST}/src/netpgpverify/pubring.gpg ${EXTDIST}/src/netpgpverify/NetBSD-6.0_RC1_hashes.asc
33 ./${PROG} -k ${EXTDIST}/src/netpgpverify/pubring.gpg ${EXTDIST}/src/netpgpverify/NetBSD-6.0_RC1_hashes.gpg
34 ./${PROG} -v
35 ./${PROG} -S ${EXTDIST}/src/netpgpverify/sshtest-20140202.pub ${EXTDIST}/src/netpgpverify/data.gpg
36 ./${PROG} -S ${EXTDIST}/src/netpgpverify/sshtest-20140202.pub ${EXTDIST}/src/netpgpverify/data.sig
37 @echo "expected failure, to check bad signatures fail to verify"
38 -sed -e 's|A|B|' ${EXTDIST}/src/netpgpverify/data.gpg | ./${PROG} -S ${EXTDIST}/src/netpgpverify/sshtest-20140202.pub