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
|
2001-07-20 06:20:32 +00:00
|
|
|
SRCS= version.c traceroute.c
|
1994-05-26 05:23:31 +00:00
|
|
|
BINMODE=4555
|
2001-07-20 06:20:32 +00:00
|
|
|
CLEANFILES= version.c
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SYSCTL_H=1 \
|
|
|
|
-DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
|
|
|
|
-DSTDC_HEADERS=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}
|
2001-07-20 06:20:32 +00:00
|
|
|
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>
|