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