1 # $NetBSD: Makefile,v 1.43 2015/06/06 13:48:37 joerg Exp $
2 # from: @(#)Makefile 8.1 (Berkeley) 6/12/93
6 USE_FORT?
= yes
# setgid
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 \
16 .
endif # !defined(__MINIX)
18 DPADD
= ${LIBUTIL} ${LIBKVM}
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")
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
>