2009-04-20 20:05:29 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2009/04/20 16:05:30 drochner Exp $
|
2009-04-11 11:58:11 +04:00
|
|
|
|
|
|
|
WARNS?= 3 # XXX: sign-compare issues
|
2002-08-19 14:16:51 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1999-07-02 21:41:23 +04:00
|
|
|
|
|
|
|
PROG= setkey
|
2005-12-16 19:25:07 +03:00
|
|
|
SRCS= setkey.c parse.y token.l
|
2005-02-19 19:55:02 +03:00
|
|
|
MAN= setkey.8
|
2000-03-14 00:04:07 +03:00
|
|
|
|
2005-12-16 19:25:07 +03:00
|
|
|
YHEADER=parse.h
|
|
|
|
|
2005-02-19 19:55:02 +03:00
|
|
|
DIST= ${NETBSDSRCDIR}/crypto/dist/ipsec-tools
|
2005-02-19 19:58:26 +03:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${DIST}/src/setkey -I${DIST}/src/libipsec
|
2009-04-20 20:05:29 +04:00
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I. -DYY_NO_INPUT
|
2005-02-19 19:58:26 +03:00
|
|
|
CPPFLAGS+= -DIPSEC_DEBUG -DHAVE_CONFIG_H
|
2005-02-24 16:45:08 +03:00
|
|
|
CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES
|
2005-02-19 19:58:26 +03:00
|
|
|
|
2005-02-19 19:55:02 +03:00
|
|
|
LDADD+= -ll -ly -lipsec
|
|
|
|
DPADD+= ${LIBL} ${LIBY} ${LIBIPSEC}
|
2000-03-14 00:04:07 +03:00
|
|
|
|
2005-02-19 19:55:02 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
|
|
|
CPPFLAGS+=-DINET6
|
|
|
|
.endif
|
1999-07-02 21:41:23 +04:00
|
|
|
|
2005-02-19 19:58:26 +03:00
|
|
|
.PATH: ${DIST}/src/setkey
|
1999-07-02 21:41:23 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|