freebsd-dev/usr.sbin/traceroute/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

1999-08-28 01:35:59 +00:00
# $FreeBSD$
1994-05-26 05:23:31 +00:00
TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
.PATH: ${TRACEROUTE_DISTDIR}
1994-05-26 05:23:31 +00:00
PROG= traceroute
MAN= traceroute.8
2002-07-28 02:27:07 +00:00
SRCS= version.c traceroute.c ifaddrlist.c findsaddr-socket.c
BINOWN= root
1994-05-26 05:23:31 +00:00
BINMODE=4555
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 \
-DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
2002-07-28 02:27:07 +00:00
-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1
.ifndef (NOIPSEC)
CFLAGS+= -DIPSEC
.endif
# 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
.ifndef (NOIPSEC)
DPADD= ${LIBIPSEC}
LDADD= -lipsec
.endif
.if ${MACHINE_ARCH} == "alpha"
# gcc builtin memcpy causes unaligned access
CFLAGS+= -fno-builtin
.endif
CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl
version.c: ${TRACEROUTE_DISTDIR}/VERSION
@rm -f ${.TARGET}
head -1 ${TRACEROUTE_DISTDIR}/VERSION | \
sed -e 's/.*/char version[] = "&";/' \
> ${.TARGET}
1994-05-26 05:23:31 +00:00
.include <bsd.prog.mk>