1# $FreeBSD$ 2 3NOGCCERROR= # defined 4 5.include <bsd.own.mk> 6 7PROG= ipsend 8SRCS= ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \ 9 sock.c 44arp.c 10MAN= ipsend.1 ipsend.5 11LIBADD+= l 12 13CFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/ipsend 14CFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/iplang 15CFLAGS+= -I. 16 17CLEANFILES+= iplang_y.c iplang_y.h 18 19DPSRCS+= iplang_y.h 20 21.PATH: ${NETBSDSRCDIR}/dist/ipf/ipsend \ 22 ${NETBSDSRCDIR}/dist/ipf/iplang 23 24iplang_y.c: iplang_y.y 25 ${YACC} -d ${.ALLSRC} 26 mv y.tab.c ${.TARGET} 27 mv y.tab.h ${.TARGET:.c=.h} 28 29iplang_y.h: iplang_y.c 30 31# XXX 32# We have a problem with make and linking ipsend 33# cc -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend ..... 34# isn't correct. 35# Use .NOPATH as an workaround for that problem 36.NOPATH: ipsend 37 38.include <bsd.prog.mk> 39