Makefile revision 162199
1145524Sdarrenr# $FreeBSD: head/sbin/ipf/ipftest/Makefile 162199 2006-09-10 08:58:47Z obrien $ 2145524Sdarrenr 3145524SdarrenrPROG= ipftest 4162199SobrienSRCS= ${GENHDRS} ipftest.c fil.c ip_frag.c ip_state.c ip_nat.c \ 5145524Sdarrenr ip_proxy.c ip_auth.c ip_htable.c ip_lookup.c \ 6145524Sdarrenr ip_pool.c ip_scan.c ip_sync.c ip_rules.c \ 7145524Sdarrenr ip_fil.c ip_log.c ippool_y.c ippool_l.c ipf_y.c \ 8145524Sdarrenr ipf_l.c ipnat_y.c ipnat_l.c md5.c radix.c bpf_filter.c 9145524SdarrenrMAN= ipftest.1 10145524Sdarrenr 11145524SdarrenrCFLAGS+= -DIPFILTER_LOG -DIPFILTER_COMPILED -DIPFILTER_LOOKUP \ 12145524Sdarrenr -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM -I. 13145524Sdarrenr 14145555Sdarrenr.PATH: ${.CURDIR}/../../../sys/contrib/ipfilter/netinet 15145524Sdarrenr 16162199SobrienGENHDRS= ipnat_l.h ipnat_y.h ippool_l.h ippool_y.h ipf_l.h ipf_y.h 17162199SobrienDPSRCS+= ${GENHDRS} 18145524Sdarrenr 19162199SobrienCLEANFILES+= ${GENHDRS} 20162199SobrienCLEANFILES+= ipf_y.c ipf_l.c 21145524SdarrenrCLEANFILES+= ipf.tab.c ipf.tab.h 22162199SobrienCLEANFILES+= ipnat_y.c ipnat_l.c 23145524SdarrenrCLEANFILES+= ipnat.tab.c ipnat.tab.h 24162199SobrienCLEANFILES+= ippool_y.c ippool_l.c 25145524SdarrenrCLEANFILES+= ippool.tab.c ippool.tab.h 26145524Sdarrenr 27145524Sdarrenripnat_y.c: ipnat_y.y 28145524Sdarrenr ${YACC} -b ipnat -d ${.ALLSRC} 29145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 30145524Sdarrenr -e 's/y.tab.c/ipnat_y.c/' \ 31145524Sdarrenr -e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \ 32145524Sdarrenr ipnat.tab.c > ${.TARGET} 33145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 34145524Sdarrenr -e 's/y.tab.h/ipnat_y.h/' \ 35145524Sdarrenr ipnat.tab.h > ${.TARGET:.c=.h} 36145524Sdarrenr 37145524Sdarrenripnat_y.h: ipnat_y.c 38145524Sdarrenr 39145524Sdarrenripnat_l.c: lexer.c 40145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 41145524Sdarrenr -e 's/y.tab.h/ipnat_y.h/' \ 42145524Sdarrenr -e 's/lexer.h/ipnat_l.h/' \ 43145524Sdarrenr ${.ALLSRC} > ${.TARGET} 44145524Sdarrenr 45145524Sdarrenripnat_l.h: lexer.h 46145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 47145524Sdarrenr ${.ALLSRC} > ${.TARGET} 48145524Sdarrenr 49145524Sdarrenrippool_y.c: ippool_y.y 50145524Sdarrenr ${YACC} -b ippool -d ${.ALLSRC} 51145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 52145524Sdarrenr -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 53145524Sdarrenr ippool.tab.c > ${.TARGET} 54145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 55145524Sdarrenr ippool.tab.h > ${.TARGET:.c=.h} 56145524Sdarrenr 57145524Sdarrenrippool_y.h: ippool_y.c 58145524Sdarrenr 59145524Sdarrenrippool_l.c: lexer.c 60145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 61145524Sdarrenr -e 's/y.tab.h/ippool_y.h/' \ 62145524Sdarrenr -e 's/lexer.h/ippool_l.h/' \ 63145524Sdarrenr ${.ALLSRC} > ${.TARGET} 64145524Sdarrenr 65145524Sdarrenrippool_l.h: lexer.h 66145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 67145524Sdarrenr ${.ALLSRC} > ${.TARGET} 68145524Sdarrenr 69145524Sdarrenripf_y.c: ipf_y.y 70145524Sdarrenr ${YACC} -b ipf -d ${.ALLSRC} 71145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 72145524Sdarrenr -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \ 73145524Sdarrenr ipf.tab.c > ${.TARGET} 74145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 75145524Sdarrenr ipf.tab.h > ${.TARGET:.c=.h} 76145524Sdarrenr 77145524Sdarrenripf_y.h: ipf_y.c 78145524Sdarrenr 79145524Sdarrenripf_l.c: lexer.c 80145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 81145524Sdarrenr -e 's/y.tab.h/ipf_y.h/' \ 82145524Sdarrenr -e 's/lexer.h/ipf_l.h/' \ 83145524Sdarrenr ${.ALLSRC} > ${.TARGET} 84145524Sdarrenr 85145524Sdarrenripf_l.h: lexer.h 86145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 87145524Sdarrenr ${.ALLSRC} > ${.TARGET} 88145524Sdarrenr 89145524Sdarrenr.include <bsd.prog.mk> 90