1#	$FreeBSD: releng/10.3/sbin/ipf/ipsend/Makefile 145630 2005-04-28 16:26:35Z darrenr $
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
11DPADD+=		${LIBL}
12LDADD+=		-ll
13
14CFLAGS+=	-I${NETBSDSRCDIR}/dist/ipf/ipsend
15CFLAGS+=	-I${NETBSDSRCDIR}/dist/ipf/iplang
16CFLAGS+=	-I.
17
18CLEANFILES+=	iplang_y.c iplang_y.h
19
20DPSRCS+=	iplang_y.h
21
22.PATH:		${NETBSDSRCDIR}/dist/ipf/ipsend \
23		${NETBSDSRCDIR}/dist/ipf/iplang
24
25iplang_y.c: iplang_y.y
26	${YACC} -d ${.ALLSRC}
27	mv y.tab.c ${.TARGET}
28	mv y.tab.h ${.TARGET:.c=.h}
29
30iplang_y.h: iplang_y.c
31
32# XXX
33# We have a problem with make and linking ipsend
34# cc   -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend .....
35# isn't correct.
36# Use .NOPATH as an workaround for that problem
37.NOPATH: ipsend
38
39.include <bsd.prog.mk>
40