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