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