Makefile revision 267233
1# $FreeBSD: head/sbin/ipf/ipmon/Makefile 267233 2014-06-08 17:29:31Z 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 10DPSRCS+= ${GENHDRS} 11 12CLEANFILES+= ${GENHDRS} ipmon_y.c ipmon_l.c 13 14NO_PIE= yes 15 16ipmon_y.c: ipmon_y.y 17 ${YACC} -d ${.ALLSRC} 18 sed -e 's/yy/ipmon_yy/g' \ 19 -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \ 20 y.tab.c > ${.TARGET} 21 sed -e 's/yy/ipmon_yy/g' \ 22 y.tab.h > ${.TARGET:.c=.h} 23 24ipmon_y.h: ipmon_y.c 25 26ipmon_l.c: lexer.c 27 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} 31 32ipmon_l.h: lexer.h 33 sed -e 's/yy/ipmon_yy/g' \ 34 ${.ALLSRC} > ${.TARGET} 35 36.include <bsd.prog.mk> 37