sbin/hammer: Drop rerundant ()
[dragonfly.git] / usr.sbin / tcpdump / Makefile
blob43c789c8f958b39b34048f709495d89a599d8eac
1 TCPDUMP_DISTDIR?= ${.CURDIR}/../../contrib/tcpdump
2 .PATH: ${TCPDUMP_DISTDIR}
4 PROG= tcpdump
5 SRCS= addrtoname.c af.c checksum.c cpack.c \
6 gmpls.c oui.c gmt2local.c ipproto.c \
7 nlpid.c l2vpn.c machdep.c parsenfsfh.c in_cksum.c \
8 print-802_11.c print-802_15_4.c print-ap1394.c print-ah.c \
9 print-arcnet.c print-aodv.c print-arp.c print-ascii.c print-atalk.c \
10 print-atm.c print-beep.c print-bfd.c print-bgp.c \
11 print-bootp.c print-bt.c print-carp.c print-cdp.c print-cfm.c \
12 print-chdlc.c print-cip.c print-cnfp.c print-dccp.c print-decnet.c \
13 print-domain.c print-dtp.c print-dvmrp.c print-enc.c print-egp.c \
14 print-eap.c print-eigrp.c \
15 print-esp.c print-ether.c print-fddi.c print-forces.c print-fr.c \
16 print-gre.c print-hsrp.c print-icmp.c print-igmp.c \
17 print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c print-ipnet.c \
18 print-ipx.c print-isoclns.c print-juniper.c print-krb.c \
19 print-l2tp.c print-lane.c print-ldp.c print-lldp.c print-llc.c \
20 print-lmp.c print-lspping.c print-lwapp.c \
21 print-lwres.c print-mobile.c print-mpcp.c print-mpls.c print-msdp.c \
22 print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \
23 print-pgm.c print-pim.c \
24 print-ppi.c print-ppp.c print-pppoe.c print-pptp.c \
25 print-radius.c print-raw.c print-rip.c print-rpki-rtr.c print-rrcp.c \
26 print-rsvp.c \
27 print-rx.c print-sctp.c print-sflow.c \
28 print-sip.c print-sl.c print-sll.c \
29 print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \
30 print-symantec.c print-syslog.c print-tcp.c \
31 print-telnet.c print-tftp.c \
32 print-timed.c print-tipc.c print-token.c print-udld.c print-udp.c \
33 print-usb.c print-vjc.c print-vqp.c print-vrrp.c print-vtp.c \
34 print-wb.c print-zephyr.c signature.c setsignal.c tcpdump.c util.c
35 SRCS+= print-isakmp.c
36 SRCS+= print-smb.c smbutil.c print-pflog.c
37 SRCS+= version.c
39 CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
40 CFLAGS+= -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
42 CFLAGS+= -DHAVE_NET_PFVAR_H
44 .if !defined(NOINET6)
45 SRCS+= print-ip6.c print-ip6opts.c print-mobility.c \
46 print-ripng.c print-icmp6.c print-frag6.c print-rt6.c \
47 print-ospf6.c print-dhcp6.c print-babel.c
49 CFLAGS+= -DINET6 -DHAVE_GETNAMEINFO
50 .endif
52 DPADD= ${LIBL} ${LIBPCAP}
53 LDADD= -ll -lpcap
54 .if !defined(NO_CRYPT)
55 DPADD+= ${LIBRECRYPTO}
56 LDADD+= -lprivate_crypto
57 CFLAGS+= -DHAVE_LIBCRYPTO -DHAVE_OPENSSL_EVP_H
58 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
59 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
60 .endif
61 WARNS?= 2
62 NO_STRICT_ALIASING=
64 version.c: VERSION
65 sed -e 's/.*/const char version[] = "&";/' ${.ALLSRC} > ${.TARGET}
67 tcpdump.1: tcpdump.1.in
68 sed -e s/@MAN_FILE_FORMATS@/5/g \
69 -e s/@MAN_MISC_INFO@/7/g ${.ALLSRC} > ${.TARGET}
71 CLEANFILES+= version.c tcpdump.1
72 .include <bsd.prog.mk>