1# $FreeBSD$ 2 3PROG= traceroute 4MAN8= traceroute.8 5BINMODE=4555 6CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \ 7 -DSTDC_HEADERS=1 8.ifndef (NOIPSEC) 9CFLAGS+=-DIPSEC 10.endif 11# RTT Jitter on the internet these days means printing 3 decimal places on 12# > 1000ms times is plain useless. Uncomment this to enable variable precision 13# reporting, ie: print a variable precision from 0.001ms through 1000ms 14# CFLAGS+=-DSANE_PRECISION 15 16SRCS= version.c traceroute.c 17CLEANFILES+= version.c 18.ifndef (NOIPSEC) 19DPADD= ${LIBIPSEC} 20LDADD= -lipsec 21.endif 22 23TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute 24 25.if ${MACHINE_ARCH} == "alpha" 26# gcc builtin memcpy causes unaligned access 27CFLAGS+= -fno-builtin 28.endif 29 30CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl 31.PATH: ${TRACEROUTE_DISTDIR} 32 33version.c: ${TRACEROUTE_DISTDIR}/VERSION 34 @rm -f ${.TARGET} 35 sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET} 36 37.include <bsd.prog.mk> 38