Remove crunchgen(8).
[dragonfly.git] / usr.sbin / tcpdump / Makefile
CommitLineData
ebd753dd
PA
1# $FreeBSD: src/usr.sbin/tcpdump/tcpdump/Makefile,v 1.25.2.6 2002/07/05 11:30:32 fenner Exp $
2# $DragonFly: src/usr.sbin/tcpdump/tcpdump/Makefile,v 1.13 2007/10/11 02:46:51 pavalos Exp $
984263bc 3
984263bc 4
ebd753dd
PA
5TCPDUMP_DISTDIR?= ${.CURDIR}/../../contrib/tcpdump
6.PATH: ${TCPDUMP_DISTDIR}
7
8PROG= tcpdump
9SRCS= addrtoname.c af.c checksum.c cpack.c \
10 gmpls.c oui.c gmt2local.c ipproto.c \
11 nlpid.c l2vpn.c machdep.c parsenfsfh.c \
12 print-802_11.c print-ap1394.c print-ah.c print-arcnet.c \
13 print-aodv.c print-arp.c print-ascii.c print-atalk.c print-atm.c \
14 print-beep.c print-bfd.c print-bgp.c print-bootp.c print-cdp.c \
15 print-cfm.c print-chdlc.c print-cip.c print-cnfp.c \
16 print-dccp.c print-decnet.c \
17 print-domain.c print-dtp.c print-dvmrp.c print-enc.c print-egp.c \
18 print-eap.c print-eigrp.c \
19 print-esp.c print-ether.c print-fddi.c print-fr.c \
20 print-gre.c print-hsrp.c print-icmp.c print-igmp.c \
21 print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \
22 print-ipx.c print-isakmp.c print-isoclns.c print-juniper.c print-krb.c \
23 print-l2tp.c print-lane.c print-ldp.c print-llc.c print-lldp.c \
24 print-lmp.c print-lspping.c print-lwapp.c \
25 print-lwres.c print-mobile.c print-mpcp.c print-mpls.c print-msdp.c \
26 print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \
27 print-pflog.c print-pgm.c print-pim.c print-ppp.c print-pppoe.c \
28 print-pptp.c print-radius.c print-raw.c print-rip.c print-rrcp.c \
29 print-rsvp.c print-rx.c print-sctp.c print-sflow.c \
30 print-sip.c print-sl.c print-sll.c \
31 print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \
32 print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \
33 print-timed.c print-token.c print-udld.c print-udp.c print-vjc.c \
34 print-vqp.c print-vrrp.c print-vtp.c \
35 print-wb.c print-zephyr.c setsignal.c tcpdump.c util.c
36SRCS+= print-smb.c smbutil.c version.c
37CLEANFILES+= version.c
38
39CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
40CFLAGS+= -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
41
42CFLAGS+= -DHAVE_RES_STATE_EXT -DHAVE_NEW_RES_STATE -DUSE_GETIPNODEBY
43CFLAGS+= -DHAVE_PCAP_VERSION -UHAVE_YYDEBUG -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO
44CFLAGS+= -DHAVE_STRUCT_ETHER_ADDR -DHAVE_NET_PFVAR_H
45
46.if !defined(NOINET6)
47SRCS+= print-ip6.c print-ip6opts.c print-mobility.c \
48 print-ripng.c print-icmp6.c print-frag6.c print-rt6.c \
49 print-ospf6.c print-dhcp6.c
50
51CFLAGS+= -DINET6
52.endif
53.if ${MACHINE_ARCH} != "i386"
54CFLAGS+= -DLBL_ALIGN
55.endif
56
57DPADD= ${LIBL} ${LIBPCAP}
58LDADD= -ll -lpcap
97c14704 59.if exists(../../secure) && !defined(NO_CRYPT) && !defined(NO_OPENSSL)
ebd753dd
PA
60DISTRIBUTION=crypto
61DPADD+= ${LIBCRYPTO}
62LDADD+= -lcrypto
63CFLAGS+= -I${DESTDIR}/usr/include/openssl -DHAVE_LIBCRYPTO -DHAVE_OPENSSL_EVP_H
64.endif
65WARNS?= 3
66
67version.c: ${TCPDUMP_DISTDIR}/VERSION
68 @rm -f $@
69 sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION > $@
70
71.include <bsd.prog.mk>