NetBSD/usr.sbin/setkey/Makefile

40 lines
702 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 1999/07/10 11:31:28 tron Exp $
PROG= setkey
SRCS= setkey.c parse.y token.l
LDADD+= -ll -ly
CLEANFILES+= parse.c parse.h key_test.o keytest
YFLAGS+=
CPPFLAGS+=-DIPSEC_DEBUG -DYY_NO_UNPUT -DINET6
CPPFLAGS+=-I.
#SCRIPTS= scriptdump
BINOWN = root
BINGRP = bin
BINMODE = 555
all: ${PROG} ${SCRIPTS}
# FreeBSD
#SRCS+=y.tab.h
#y.tab.h: parse.y
LDADD+= -lipsec
DPADD+= ${LIBIPSEC}
#CLEANFILES+= scriptdump
MAN= setkey.8
LOCALPREFIX= /usr/pkg
#scriptdump: scriptdump.pl
# sed -e 's#@LOCALPREFIX@#${LOCALPREFIX}#' < ${.CURDIR}/scriptdump.pl > scriptdump
parse.c parse.h: parse.y
${YACC.y} -d ${.ALLSRC}
mv -f y.tab.c parse.c
mv -f y.tab.h parse.h
.include <bsd.prog.mk>