Home | History | Annotate | Line # | Download | only in ipsend
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2012/03/24 02:08:34 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 .include "../Makefile.inc"
      5 
      6 PROG=		ipsend
      7 SRCS=		ipsend.c ip.c ipsopt.c iplang_y.c iplang_l.l sbpf.c \
      8 		sock.c 44arp.c
      9 MAN=		ipsend.1 ipsend.5
     10 DPADD+=		${LIBL}
     11 LDADD+=		-ll
     12 
     13 CPPFLAGS+=	-I${UDIST}/ipsend
     14 CPPFLAGS+=	-I${UDIST}/iplang
     15 CPPFLAGS+=	-I${.CURDIR} -I.
     16 
     17 CLEANFILES+=	iplang_y.c iplang_y.h
     18 
     19 DPSRCS+=	iplang_y.h
     20 
     21 .PATH:		${UDIST}/ipsend \
     22 		${UDIST}/iplang
     23 
     24 iplang_y.c: iplang_y.y
     25 	${_MKTARGET_CREATE}
     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>
     40