Add a temporary hack to avoid the local files to be picked up.
[dragonfly.git] / usr.sbin / traceroute / Makefile
1 # $FreeBSD: src/usr.sbin/traceroute/Makefile,v 1.11.2.3 2001/06/23 10:07:29 ru Exp $
2 # $DragonFly: src/usr.sbin/traceroute/Makefile,v 1.3 2004/08/27 18:07:49 asmodai Exp $
3
4 PROG=   traceroute
5 MAN=    traceroute.8
6 BINMODE=4555
7 CFLAGS+=-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SYSCTL_H=1 \
8         -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 \
9         -DSTDC_HEADERS=1
10 .ifndef (NOIPSEC)
11 CFLAGS+=-DIPSEC
12 .endif
13 # RTT Jitter on the internet these days means printing 3 decimal places on
14 # > 1000ms times is plain useless.  Uncomment this to enable variable precision
15 # reporting, ie: print a variable precision from 0.001ms through 1000ms
16 # CFLAGS+=-DSANE_PRECISION
17
18 .PATH:  ${TRACEROUTE_DISTDIR}
19
20 SRCS=   version.c traceroute.c
21 CLEANFILES+=    version.c
22 .ifndef (NOIPSEC)
23 DPADD=  ${LIBIPSEC}
24 LDADD=  -lipsec
25 .endif
26
27 TRACEROUTE_DISTDIR?= ${.CURDIR}/../../contrib/traceroute
28
29 .if ${MACHINE_ARCH} == "alpha"
30 # gcc builtin memcpy causes unaligned access
31 CFLAGS+=        -fno-builtin
32 .endif
33
34 CFLAGS+=        -I${TRACEROUTE_DISTDIR}/lbl
35 .PATH:  ${TRACEROUTE_DISTDIR}
36
37 version.c: ${TRACEROUTE_DISTDIR}/VERSION
38         @rm -f ${.TARGET}
39         sed -e 's/.*/char version[] = "&";/' ${TRACEROUTE_DISTDIR}/VERSION > ${.TARGET}
40
41 .include <bsd.prog.mk>