Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / sbin / setkey / Makefile
blob70b998c32abfe597e91666a8a38f24d6bd528f4f
1 # $NetBSD: Makefile,v 1.11 2009/04/20 16:05:30 drochner Exp $
3 WARNS?= 3 # XXX: sign-compare issues
5 .include <bsd.own.mk>
7 PROG= setkey
8 SRCS= setkey.c parse.y token.l
9 MAN= setkey.8
11 YHEADER=parse.h
13 DIST= ${NETBSDSRCDIR}/crypto/dist/ipsec-tools
15 CPPFLAGS+= -I${DIST}/src/setkey -I${DIST}/src/libipsec
16 CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I.
17 CPPFLAGS+= -DIPSEC_DEBUG -DHAVE_CONFIG_H
18 CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES
20 LDADD+= -ll -ly -lipsec
21 DPADD+= ${LIBL} ${LIBY} ${LIBIPSEC}
23 .if (${USE_INET6} != "no")
24 CPPFLAGS+=-DINET6
25 .endif
27 .PATH: ${DIST}/src/setkey
29 .include <bsd.prog.mk>