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