Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / ipf / ipmon / Makefile
blob099a8e44953a419957c7c4803044a9080f3def9e
1 # $NetBSD: Makefile,v 1.21 2005/01/05 10:00:29 martti Exp $
3 PROG= ipmon
4 SRCS= ipmon.c ipmon_y.c ipmon_l.c
5 MAN= ipmon.5 ipmon.8
7 CPPFLAGS+= -DLOGFAC=LOG_LOCAL0 -I.
9 DPSRCS+= ipmon_l.h ipmon_y.h
11 CLEANFILES+= ipmon_y.c ipmon_y.h
12 CLEANFILES+= ipmon_l.c ipmon_l.h
14 ipmon_y.c: ipmon_y.y
15 ${_MKTARGET_CREATE}
16 ${YACC} -d ${.ALLSRC}
17 ${TOOL_SED} -e 's/yy/ipmon_yy/g' \
18 -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \
19 y.tab.c > ${.TARGET}
20 ${TOOL_SED} -e 's/yy/ipmon_yy/g' \
21 y.tab.h > ${.TARGET:.c=.h}
23 ipmon_y.h: ipmon_y.c
25 ipmon_l.c: lexer.c
26 ${_MKTARGET_CREATE}
27 ${TOOL_SED} -e 's/yy/ipmon_yy/g' \
28 -e 's/y.tab.h/ipmon_y.h/' \
29 -e 's/lexer.h/ipmon_l.h/' \
30 ${.ALLSRC} > ${.TARGET}
32 ipmon_l.h: lexer.h
33 ${_MKTARGET_CREATE}
34 ${TOOL_SED} -e 's/yy/ipmon_yy/g' \
35 ${.ALLSRC} > ${.TARGET}
37 .include <bsd.prog.mk>