2004-03-29 08:39:59 +04:00
|
|
|
# $NetBSD: Makefile,v 1.20 2004/03/29 04:40:06 lukem Exp $
|
|
|
|
|
|
|
|
NOGCCERROR= # defined
|
2002-09-18 07:54:26 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1997-01-05 16:06:38 +03:00
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
PROG= ipsend
|
|
|
|
SRCS= ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.c sbpf.c \
|
|
|
|
sock.c 44arp.c
|
|
|
|
MAN= ipsend.1 ipsend.5
|
|
|
|
DPADD+= ${LIBL}
|
2004-03-29 08:39:59 +04:00
|
|
|
LDADD+= -ll
|
1999-12-12 14:29:55 +03:00
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/ipsend
|
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/iplang
|
1997-01-05 16:06:38 +03:00
|
|
|
|
2004-03-28 13:01:26 +04:00
|
|
|
CLEANFILES+= iplang_y.c iplang_y.h
|
2004-03-28 13:21:10 +04:00
|
|
|
CLEANFILES+= iplang_l.c
|
2004-03-28 13:01:26 +04:00
|
|
|
|
|
|
|
.PATH: ${NETBSDSRCDIR}/dist/ipf/ipsend \
|
|
|
|
${NETBSDSRCDIR}/dist/ipf/iplang
|
|
|
|
|
2004-03-29 08:39:59 +04:00
|
|
|
iplang_y.c: iplang_y.y
|
|
|
|
${_MKTARGET_CREATE}
|
2004-03-29 06:30:08 +04:00
|
|
|
${YACC} -d ${NETBSDSRCDIR}/dist/ipf/iplang/iplang_y.y
|
2004-03-29 08:39:59 +04:00
|
|
|
mv y.tab.c ${.TARGET}
|
|
|
|
mv y.tab.h ${.TARGET:.c=.h}
|
|
|
|
|
|
|
|
iplang_y.h: iplang_y.c
|
1999-12-12 14:29:55 +03:00
|
|
|
|
2004-03-28 13:35:26 +04:00
|
|
|
iplang_l.l: iplang_y.h
|
|
|
|
|
1999-12-12 14:29:55 +03:00
|
|
|
# XXX
|
|
|
|
# We have a problem with make and linking ipsend
|
|
|
|
# cc -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend .....
|
|
|
|
# isn't correct.
|
|
|
|
# Use .NOPATH as an workaround for that problem
|
|
|
|
.NOPATH: ipsend
|
|
|
|
|
1997-01-05 16:06:38 +03:00
|
|
|
.include <bsd.prog.mk>
|