NetBSD/usr.sbin/setkey/Makefile

32 lines
578 B
Makefile

# $NetBSD: Makefile,v 1.3 2000/01/31 14:22:41 itojun Exp $
PROG= setkey
SRCS= setkey.c parse.y token.l
CFLAGS+=-g
LDADD+= -ll -ly
DPADD+= ${LIBL} ${LIBY}
CLEANFILES+= y.tab.c y.tab.h key_test.o keytest
YFLAGS+=-d
SCRIPTS= scriptdump
BINOWN=root
BINGRP=bin
BINMODE=555
all: ${PROG} scriptdump
CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT
CPPFLAGS+=-I. -I${.CURDIR}
LDADD+= -lipsec
DPADD+= ${LIBIPSEC}
CLEANFILES+= scriptdump
MAN= setkey.8
LOCALPREFIX= /usr/pkg
scriptdump: scriptdump.pl
sed -e 's#@LOCALPREFIX@#${LOCALPREFIX}#' < $> > scriptdump
.include <bsd.prog.mk>