1145524Sdarrenr# $FreeBSD: releng/10.2/sbin/ipf/ipsend/Makefile 145630 2005-04-28 16:26:35Z darrenr $ 2145524Sdarrenr 3145524SdarrenrNOGCCERROR= # defined 4145524Sdarrenr 5145524Sdarrenr.include <bsd.own.mk> 6145524Sdarrenr 7145524SdarrenrPROG= ipsend 8145524SdarrenrSRCS= ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \ 9145524Sdarrenr sock.c 44arp.c 10145524SdarrenrMAN= ipsend.1 ipsend.5 11145524SdarrenrDPADD+= ${LIBL} 12145524SdarrenrLDADD+= -ll 13145524Sdarrenr 14145524SdarrenrCFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/ipsend 15145524SdarrenrCFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/iplang 16145524SdarrenrCFLAGS+= -I. 17145524Sdarrenr 18145524SdarrenrCLEANFILES+= iplang_y.c iplang_y.h 19145524Sdarrenr 20145524SdarrenrDPSRCS+= iplang_y.h 21145524Sdarrenr 22145524Sdarrenr.PATH: ${NETBSDSRCDIR}/dist/ipf/ipsend \ 23145524Sdarrenr ${NETBSDSRCDIR}/dist/ipf/iplang 24145524Sdarrenr 25145524Sdarrenriplang_y.c: iplang_y.y 26145524Sdarrenr ${YACC} -d ${.ALLSRC} 27145524Sdarrenr mv y.tab.c ${.TARGET} 28145524Sdarrenr mv y.tab.h ${.TARGET:.c=.h} 29145524Sdarrenr 30145524Sdarrenriplang_y.h: iplang_y.c 31145524Sdarrenr 32145524Sdarrenr# XXX 33145524Sdarrenr# We have a problem with make and linking ipsend 34145524Sdarrenr# cc -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend ..... 35145524Sdarrenr# isn't correct. 36145524Sdarrenr# Use .NOPATH as an workaround for that problem 37145524Sdarrenr.NOPATH: ipsend 38145524Sdarrenr 39145524Sdarrenr.include <bsd.prog.mk> 40