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