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