2004-04-04 02:16:27 +04:00
|
|
|
# $NetBSD: Makefile,v 1.23 2004/04/03 22:16:27 he Exp $
|
2004-03-28 13:01:26 +04:00
|
|
|
|
|
|
|
PROG= ipnat
|
|
|
|
SRCS= ipnat.c ipnat_y.c ipnat_l.c
|
|
|
|
MAN= ipnat.8 ipnat.4 ipnat.5
|
|
|
|
MLINKS= ipnat.5 ipnat.conf.5
|
2004-03-30 03:28:11 +04:00
|
|
|
CPPFLAGS+= -I.
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
DPSRCS+= ipnat_l.h ipnat_y.h
|
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
CLEANFILES+= ipnat_y.c ipnat_y.h
|
|
|
|
CLEANFILES+= ipnat_l.c ipnat_l.h
|
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ipnat_y.c: ipnat_y.y
|
2004-03-29 08:39:59 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2004-03-31 04:34:32 +04:00
|
|
|
${YACC} -d ${.ALLSRC}
|
2004-03-28 13:01:26 +04:00
|
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
|
|
-e 's/y.tab.c/ipnat_y.c/' \
|
|
|
|
-e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \
|
2004-03-31 04:34:32 +04:00
|
|
|
y.tab.c > ${.TARGET}
|
2004-03-28 13:01:26 +04:00
|
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
|
|
-e 's/y.tab.h/ipnat_y.h/' \
|
2004-03-31 04:34:32 +04:00
|
|
|
y.tab.h > ${.TARGET:.c=.h}
|
2004-03-29 08:39:59 +04:00
|
|
|
|
|
|
|
ipnat_y.h: ipnat_y.c
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ipnat_l.c: lexer.c
|
2004-03-29 08:39:59 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2004-03-28 13:01:26 +04:00
|
|
|
sed -e 's/yy/ipnat_yy/g' \
|
|
|
|
-e 's/y.tab.h/ipnat_y.h/' \
|
|
|
|
-e 's/lexer.h/ipnat_l.h/' \
|
2004-03-31 04:34:32 +04:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-29 08:39:59 +04:00
|
|
|
ipnat_l.h: lexer.h
|
|
|
|
${_MKTARGET_CREATE}
|
2004-03-28 13:01:26 +04:00
|
|
|
sed -e 's/yy/ipnat_yy/g' \
|
2004-03-29 08:39:59 +04:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
1997-01-05 16:06:38 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|