NetBSD/usr.sbin/ipf/ipmon/Makefile

36 lines
840 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.18 2004/03/29 04:40:03 lukem Exp $
2004-03-28 13:01:26 +04:00
PROG= ipmon
SRCS= ipmon.c ipmon_y.c ipmon_l.c
MAN= ipmon.8
CPPFLAGS+= -DLOGFAC=LOG_LOCAL0
CLEANFILES+= ipmon_y.c ipmon_y.h
CLEANFILES+= ipmon_l.c ipmon_l.h
ipmon_y.c: ipmon_y.y ipmon_l.h
${_MKTARGET_CREATE}
2004-03-29 06:30:08 +04:00
${YACC} -d ${NETBSDSRCDIR}/dist/ipf/tools/ipmon_y.y
2004-03-28 13:01:26 +04:00
sed -e 's/yy/ipmon_yy/g' \
-e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \
y.tab.c > ${.TARGET}
2004-03-28 13:01:26 +04:00
sed -e 's/yy/ipmon_yy/g' \
y.tab.h > ${.TARGET:.c=.h}
ipmon_y.h: ipmon_y.c
2004-03-28 13:01:26 +04:00
ipmon_l.c: lexer.c ipmon_l.h ipmon_y.h
${_MKTARGET_CREATE}
2004-03-28 13:01:26 +04:00
sed -e 's/yy/ipmon_yy/g' \
-e 's/y.tab.h/ipmon_y.h/' \
-e 's/lexer.h/ipmon_l.h/' \
${NETBSDSRCDIR}/dist/ipf/tools/lexer.c > ${.TARGET}
2004-03-28 13:01:26 +04:00
ipmon_l.h: lexer.h
${_MKTARGET_CREATE}
2004-03-28 13:01:26 +04:00
sed -e 's/yy/ipmon_yy/g' \
${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>