2005-01-05 13:00:29 +03:00
|
|
|
# $NetBSD: Makefile,v 1.21 2005/01/05 10:00:29 martti Exp $
|
1997-01-05 16:06:38 +03:00
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
PROG= ipmon
|
|
|
|
SRCS= ipmon.c ipmon_y.c ipmon_l.c
|
2005-01-05 13:00:29 +03:00
|
|
|
MAN= ipmon.5 ipmon.8
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-30 03:28:11 +04:00
|
|
|
CPPFLAGS+= -DLOGFAC=LOG_LOCAL0 -I.
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
DPSRCS+= ipmon_l.h ipmon_y.h
|
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
CLEANFILES+= ipmon_y.c ipmon_y.h
|
|
|
|
CLEANFILES+= ipmon_l.c ipmon_l.h
|
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ipmon_y.c: ipmon_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/ipmon_yy/g' \
|
|
|
|
-e 's/"ipmon_y.y"/"..\/tools\/ipmon_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/ipmon_yy/g' \
|
2004-03-31 04:34:32 +04:00
|
|
|
y.tab.h > ${.TARGET:.c=.h}
|
2004-03-29 08:39:59 +04:00
|
|
|
|
|
|
|
ipmon_y.h: ipmon_y.c
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ipmon_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/ipmon_yy/g' \
|
2004-03-31 04:34:32 +04:00
|
|
|
-e 's/y.tab.h/ipmon_y.h/' \
|
|
|
|
-e 's/lexer.h/ipmon_l.h/' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
2004-03-28 13:01:26 +04:00
|
|
|
|
2004-03-29 08:39:59 +04:00
|
|
|
ipmon_l.h: lexer.h
|
|
|
|
${_MKTARGET_CREATE}
|
2004-03-28 13:01:26 +04:00
|
|
|
sed -e 's/yy/ipmon_yy/g' \
|
2004-03-29 08:39:59 +04:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
1997-01-05 16:06:38 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|