1 1.1 itojun # $NetBSD: Makefile,v 1.1 2000/06/13 15:15:24 itojun Exp $ 2 1.1 itojun 3 1.1 itojun PROG= setkey 4 1.1 itojun SRCS= setkey.c parse.y token.l 5 1.1 itojun 6 1.1 itojun #CFLAGS+=-g 7 1.1 itojun CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec 8 1.1 itojun LDADD+= -ll -ly 9 1.1 itojun DPADD+= ${LIBL} ${LIBY} 10 1.1 itojun CLEANFILES+= y.tab.c y.tab.h key_test.o keytest 11 1.1 itojun YFLAGS+=-d 12 1.1 itojun 13 1.1 itojun #SCRIPTS= scriptdump 14 1.1 itojun 15 1.1 itojun all: ${PROG} scriptdump 16 1.1 itojun 17 1.1 itojun CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT 18 1.1 itojun CPPFLAGS+=-I. -I${.CURDIR} 19 1.1 itojun LDADD+= -lipsec 20 1.1 itojun DPADD+= ${LIBIPSEC} 21 1.1 itojun CLEANFILES+= scriptdump 22 1.1 itojun 23 1.1 itojun # libpfkey. 24 1.1 itojun # ipsec_strerror.c is for avoiding shlib reference to non-exported function. 25 1.1 itojun .PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey 26 1.1 itojun SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c 27 1.1 itojun CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey 28 1.1 itojun 29 1.1 itojun MAN= setkey.8 30 1.1 itojun LOCALPREFIX= /usr/pkg 31 1.1 itojun 32 1.1 itojun scriptdump: scriptdump.pl 33 1.1 itojun sed -e 's#@LOCALPREFIX@#${LOCALPREFIX}#' < $> > scriptdump 34 1.1 itojun 35 1.1 itojun .include <bsd.prog.mk> 36