1 # $NetBSD: Makefile,v 1.23 2019/10/13 07:28:21 mrg 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 LIBWRAP= ${NETBSDSRCDIR}/lib/libwrap 18 SRCS+= expandm.c 19 .PATH.c: ${LIBWRAP} 20 CPPFLAGS+= -I${LIBWRAP} 21 22 23 .if ${MKSHARE} != "no" 24 FILESDIR= /usr/share/examples/rtadvd 25 FILES= rtadvd.conf 26 .endif 27 28 .if (${MKRUMP} != "no") 29 CPPFLAGS+= -DRUMP_ACTION 30 LDADD.rump+= -lrumpres 31 DPADD.rump+= ${LIBRUMPRES} 32 .endif 33 34 CWARNFLAGS.clang+= -Wno-error=address-of-packed-member 35 36 COPTS.if.c+= ${GCC_NO_STRINGOP_TRUNCATION} 37 COPTS.config.c+= ${GCC_NO_STRINGOP_TRUNCATION} 38 39 .include <bsd.prog.mk> 40