1 # $NetBSD: Makefile,v 1.18 2015/11/11 07:48:41 ozaki-r Exp $ 2 3 WARNS?= 4 4 5 .include <bsd.own.mk> 6 7 USE_FORT?= yes # network server 8 9 RUMPPRG= rtadvd 10 SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c dump.c 11 MAN= rtadvd.8 rtadvd.conf.5 12 13 CPPFLAGS+= -DINET6 14 LDADD+= -lutil 15 DPADD+= ${LIBUTIL} 16 17 .if ${MKSHARE} != "no" 18 FILESDIR= /usr/share/examples/rtadvd 19 FILES= rtadvd.conf 20 .endif 21 22 .PATH: ${.CURDIR}/../../lib/libc/net 23 RUMPSRCS= getifaddrs.c getnameinfo.c if_indextoname.c if_nametoindex.c 24 .if (${MKRUMP} != "no") 25 CPPFLAGS+= -DRUMP_ACTION 26 .endif 27 28 29 .include <bsd.prog.mk> 30 31 .if defined(HAVE_GCC) || defined(HAVE_LLVM) 32 COPTS.dump.c=-fno-strict-aliasing 33 .endif 34