]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sbin/ipf/ipsend/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sbin / ipf / ipsend / Makefile
1 #       $FreeBSD$
2
3 NOGCCERROR=     # defined
4
5 .include <bsd.own.mk>
6
7 PROG=           ipsend
8 SRCS=           ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \
9                 sock.c 44arp.c
10 MAN=            ipsend.1 ipsend.5
11 DPADD+=         ${LIBL}
12 LDADD+=         -ll
13
14 CFLAGS+=        -I${NETBSDSRCDIR}/dist/ipf/ipsend
15 CFLAGS+=        -I${NETBSDSRCDIR}/dist/ipf/iplang
16 CFLAGS+=        -I.
17
18 CLEANFILES+=    iplang_y.c iplang_y.h
19
20 DPSRCS+=        iplang_y.h
21
22 .PATH:          ${NETBSDSRCDIR}/dist/ipf/ipsend \
23                 ${NETBSDSRCDIR}/dist/ipf/iplang
24
25 iplang_y.c: iplang_y.y
26         ${YACC} -d ${.ALLSRC}
27         mv y.tab.c ${.TARGET}
28         mv y.tab.h ${.TARGET:.c=.h}
29
30 iplang_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>