Makefile revision 291329
1# $FreeBSD: head/sbin/ipf/ipmon/Makefile 291329 2015-11-25 20:38:07Z bdrewery $ 2 3PROG= ipmon 4SRCS= ${GENHDRS} ipmon.c ipmon_y.c ipmon_l.c 5MAN= ipmon.8 6 7CFLAGS+= -DLOGFAC=LOG_LOCAL0 -I. 8 9GENHDRS+= ipmon_l.h ipmon_y.h 10CLEANFILES+= ${GENHDRS} ipmon_y.c ipmon_l.c 11 12ipmon_y.c: ipmon_y.y 13 ${YACC} -d ${.ALLSRC} 14 sed -e 's/yy/ipmon_yy/g' \ 15 -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \ 16 y.tab.c > ${.TARGET} 17 sed -e 's/yy/ipmon_yy/g' \ 18 y.tab.h > ${.TARGET:.c=.h} 19 20ipmon_y.h: ipmon_y.c 21 22ipmon_l.c: lexer.c 23 sed -e 's/yy/ipmon_yy/g' \ 24 -e 's/y.tab.h/ipmon_y.h/' \ 25 -e 's/lexer.h/ipmon_l.h/' \ 26 ${.ALLSRC} > ${.TARGET} 27 28ipmon_l.h: lexer.h 29 sed -e 's/yy/ipmon_yy/g' \ 30 ${.ALLSRC} > ${.TARGET} 31 32.include <bsd.prog.mk> 33