Remove building with NOCRYPTO option
[minix.git] / usr.bin / netstat / Makefile
blob56c7192c3720a1e104602bea4cde7a1d43888561
1 # $NetBSD: Makefile,v 1.43 2015/06/06 13:48:37 joerg Exp $
2 # from: @(#)Makefile 8.1 (Berkeley) 6/12/93
4 .include <bsd.own.mk>
6 USE_FORT?= yes # setgid
8 RUMPPRG=netstat
9 #SRCS= atalk.c bpf.c fast_ipsec.c if.c inet.c inet6.c
10 SRCS= atalk.c bpf.c if.c inet.c inet6.c \
11 main.c mbuf.c mroute.c mroute6.c pfkey.c pfsync.c route.c \
12 unix.c vtw.c rtutil.c
13 .if !defined(__MINIX)
14 BINGRP= kmem
15 BINMODE=2555
16 .endif # !defined(__MINIX)
17 LDADD= -lutil -lkvm
18 DPADD= ${LIBUTIL} ${LIBKVM}
19 .if !defined(__MINIX)
20 CPPFLAGS+= -DIPSEC -I${.CURDIR}
21 .else # defined(__MINIX)
22 CPPFLAGS+= -I${.CURDIR}
23 .endif # defined(__MINIX)
24 CPPFLAGS+= -I${NETBSDSRCDIR}/sys/dist/pf
25 CPPFLAGS+= -I${NETBSDSRCDIR}/sbin/route
27 .PATH: ${.CURDIR}/../../lib/libc/gen
28 .PATH: ${.CURDIR}/../../lib/libc/net
29 .PATH: ${.CURDIR}/../../sbin/route
30 CPPFLAGS+= -DRUMP_ACTION
31 RUMPSRCS+= sysctlbyname.c sysctlgetmibinfo.c sysctlnametomib.c
32 RUMPSRCS+= if_indextoname.c getifaddrs.c getnameinfo.c
34 .if (${USE_INET6} != "no")
35 CPPFLAGS+= -DINET6
36 .endif
38 .if defined(__MINIX)
39 # FIXME: compilation on ARM fails on a format string warning because of a
40 # mismatch between the PRIxPTR format and the uintptr_t type, which should not
41 # be possible. This is a bug in the ARM port, but I have no idea how to solve
42 # that. For now, simply do not fail the build on this error. --dcvmoole
43 CPPFLAGS+= -Wno-error=format
44 .endif # defined(__MINIX)
46 .include <bsd.prog.mk>