1 # $NetBSD: Makefile,v 1.49 2009/04/22 15:23:09 lukem Exp $
3 WARNS?
= 1 # XXX: out of date third-party program
7 USE_FORT?
= yes
# network client
9 SRCDIR
= ${NETBSDSRCDIR}/dist/tcpdump
15 SRCS
= addrtoname.c cpack.c gmpls.c gmt2local.c machdep.c oui.c parsenfsfh.c \
17 print-802_11.c print-ah.c print-aodv.c print-ap1394.c print-arcnet.c \
19 print-ascii.c print-atalk.c print-atm.c print-bfd.c print-bgp.c \
20 print-bootp.c print-beep.c print-cdp.c print-chdlc.c \
21 print-cip.c print-cnfp.c print-decnet.c print-domain.c \
22 print-dvmrp.c print-egp.c print-enc.c print-esp.c print-ether.c \
23 print-fddi.c print-fr.c print-gre.c print-hsrp.c print-icmp.c \
24 print-igmp.c print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \
25 print-ipx.c print-isakmp.c print-isoclns.c print-krb.c \
26 print-l2tp.c print-lane.c print-ldp.c print-llc.c print-lwres.c \
27 print-msdp.c print-mobile.c print-mobility.c print-mpls.c print-nfs.c \
28 print-ntp.c print-null.c print-ospf.c print-pflog.c print-pfsync.c \
29 print-pim.c print-ppp.c print-pppoe.c print-pptp.c \
30 print-radius.c print-raw.c print-rip.c print-rsvp.c print-rx.c \
31 print-sctp.c print-sl.c print-sll.c print-smb.c print-snmp.c \
32 print-stp.c print-sunatm.c print-sunrpc.c print-tcp.c \
33 print-telnet.c print-tftp.c print-timed.c print-token.c \
34 print-udp.c print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \
35 setsignal.c smbutil.c tcpdump.c util.c
36 SRCS
+= print-eigrp.c l2vpn.c print-slow.c print-eap.c nlpid.c print-dccp.c \
37 print-pgm.c ipproto.c print-syslog.c print-sip.c print-lmp.c \
38 print-lspping.c print-symantec.c print-juniper.c af.c print-olsr.c
45 #SRCS+= print-smb.c smbutil.c
49 ${TOOL_SED} -e
's/.*/char version[] = "&";/' ${.ALLSRC
} > ${.TARGET
}
52 DPADD
+= ${LIBPCAP} ${LIBL}
54 CPPFLAGS
+= -I
${.CURDIR
} -I
${SRCDIR} -I
${NETBSDSRCDIR}/sys
/dist/pf
55 CPPFLAGS
+= -I
${NETBSDSRCDIR}/dist/pf
/sbin
/pfctl
57 AWKS
= atime.awk packetdat.awk stime.awk send-ack.awk
60 -DHAVE___ATTRIBUTE__
=1 -DHAVE_FCNTL_H
=1 -DHAVE_RPC_RPCENT_H
=1 \
61 -DHAVE_NETINET_IF_ETHER_H
=1 -DTIME_WITH_SYS_TIME
=1 \
62 -DHAVE_GETADDRINFO
=1 -DHAVE_GETNAMEINFO
=1 -DHAVE_SOCKADDR_SA_LEN
=1 \
63 -DSIZEOF_CHAR
=1 -DSIZEOF_SHORT
=2 -DSIZEOF_INT
=4 -DSIZEOF_LONG
=4 \
64 -DHAVE_ADDRINFO
=1 -DHAVE_SOCKADDR_STORAGE
=1 -DHAVE_INADDRSZ
=1 \
65 -DHAVE_IN6ADDRSZ
=1 -DHAVE_VFPRINTF
=1 \
66 -DHAVE_STRCASECMP
=1 -DHAVE_STRLCAT
=1 -DHAVE_STRLCPY
=1 \
67 -DHAVE_STRDUP
=1 -DHAVE_ETHER_NTOHOST
=1 -DUSE_ETHER_NTOHOST
=1 \
68 -DHAVE_SETLINEBUF
=1 -DHAVE_VSNPRINTF
=1 -DHAVE_SNPRINTF
=1 \
69 -DRETSIGTYPE
=void
-DRETSIGVAL
= -DHAVE_SIGACTION
=1 \
70 -DHAVE_SOCKADDR_SA_LEN
=1 -DHAVE_H_ERRNO
=1 -DHAVE_OPENSSL_EVP_H
=1 \
71 -DHAVE_PCAP_LIB_VERSION
=1 -DHAVE_PCAP_SET_DATALINK
=1 \
72 -DHAVE_PCAP_LIST_DATALINKS
=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL
=1 \
73 -DHAVE_PCAP_FINDALLDEVS
=1 -DHAVE_PCAP_IF_T
=1 -DHAVE_PCAP_DUMP_FLUSH
=1 \
75 CPPFLAGS
+= -DHAVE_STRUCT_ETHER_ADDR
76 CPPFLAGS
+=-DLBL_ALIGN
=1
77 CPPFLAGS
+=-DTCPDUMP_DO_SMB
=1
78 CPPFLAGS
+=-D_U_
="__attribute__((unused))"
80 .if
(${USE_INET6} != "no")
81 SRCS
+= print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c \
82 print-rt6.c print-ospf6.c print-dhcp6.c
84 CPPFLAGS
+=-DINET6
=1 -DHAVE_RES_USE_INET6
=1
87 .if
(${MKCRYPTO} != "no")
88 CPPFLAGS
+=-DHAVE_LIBCRYPTO
=1
89 LDADD
+= -lcrypto
-lcrypt
90 DPADD
+= ${LIBCRYPTO} ${LIBCRYPT}
93 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
94 COPTS
+= -fno-strict-aliasing
95 .for f in print-802_11 print-esp print-fr print-radius print-telnet tcpdump util
96 COPTS.
${f}.c
+= -Wno-pointer-sign
100 CLEANFILES
+= version.c
102 .
include <bsd.prog.mk
>