]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - sbin/ipf/ippool/Makefile
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / sbin / ipf / ippool / Makefile
1 #       $FreeBSD$
2
3 PROG=           ippool
4 SRCS=           ${GENHDRS} ippool_y.c ippool_l.c kmem.c ippool.c
5 MAN=            ippool.5 ippool.8
6 CFLAGS+=        -I.
7
8 GENHDRS=        ippool_l.h ippool_y.h
9 CLEANFILES+=    ${GENHDRS} ippool_y.c ippool_l.c
10
11 ippool_y.c: ippool_y.y
12         ${YACC} -d ${.ALLSRC}
13         sed -e 's/yy/ippool_yy/g' \
14             -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
15             y.tab.c > ${.TARGET}
16         sed -e 's/yy/ippool_yy/g' \
17             y.tab.h > ${.TARGET:.c=.h}
18
19 ippool_y.h: ippool_y.c
20
21 ippool_l.c: lexer.c
22         sed -e 's/yy/ippool_yy/g' \
23             -e 's/y.tab.h/ippool_y.h/' \
24             -e 's/lexer.h/ippool_l.h/' \
25             ${.ALLSRC} > ${.TARGET}
26
27 ippool_l.h: lexer.h
28         sed -e 's/yy/ippool_yy/g' \
29             ${.ALLSRC} > ${.TARGET}
30
31 .include <bsd.prog.mk>