summaryrefslogtreecommitdiffstats
path: root/sbin/setkey/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/setkey/Makefile')
-rw-r--r--sbin/setkey/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/setkey/Makefile b/sbin/setkey/Makefile
index e6fbadc..8feb0a6 100644
--- a/sbin/setkey/Makefile
+++ b/sbin/setkey/Makefile
@@ -29,11 +29,18 @@
PROG= setkey
SRCS= setkey.c parse.y token.l
CFLAGS+=-g
+CFLAGS+=-I${.CURDIR}/../../lib/libipsec
DPADD= ${LIBL} ${LIBY}
LDADD= -ll -ly
CLEANFILES+= y.tab.c y.tab.h key_test.o keytest
YFLAGS+=-d
+# 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
+CFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey
+
SCRIPTS= scriptdump
BINOWN = root
OpenPOWER on IntegriCloud