Makefile revision 145524
1145524Sdarrenr# $FreeBSD: head/sbin/ipf/ipftest/Makefile 145524 2005-04-25 18:55:52Z darrenr $ 2145524Sdarrenr 3145524SdarrenrNOGCCERROR= # defined 4145524Sdarrenr 5145524Sdarrenr.include <bsd.own.mk> 6145524Sdarrenr 7145524SdarrenrPROG= ipftest 8145524SdarrenrSRCS= ipftest.c fil.c ip_frag.c ip_state.c ip_nat.c \ 9145524Sdarrenr ip_proxy.c ip_auth.c ip_htable.c ip_lookup.c \ 10145524Sdarrenr ip_pool.c ip_scan.c ip_sync.c ip_rules.c \ 11145524Sdarrenr ip_fil.c ip_log.c ippool_y.c ippool_l.c ipf_y.c \ 12145524Sdarrenr ipf_l.c ipnat_y.c ipnat_l.c md5.c radix.c bpf_filter.c 13145524SdarrenrMAN= ipftest.1 14145524Sdarrenr 15145524SdarrenrCFLAGS+= -DIPFILTER_LOG -DIPFILTER_COMPILED -DIPFILTER_LOOKUP \ 16145524Sdarrenr -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM -I. 17145524Sdarrenr 18145524Sdarrenr.PATH: ${NETBSDSRCDIR}/sys/netinet 19145524Sdarrenr 20145524SdarrenrDPSRCS+= ipnat_l.h ipnat_y.h ippool_l.h ippool_y.h ipf_l.h ipf_y.h 21145524Sdarrenr 22145524SdarrenrCLEANFILES+= ipf_y.c ipf_y.h 23145524SdarrenrCLEANFILES+= ipf_l.c ipf_l.h 24145524SdarrenrCLEANFILES+= ipf.tab.c ipf.tab.h 25145524SdarrenrCLEANFILES+= ipnat_y.c ipnat_y.h 26145524SdarrenrCLEANFILES+= ipnat_l.c ipnat_l.h 27145524SdarrenrCLEANFILES+= ipnat.tab.c ipnat.tab.h 28145524SdarrenrCLEANFILES+= ippool_y.c ippool_y.h 29145524SdarrenrCLEANFILES+= ippool_l.c ippool_l.h 30145524SdarrenrCLEANFILES+= ippool.tab.c ippool.tab.h 31145524Sdarrenr 32145524Sdarrenripnat_y.c: ipnat_y.y 33145524Sdarrenr ${_MKTARGET_CREATE} 34145524Sdarrenr ${YACC} -b ipnat -d ${.ALLSRC} 35145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 36145524Sdarrenr -e 's/y.tab.c/ipnat_y.c/' \ 37145524Sdarrenr -e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \ 38145524Sdarrenr ipnat.tab.c > ${.TARGET} 39145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 40145524Sdarrenr -e 's/y.tab.h/ipnat_y.h/' \ 41145524Sdarrenr ipnat.tab.h > ${.TARGET:.c=.h} 42145524Sdarrenr 43145524Sdarrenripnat_y.h: ipnat_y.c 44145524Sdarrenr 45145524Sdarrenripnat_l.c: lexer.c 46145524Sdarrenr ${_MKTARGET_CREATE} 47145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 48145524Sdarrenr -e 's/y.tab.h/ipnat_y.h/' \ 49145524Sdarrenr -e 's/lexer.h/ipnat_l.h/' \ 50145524Sdarrenr ${.ALLSRC} > ${.TARGET} 51145524Sdarrenr 52145524Sdarrenripnat_l.h: lexer.h 53145524Sdarrenr ${_MKTARGET_CREATE} 54145524Sdarrenr sed -e 's/yy/ipnat_yy/g' \ 55145524Sdarrenr ${.ALLSRC} > ${.TARGET} 56145524Sdarrenr 57145524Sdarrenrippool_y.c: ippool_y.y 58145524Sdarrenr ${_MKTARGET_CREATE} 59145524Sdarrenr ${YACC} -b ippool -d ${.ALLSRC} 60145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 61145524Sdarrenr -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 62145524Sdarrenr ippool.tab.c > ${.TARGET} 63145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 64145524Sdarrenr ippool.tab.h > ${.TARGET:.c=.h} 65145524Sdarrenr 66145524Sdarrenrippool_y.h: ippool_y.c 67145524Sdarrenr 68145524Sdarrenrippool_l.c: lexer.c 69145524Sdarrenr ${_MKTARGET_CREATE} 70145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 71145524Sdarrenr -e 's/y.tab.h/ippool_y.h/' \ 72145524Sdarrenr -e 's/lexer.h/ippool_l.h/' \ 73145524Sdarrenr ${.ALLSRC} > ${.TARGET} 74145524Sdarrenr 75145524Sdarrenrippool_l.h: lexer.h 76145524Sdarrenr ${_MKTARGET_CREATE} 77145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 78145524Sdarrenr ${.ALLSRC} > ${.TARGET} 79145524Sdarrenr 80145524Sdarrenripf_y.c: ipf_y.y 81145524Sdarrenr ${_MKTARGET_CREATE} 82145524Sdarrenr ${YACC} -b ipf -d ${.ALLSRC} 83145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 84145524Sdarrenr -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \ 85145524Sdarrenr ipf.tab.c > ${.TARGET} 86145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 87145524Sdarrenr ipf.tab.h > ${.TARGET:.c=.h} 88145524Sdarrenr 89145524Sdarrenripf_y.h: ipf_y.c 90145524Sdarrenr 91145524Sdarrenripf_l.c: lexer.c 92145524Sdarrenr ${_MKTARGET_CREATE} 93145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 94145524Sdarrenr -e 's/y.tab.h/ipf_y.h/' \ 95145524Sdarrenr -e 's/lexer.h/ipf_l.h/' \ 96145524Sdarrenr ${.ALLSRC} > ${.TARGET} 97145524Sdarrenr 98145524Sdarrenripf_l.h: lexer.h 99145524Sdarrenr ${_MKTARGET_CREATE} 100145524Sdarrenr sed -e 's/yy/ipf_yy/g' \ 101145524Sdarrenr ${.ALLSRC} > ${.TARGET} 102145524Sdarrenr 103145524Sdarrenr.include <bsd.prog.mk> 104