1# $NetBSD: Makefile,v 1.27 2023/06/03 09:09:23 lukem Exp $ 2 3WARNS?= 4 4 5.include <bsd.own.mk> 6 7USE_FORT?= yes # network server 8 9RUMPPRG= rtadvd 10SRCS= rtadvd.c advcap.c if.c config.c timer.c dump.c 11MAN= rtadvd.8 rtadvd.conf.5 12 13CPPFLAGS+= -DINET6 14LDADD+= -lutil 15DPADD+= ${LIBUTIL} 16 17LIBWRAP= ${NETBSDSRCDIR}/lib/libwrap 18SRCS+= expandm.c 19.PATH.c: ${LIBWRAP} 20CPPFLAGS+= -I${LIBWRAP} 21 22 23.if ${MKSHARE} != "no" 24FILESDIR= /usr/share/examples/rtadvd 25FILES= rtadvd.conf 26.endif 27 28.if (${MKRUMP} != "no") 29CPPFLAGS+= -DRUMP_ACTION 30LDADD.rump+= -lrumpres 31DPADD.rump+= ${LIBRUMPRES} 32.endif 33 34COPTS.if.c+= ${CC_WNO_STRINGOP_TRUNCATION} 35COPTS.config.c+= ${CC_WNO_STRINGOP_TRUNCATION} 36 37.include <bsd.prog.mk> 38