#	$Id: Makefile,v 1.8 1998/06/09 05:36:48 imp Exp $

PROG=	traceroute
MAN8=	traceroute.8
BINMODE=4555
CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
	-DSTDC_HEADERS=1 
# 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

SRCS=	version.c traceroute.c
CLEANFILES+=	version.c

TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
CFLAGS+=	-I${TRACEROUTE_DISTDIR}/lbl
.PATH:	${TRACEROUTE_DISTDIR}

version.c: ${TRACEROUTE_DISTDIR}/VERSION
	@rm -f ${.TARGET}
	sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET}

.include <bsd.prog.mk>

#	$Id: Makefile,v 1.9 1998/09/19 22:42:13 obrien Exp $

PROG=	traceroute
MAN8=	traceroute.8
BINMODE=4555
CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
	-DSTDC_HEADERS=1 
# 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

SRCS=	version.c traceroute.c
CLEANFILES+=	version.c

TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute

.if ${MACHINE_ARCH} == "alpha"
# gcc builtin memcpy causes unaligned access
CFLAGS+=	-fno-builtin
.endif

CFLAGS+=	-I${TRACEROUTE_DISTDIR}/lbl
.PATH:	${TRACEROUTE_DISTDIR}

version.c: ${TRACEROUTE_DISTDIR}/VERSION
	@rm -f ${.TARGET}
	sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET}

.include <bsd.prog.mk>

Add '-fno-builtin' to CFLAGS for alpha. Builtin memcpy is not align-aware.
Add '-fno-builtin' to CFLAGS for alpha.
Builtin memcpy is not align-aware.

Approved by: jkh
