2002-08-19 14:16:51 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2002/08/19 10:17:00 lukem Exp $
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1999-07-02 21:41:23 +04:00
|
|
|
|
|
|
|
PROG= setkey
|
|
|
|
SRCS= setkey.c parse.y token.l
|
2000-03-14 00:04:07 +03:00
|
|
|
|
2000-06-13 19:15:21 +04:00
|
|
|
#CFLAGS+=-g
|
1999-07-02 21:41:23 +04:00
|
|
|
LDADD+= -ll -ly
|
2000-01-31 17:22:41 +03:00
|
|
|
DPADD+= ${LIBL} ${LIBY}
|
|
|
|
CLEANFILES+= y.tab.c y.tab.h key_test.o keytest
|
2000-10-29 15:32:06 +03:00
|
|
|
YHEADER= yes
|
1999-07-02 21:41:23 +04:00
|
|
|
|
2000-06-13 09:35:45 +04:00
|
|
|
#SCRIPTS= scriptdump
|
1999-07-02 21:41:23 +04:00
|
|
|
|
2000-01-31 17:22:41 +03:00
|
|
|
all: ${PROG} scriptdump
|
1999-07-02 21:41:23 +04:00
|
|
|
|
2000-01-31 17:22:41 +03:00
|
|
|
CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT
|
|
|
|
CPPFLAGS+=-I. -I${.CURDIR}
|
1999-07-02 21:41:23 +04:00
|
|
|
LDADD+= -lipsec
|
|
|
|
DPADD+= ${LIBIPSEC}
|
2000-01-31 17:22:41 +03:00
|
|
|
CLEANFILES+= scriptdump
|
1999-07-02 21:41:23 +04:00
|
|
|
|
2000-03-14 00:04:07 +03:00
|
|
|
# libpfkey.
|
|
|
|
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
|
2002-08-19 14:16:51 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/lib/libipsec ${NETBSDSRCDIR}/sys/netkey
|
2000-03-14 00:04:07 +03:00
|
|
|
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
|
2002-08-19 14:16:51 +04:00
|
|
|
CPPFLAGS+=-I${NETBSDSRCDIR}/lib/libipsec -I${NETBSDSRCDIR}/sys/netkey
|
2000-03-14 00:04:07 +03:00
|
|
|
|
1999-07-02 21:41:23 +04:00
|
|
|
MAN= setkey.8
|
|
|
|
LOCALPREFIX= /usr/pkg
|
|
|
|
|
2000-01-31 17:22:41 +03:00
|
|
|
scriptdump: scriptdump.pl
|
|
|
|
sed -e 's#@LOCALPREFIX@#${LOCALPREFIX}#' < $> > scriptdump
|
1999-07-02 21:41:23 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|