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 23MLINKS= ping.8 ping6.8 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 37CFLAGS+= -Wno-error=unused-but-set-variable 38 39HAS_TESTS= 40SUBDIR.${MK_TESTS}+= tests 41 42.include <bsd.prog.mk> 43