1.include <src.opts.mk> 2 3PACKAGE=runtime 4PROG= ping 5SRCS= main.c 6MAN= ping.8 7BINOWN= root 8BINMODE=4555 9LIBADD= m 10 11.if ${MK_INET_SUPPORT}!= "no" 12CFLAGS+= -DINET 13SRCS+= ping.c utils.c 14.endif 15 16.if ${MK_INET6_SUPPORT} != "no" 17CFLAGS+= -DINET6 -DKAME_SCOPEID 18SRCS+= ping6.c 19LIBADD+= md 20LINKS= ${BINDIR}/ping ${BINDIR}/ping6 21MLINKS= ping.8 ping6.8 22.endif 23 24.if ${MK_DYNAMICROOT} == "no" 25.warning ${PROG} built without libcasper support 26.elif ${MK_CASPER} != "no" && !defined(RESCUE) 27LIBADD+= casper 28LIBADD+= cap_dns 29CFLAGS+=-DWITH_CASPER 30.endif 31 32CFLAGS+=-DIPSEC 33LIBADD+= ipsec 34 35CFLAGS+= -Wno-error=unused-but-set-variable 36 37HAS_TESTS= 38SUBDIR.${MK_TESTS}+= tests 39 40.include <bsd.prog.mk> 41