Since the move of ipfilter from contrib to sbin adjusting the source path
is no longer required.
Fixes: 41edb306f0
MFC after: 1 month
35 lines
723 B
Makefile
35 lines
723 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= ipf
|
|
PROG= ipnat
|
|
SRCS= ${GENHDRS} ipnat.c ipnat_y.c ipnat_l.c
|
|
MAN= ipnat.8 ipnat.4 ipnat.5
|
|
MLINKS= ipnat.5 ipnat.conf.5
|
|
CFLAGS+= -I.
|
|
|
|
GENHDRS= ipnat_l.h ipnat_y.h
|
|
CLEANFILES+= ${GENHDRS} ipnat_y.c ipnat_l.c
|
|
|
|
ipnat_y.c: ipnat_y.y
|
|
${YACC} -d ${.ALLSRC}
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
-e 's/y.tab.c/ipnat_y.c/' \
|
|
y.tab.c > ${.TARGET}
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
-e 's/y.tab.h/ipnat_y.h/' \
|
|
y.tab.h > ${.TARGET:.c=.h}
|
|
|
|
ipnat_y.h: ipnat_y.c
|
|
|
|
ipnat_l.c: lexer.c
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
-e 's/y.tab.h/ipnat_y.h/' \
|
|
-e 's/lexer.h/ipnat_l.h/' \
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
ipnat_l.h: lexer.h
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|