2003-03-28 14:06:32 +03:00
|
|
|
# $NetBSD: Makefile,v 1.31 2003/03/28 11:06:32 jdolecek Exp $
|
2001-06-25 23:41:19 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-09-18 07:54:26 +04:00
|
|
|
SRCDIR= ${NETBSDSRCDIR}/dist/tcpdump
|
2001-06-25 23:41:19 +04:00
|
|
|
.PATH: ${SRCDIR}
|
1995-03-08 02:18:35 +03:00
|
|
|
|
|
|
|
PROG= tcpdump
|
1997-10-03 23:54:07 +04:00
|
|
|
MAN= tcpdump.8
|
1995-03-08 02:18:35 +03:00
|
|
|
|
2001-06-25 23:41:19 +04:00
|
|
|
SRCS= addrtoname.c gmt2local.c machdep.c parsenfsfh.c \
|
|
|
|
print-802_11.c print-ah.c print-arcnet.c print-arp.c \
|
|
|
|
print-ascii.c print-atalk.c print-atm.c print-bgp.c \
|
2002-02-18 12:37:05 +03:00
|
|
|
print-bootp.c print-beep.c print-cdp.c print-chdlc.c \
|
2001-06-25 23:41:19 +04:00
|
|
|
print-cip.c print-cnfp.c print-decnet.c print-domain.c \
|
|
|
|
print-dvmrp.c print-egp.c print-esp.c print-ether.c \
|
2002-02-18 12:37:05 +03:00
|
|
|
print-fddi.c print-gre.c print-hsrp.c print-icmp.c \
|
|
|
|
print-igmp.c print-igrp.c print-ip.c print-ipcomp.c \
|
|
|
|
print-ipx.c print-isakmp.c print-isoclns.c print-krb.c \
|
|
|
|
print-l2tp.c print-lane.c print-lcp.c print-llc.c print-lwres.c \
|
|
|
|
print-msdp.c print-mobile.c print-mpls.c print-nfs.c \
|
2002-05-31 13:45:44 +04:00
|
|
|
print-ntp.c print-null.c print-ospf.c print-pflog.c \
|
|
|
|
print-pim.c print-ppp.c print-pppoe.c print-pptp.c \
|
|
|
|
print-radius.c print-raw.c print-rip.c print-rx.c \
|
2003-03-28 14:06:32 +03:00
|
|
|
print-sctp.c print-sl.c print-sll.c print-smb.c print-snmp.c \
|
2002-02-18 12:37:05 +03:00
|
|
|
print-stp.c print-sunrpc.c print-tcp.c \
|
2001-06-25 23:41:19 +04:00
|
|
|
print-telnet.c print-tftp.c print-timed.c print-token.c \
|
2002-02-18 12:37:05 +03:00
|
|
|
print-udp.c print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \
|
2003-03-28 14:06:32 +03:00
|
|
|
setsignal.c smbutil.c tcpdump.c util.c
|
2001-06-25 23:41:19 +04:00
|
|
|
|
|
|
|
SRCS+= print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c \
|
2002-02-18 12:37:05 +03:00
|
|
|
print-rt6.c print-ospf6.c print-dhcp6.c
|
|
|
|
|
|
|
|
SRCS+= bpf_dump.c
|
|
|
|
|
|
|
|
SRCS+= version.c
|
2001-06-25 23:41:19 +04:00
|
|
|
|
|
|
|
# disabled for now
|
|
|
|
#SRCS+= print-smb.c smbutil.c
|
|
|
|
|
|
|
|
version.c: VERSION
|
|
|
|
sed -e 's/.*/char version[] = "&";/' ${.ALLSRC} > ${.TARGET}
|
1995-03-08 02:18:35 +03:00
|
|
|
|
|
|
|
LDADD+= -lpcap -ll
|
1997-03-25 01:02:40 +03:00
|
|
|
DPADD+= ${LIBPCAP} ${LIBL}
|
1995-03-08 02:18:35 +03:00
|
|
|
|
2001-06-25 23:41:19 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${SRCDIR}
|
1995-03-08 02:18:35 +03:00
|
|
|
|
1997-10-03 23:54:07 +04:00
|
|
|
AWKS= atime.awk packetdat.awk stime.awk send-ack.awk
|
1995-03-08 02:18:35 +03:00
|
|
|
|
2002-02-18 12:37:05 +03:00
|
|
|
CPPFLAGS+= \
|
|
|
|
-DHAVE___ATTRIBUTE__=1 -DHAVE_FCNTL_H=1 -DHAVE_RPC_RPCENT_H=1 \
|
|
|
|
-DHAVE_NETINET_IF_ETHER_H=1 -DTIME_WITH_SYS_TIME=1 -DINET6=1 \
|
|
|
|
-DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DHAVE_SOCKADDR_SA_LEN=1 \
|
|
|
|
-DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 \
|
|
|
|
-DHAVE_ADDRINFO=1 -DHAVE_SOCKADDR_STORAGE=1 -DHAVE_INADDRSZ=1 \
|
|
|
|
-DHAVE_IN6ADDRSZ=1 -DHAVE_RES_USE_INET6=1 -DHAVE_VFPRINTF=1 \
|
|
|
|
-DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 \
|
|
|
|
-DHAVE_STRDUP=1 -DHAVE_ETHER_NTOHOST=1 -DUSE_ETHER_NTOHOST=1 \
|
|
|
|
-DHAVE_SETLINEBUF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 \
|
|
|
|
-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1 \
|
|
|
|
-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_H_ERRNO=1
|
2002-10-19 03:13:57 +04:00
|
|
|
CPPFLAGS+=-DLBL_ALIGN=1
|
2003-03-28 14:06:32 +03:00
|
|
|
CPPFLAGS+=-DTCPDUMP_DO_SMB=1
|
2001-06-25 23:41:19 +04:00
|
|
|
|
|
|
|
.if (${MKCRYPTO} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_LIBCRYPTO=1
|
|
|
|
LDADD+= -lcrypto
|
|
|
|
DPADD+= ${LIBCRYPTO}
|
|
|
|
.endif
|
|
|
|
|
2002-02-18 12:45:11 +03:00
|
|
|
CLEANFILES+= version.c
|
2001-06-25 23:41:19 +04:00
|
|
|
|
1995-03-08 02:18:35 +03:00
|
|
|
.include <bsd.prog.mk>
|