Sync usage with man page.
[netbsd-mini2440.git] / usr.sbin / ipf / ipsend / Makefile
blob9ff34c9305f15692ae3e54a56c65869333f1c9d1
1 # $NetBSD: Makefile,v 1.23 2004/03/31 00:34:32 lukem Exp $
3 .include <bsd.own.mk>
5 PROG= ipsend
6 SRCS= ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \
7 sock.c 44arp.c
8 MAN= ipsend.1 ipsend.5
9 DPADD+= ${LIBL}
10 LDADD+= -ll
12 CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/ipsend
13 CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/iplang
14 CPPFLAGS+= -I.
16 CLEANFILES+= iplang_y.c iplang_y.h
18 DPSRCS+= iplang_y.h
20 .PATH: ${NETBSDSRCDIR}/dist/ipf/ipsend \
21 ${NETBSDSRCDIR}/dist/ipf/iplang
23 iplang_y.c: iplang_y.y
24 ${_MKTARGET_CREATE}
25 ${YACC} -d ${.ALLSRC}
26 mv y.tab.c ${.TARGET}
27 mv y.tab.h ${.TARGET:.c=.h}
29 iplang_y.h: iplang_y.c
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
38 .include <bsd.prog.mk>