-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
33 lines (24 loc) · 937 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SRCDIR= ${.CURDIR}/../../kame/traceroute
PROG= traceroute
SRCS= traceroute.c ifaddrlist.c savestr.c version.c
BINOWN= root
BINGRP= bin
BINMODE=4555
DEFS = -DHAVE_MALLOC_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_UDPIPHDR_NEXT=1 -DIPSEC -DHAVE_GETIFADDRS -DHAVE_IFADDRS_H -DHAVE_FREEIFADDRS
CFLAGS+=-I${SRCDIR} -O2
CFLAGS+=${DEFS}
# workaround for gnuc.h - should be revisited
CFLAGS+=-I${SRCDIR}/lbl
LDADD+= -L${.OBJDIR}/../../lib/libipsec -L${.OBJDIR}/../../lib/libinet6 \
-L/usr/local/v6/lib -lipsec -linet6
DPADD+= ${.OBJDIR}/../../lib/libipsec/libipsec.a \
/usr/local/v6/lib/libipsec.a
DPADD+= ${.OBJDIR}/../../lib/libinet6/libinet6.a \
/usr/local/v6/lib/libinet6.a
MAN8= traceroute.8
version.c: VERSION
@rm -f $@
sed -e 's/.*/char version[] = "&";/' $> > $@
.PATH: ${SRCDIR}
.include <bsd.prog.mk>
CLEANFILES+= version.c