1# @(#)Makefile 8.1 (Berkeley) 6/5/93 2 3.include <src.opts.mk> 4 5PACKAGE=runtime 6PROG= ping 7SRCS= main.c 8MAN= ping.8 9BINOWN= root 10BINMODE=4555 11LIBADD= m 12 13.if ${MK_INET_SUPPORT}!= "no" 14CFLAGS+= -DINET 15SRCS+= ping.c utils.c 16.endif 17 18.if ${MK_INET6_SUPPORT} != "no" 19CFLAGS+= -DINET6 -DKAME_SCOPEID 20SRCS+= ping6.c 21LIBADD+= md 22LINKS= ${BINDIR}/ping ${BINDIR}/ping6 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