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