avoid shlib reference for pfkey_*. compile them on our own.

This commit is contained in:
itojun 2000-03-13 21:04:07 +00:00
parent ede6f343b9
commit 9034310694
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.4 2000/02/25 08:52:04 mycroft Exp $
# $NetBSD: Makefile,v 1.5 2000/03/13 21:04:07 itojun Exp $
PROG= setkey
SRCS= setkey.c parse.y token.l
CFLAGS+=-g
LDADD+= -ll -ly
DPADD+= ${LIBL} ${LIBY}
@ -18,6 +19,12 @@ LDADD+= -lipsec
DPADD+= ${LIBIPSEC}
CLEANFILES+= scriptdump
# libpfkey.
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
.PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey
MAN= setkey.8
LOCALPREFIX= /usr/pkg