Home | History | Annotate | Line # | Download | only in ipsend
      1  1.7    rillig #	$NetBSD: Makefile,v 1.7 2024/09/08 09:36:46 rillig Exp $
      2  1.1  christos 
      3  1.1  christos .include <bsd.own.mk>
      4  1.2  christos .include "../Makefile.inc"
      5  1.1  christos 
      6  1.1  christos PROG=		ipsend
      7  1.1  christos SRCS=		ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \
      8  1.1  christos 		sock.c 44arp.c
      9  1.1  christos MAN=		ipsend.1 ipsend.5
     10  1.1  christos DPADD+=		${LIBL}
     11  1.1  christos LDADD+=		-ll
     12  1.1  christos 
     13  1.2  christos CPPFLAGS+=	-I${UDIST}/ipsend
     14  1.2  christos CPPFLAGS+=	-I${UDIST}/iplang
     15  1.2  christos CPPFLAGS+=	-I${.CURDIR} -I.
     16  1.1  christos 
     17  1.3       dsl # There is some very dubious code to locate the values of
     18  1.3       dsl # tcb.rcv_adv, tcb.snd_nxt and tcb.rcv_nxt for a socket.
     19  1.3       dsl CPPFLAGS+=	-D_KMEMUSER
     20  1.3       dsl 
     21  1.1  christos CLEANFILES+=	iplang_y.c iplang_y.h
     22  1.1  christos 
     23  1.1  christos DPSRCS+=	iplang_y.h
     24  1.1  christos 
     25  1.2  christos .PATH:		${UDIST}/ipsend \
     26  1.2  christos 		${UDIST}/iplang
     27  1.1  christos 
     28  1.1  christos iplang_y.c: iplang_y.y
     29  1.1  christos 	${_MKTARGET_CREATE}
     30  1.1  christos 	${YACC} -d ${.ALLSRC}
     31  1.1  christos 	mv y.tab.c ${.TARGET}
     32  1.1  christos 	mv y.tab.h ${.TARGET:.c=.h}
     33  1.1  christos 
     34  1.1  christos iplang_y.h: iplang_y.c
     35  1.1  christos 
     36  1.1  christos # XXX
     37  1.1  christos # We have a problem with make and linking ipsend
     38  1.1  christos # cc   -o /home/source/src/usr.sbin/ipf/ipsend/../../../dist/ipf/ipsend .....
     39  1.1  christos # isn't correct.
     40  1.7    rillig # Use .NOPATH as a workaround for that problem
     41  1.1  christos .NOPATH: ipsend
     42  1.1  christos 
     43  1.1  christos .include <bsd.prog.mk>
     44