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