1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 05:23:31 +00:00
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
|
|
|
|
.PATH: ${TRACEROUTE_DISTDIR}
|
|
|
|
|
1994-05-26 05:23:31 +00:00
|
|
|
PROG= traceroute
|
2001-03-26 14:42:20 +00:00
|
|
|
MAN= traceroute.8
|
2002-07-28 02:27:07 +00:00
|
|
|
SRCS= version.c traceroute.c ifaddrlist.c findsaddr-socket.c
|
2001-09-13 06:48:18 +00:00
|
|
|
BINOWN= root
|
1994-05-26 05:23:31 +00:00
|
|
|
BINMODE=4555
|
2001-07-20 06:20:32 +00:00
|
|
|
CLEANFILES= version.c
|
|
|
|
|
2002-07-28 02:27:07 +00:00
|
|
|
CFLAGS+= -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 \
|
|
|
|
-DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 \
|
|
|
|
-DHAVE_STRERROR=1 -DHAVE_USLEEP=1 \
|
|
|
|
-DHAVE_SYS_SYSCTL_H=1 \
|
2001-07-20 06:20:32 +00:00
|
|
|
-DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
|
2002-07-28 02:27:07 +00:00
|
|
|
-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1
|
2000-04-01 21:48:07 +00:00
|
|
|
.ifndef (NOIPSEC)
|
2001-07-20 06:20:32 +00:00
|
|
|
CFLAGS+= -DIPSEC
|
2000-04-01 21:48:07 +00:00
|
|
|
.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
|
2001-07-20 06:20:32 +00:00
|
|
|
# CFLAGS+= -DSANE_PRECISION
|
1996-08-17 10:37:28 +00:00
|
|
|
|
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
|
|
|
|
1999-01-13 10:27:00 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
# gcc builtin memcpy causes unaligned access
|
2001-07-20 06:20:32 +00:00
|
|
|
CFLAGS+= -fno-builtin
|
1999-01-13 10:27:00 +00:00
|
|
|
.endif
|
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl
|
1996-09-30 19:49:54 +00:00
|
|
|
|
|
|
|
version.c: ${TRACEROUTE_DISTDIR}/VERSION
|
1998-06-09 05:36:48 +00:00
|
|
|
@rm -f ${.TARGET}
|
2002-07-23 00:56:52 +00:00
|
|
|
head -1 ${TRACEROUTE_DISTDIR}/VERSION | \
|
|
|
|
sed -e 's/.*/char version[] = "&";/' \
|
2001-07-20 06:20:32 +00:00
|
|
|
> ${.TARGET}
|
1996-09-30 19:49:54 +00:00
|
|
|
|
1994-05-26 05:23:31 +00:00
|
|
|
.include <bsd.prog.mk>
|