]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sbin/ipf/ippool/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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 DPSRCS+=        ${GENHDRS}
10
11 CLEANFILES+=    ${GENHDRS} ippool_y.c ippool_l.c
12
13 ippool_y.c: ippool_y.y
14         ${YACC} -d ${.ALLSRC}
15         sed -e 's/yy/ippool_yy/g' \
16             -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
17             y.tab.c > ${.TARGET}
18         sed -e 's/yy/ippool_yy/g' \
19             y.tab.h > ${.TARGET:.c=.h}
20
21 ippool_y.h: ippool_y.c
22
23 ippool_l.c: lexer.c
24         sed -e 's/yy/ippool_yy/g' \
25             -e 's/y.tab.h/ippool_y.h/' \
26             -e 's/lexer.h/ippool_l.h/' \
27             ${.ALLSRC} > ${.TARGET}
28
29 ippool_l.h: lexer.h
30         sed -e 's/yy/ippool_yy/g' \
31             ${.ALLSRC} > ${.TARGET}
32
33 .include <bsd.prog.mk>