1 # $FreeBSD: src/usr.sbin/traceroute/Makefile,v 1.11.2.3 2001/06/23 10:07:29 ru Exp $
6 CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SYSCTL_H=1 \
7 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
12 # RTT Jitter on the internet these days means printing 3 decimal places on
13 # > 1000ms times is plain useless. Uncomment this to enable variable precision
14 # reporting, ie: print a variable precision from 0.001ms through 1000ms
15 # CFLAGS+=-DSANE_PRECISION
17 SRCS= version.c traceroute.c
18 CLEANFILES+= version.c
24 TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
26 .if ${MACHINE_ARCH} == "alpha"
27 # gcc builtin memcpy causes unaligned access
31 CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl
32 .PATH: ${TRACEROUTE_DISTDIR}
34 version.c: ${TRACEROUTE_DISTDIR}/VERSION
36 sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET}
38 .include <bsd.prog.mk>