1 # $NetBSD: Makefile,v 1.27 2023/06/03 09:09:23 lukem 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 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 COPTS.if.c+= ${CC_WNO_STRINGOP_TRUNCATION} 35 COPTS.config.c+= ${CC_WNO_STRINGOP_TRUNCATION} 36 37 .include <bsd.prog.mk> 38