Makefile revision 145524
1#	$FreeBSD: head/sbin/ipf/ipsend/Makefile 145524 2005-04-25 18:55:52Z 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	${_MKTARGET_CREATE}
27	${YACC} -d ${.ALLSRC}
28	mv y.tab.c ${.TARGET}
29	mv y.tab.h ${.TARGET:.c=.h}
30
31iplang_y.h: iplang_y.c
32
33# XXX
34# We have a problem with make and linking ipsend
35# cc   -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend .....
36# isn't correct.
37# Use .NOPATH as an workaround for that problem
38.NOPATH: ipsend
39
40.include <bsd.prog.mk>
41