Home | History | Annotate | Line # | Download | only in npftest
Makefile revision 1.9
      1 # $NetBSD: Makefile,v 1.9 2016/05/29 02:28:07 christos Exp $
      2 #
      3 # Public Domain
      4 #
      5 
      6 PROG=		npftest
      7 NOMAN=		# no man page
      8 PAXCTL_FLAGS.npftest += +m
      9 
     10 WARNS=		5
     11 NOLINT=		# disabled (note: deliberately)
     12 
     13 SRCS=		npftest.c npfstream.c
     14 CPPFLAGS+=	-I${.CURDIR}
     15 
     16 LIBNPFTEST!=	cd ${.CURDIR}/libnpftest && ${MAKE} -V .OBJDIR
     17 DPADD+=		${LIBNPFTEST}/libnpftest.a
     18 LDADD+=		-L${LIBNPFTEST} -lnpftest
     19 
     20 LDADD+=		-lrump -lrumpvfs -lrumpuser -lrumpnet -lrumpnet_net
     21 LDADD+=		-lrumpdev_bpf
     22 
     23 .include <bsd.own.mk>
     24 
     25 .if ${MKSLJIT} != "no"
     26 LDADD+=		-lrumpkern_sljit -lrumpnet_bpfjit
     27 .endif
     28 
     29 LDADD+=		-lrumpnet_npf
     30 
     31 LDADD+=		-lpcap -lprop -lpthread
     32 
     33 SUBDIR+=	libnpftest
     34 
     35 ${LIBNPFTEST}/libnpftest.a: all-libnpftest
     36 
     37 .include <bsd.subdir.mk>
     38 .include <bsd.prog.mk>
     39