xref: /freebsd/sbin/ipf/ippool/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=	ipf
2PROG=		ippool
3SRCS=		${GENHDRS} ippool_y.c ippool_l.c ippool.c
4MAN=		ippool.5 ippool.8
5CFLAGS+=	-I.
6CFLAGS+=	-Wno-error=unused-but-set-variable
7
8GENHDRS=	ippool_l.h ippool_y.h
9CLEANFILES+=	${GENHDRS} ippool_y.c ippool_l.c
10
11ippool_y.c: ippool_y.y
12	${YACC} -d ${.ALLSRC}
13	sed -e 's/yy/ippool_yy/g' \
14	    y.tab.c > ${.TARGET}
15	sed -e 's/yy/ippool_yy/g' \
16	    y.tab.h > ${.TARGET:.c=.h}
17
18ippool_y.h: ippool_y.c
19
20ippool_l.c: lexer.c
21	sed -e 's/yy/ippool_yy/g' \
22	    -e 's/y.tab.h/ippool_y.h/' \
23	    -e 's/lexer.h/ippool_l.h/' \
24	    ${.ALLSRC} > ${.TARGET}
25
26ippool_l.h: lexer.h
27	sed -e 's/yy/ippool_yy/g' \
28	    ${.ALLSRC} > ${.TARGET}
29
30.include <bsd.prog.mk>
31