xref: /freebsd/usr.sbin/traceroute6/Makefile (revision 4e579ad047720775ab580b74192c7de8a3386fea)
1# Copyright (c) 1996 WIDE Project. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without
4# modifications, are permitted provided that the above copyright notice
5# and this paragraph are duplicated in all such forms and that any
6# documentation, advertising materials, and other materials related to
7# such distribution and use acknowledge that the software was developed
8# by the WIDE Project, Japan. The name of the Project may not be used to
9# endorse or promote products derived from this software without
10# specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS''
11# AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12# LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
13# A PARTICULAR PURPOSE.
14
15.include <src.opts.mk>
16
17TRACEROUTE_DISTDIR?= ${SRCTOP}/contrib/traceroute
18.PATH: ${TRACEROUTE_DISTDIR}
19
20PACKAGE=	runtime
21PROG=	traceroute6
22MAN=	traceroute6.8
23SRCS=	as.c traceroute6.c
24BINOWN=	root
25BINMODE= 4555
26
27CFLAGS+= -DIPSEC -DHAVE_POLL
28CFLAGS+= -I${.CURDIR} -I${TRACEROUTE_DISTDIR} -I.
29
30.if ${MK_CASPER} != "no"
31LIBADD+=	casper
32LIBADD+=	cap_dns
33CFLAGS+=	-DWITH_CASPER
34.endif
35
36LIBADD+=	ipsec
37
38.include <bsd.prog.mk>
39
40CWARNFLAGS+= -Wno-cast-align
41