1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 05:23:31 +00:00
|
|
|
|
|
|
|
PROG= traceroute
|
1994-08-05 16:31:05 +00:00
|
|
|
MAN8= traceroute.8
|
1994-05-26 05:23:31 +00:00
|
|
|
BINMODE=4555
|
1996-09-30 19:49:54 +00:00
|
|
|
CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
|
2000-04-01 21:48:07 +00:00
|
|
|
-DSTDC_HEADERS=1
|
|
|
|
.ifndef (NOIPSEC)
|
|
|
|
CFLAGS+=-DIPSEC
|
|
|
|
.endif
|
1996-08-17 10:37:28 +00:00
|
|
|
# RTT Jitter on the internet these days means printing 3 decimal places on
|
|
|
|
# > 1000ms times is plain useless. Uncomment this to enable variable precision
|
|
|
|
# reporting, ie: print a variable precision from 0.001ms through 1000ms
|
|
|
|
# CFLAGS+=-DSANE_PRECISION
|
|
|
|
|
1996-09-30 19:49:54 +00:00
|
|
|
SRCS= version.c traceroute.c
|
|
|
|
CLEANFILES+= version.c
|
2000-04-01 21:48:07 +00:00
|
|
|
.ifndef (NOIPSEC)
|
2000-03-30 01:33:39 +00:00
|
|
|
DPADD= ${LIBIPSEC}
|
|
|
|
LDADD= -lipsec
|
2000-04-01 21:48:07 +00:00
|
|
|
.endif
|
1996-09-30 19:49:54 +00:00
|
|
|
|
|
|
|
TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
|
1999-01-13 10:27:00 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
# gcc builtin memcpy causes unaligned access
|
|
|
|
CFLAGS+= -fno-builtin
|
|
|
|
.endif
|
|
|
|
|
1996-09-30 19:49:54 +00:00
|
|
|
CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl
|
|
|
|
.PATH: ${TRACEROUTE_DISTDIR}
|
|
|
|
|
|
|
|
version.c: ${TRACEROUTE_DISTDIR}/VERSION
|
1998-06-09 05:36:48 +00:00
|
|
|
@rm -f ${.TARGET}
|
|
|
|
sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET}
|
1996-09-30 19:49:54 +00:00
|
|
|
|
1994-05-26 05:23:31 +00:00
|
|
|
.include <bsd.prog.mk>
|