2005-12-16 19:25:07 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2005/12/16 16:25:07 jmc Exp $
|
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
|
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I.
|
|
|
|
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>
|