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
|
2010-01-08 16:59:28 +00:00
|
|
|
SRCS= as.c version.c traceroute.c ifaddrlist.c findsaddr-udp.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
|
2004-12-21 12:44:20 +00:00
|
|
|
.if !defined(TRACEROUTE_NO_IPSEC)
|
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
|
|
|
|
2004-12-21 12:44:20 +00:00
|
|
|
.if !defined(TRACEROUTE_NO_IPSEC)
|
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
|
|
|
|
2010-11-27 09:26:46 +00:00
|
|
|
CFLAGS+= -I${TRACEROUTE_DISTDIR}
|
1996-09-30 19:49:54 +00:00
|
|
|
|
2010-12-04 14:19:27 +00:00
|
|
|
WARNS?= 3
|
2010-01-02 11:07:44 +00:00
|
|
|
|
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>
|