netif - alc driver port - Finishing touches
[dragonfly.git] / usr.sbin / tcpdump / Makefile
blob44f2ad77ad5167dc184a2c92b802b567d5d513c5
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 $
5 TCPDUMP_DISTDIR?= ${.CURDIR}/../../contrib/tcpdump
6 .PATH: ${TCPDUMP_DISTDIR}
8 PROG= tcpdump
9 SRCS= 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
36 SRCS+= print-smb.c smbutil.c version.c
37 CLEANFILES+= version.c
39 CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
40 CFLAGS+= -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
42 CFLAGS+= -DHAVE_RES_STATE_EXT -DHAVE_NEW_RES_STATE -DUSE_GETIPNODEBY
43 CFLAGS+= -DHAVE_PCAP_VERSION -UHAVE_YYDEBUG -DHAVE_GETADDRINFO -DHAVE_GETNAMEINFO
44 CFLAGS+= -DHAVE_STRUCT_ETHER_ADDR -DHAVE_NET_PFVAR_H
46 .if !defined(NOINET6)
47 SRCS+= 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
51 CFLAGS+= -DINET6
52 .endif
53 .if ${MACHINE_ARCH} != "i386"
54 CFLAGS+= -DLBL_ALIGN
55 .endif
57 DPADD= ${LIBL} ${LIBPCAP}
58 LDADD= -ll -lpcap
59 .if exists(../../secure) && !defined(NO_CRYPT) && !defined(NO_OPENSSL)
60 DPADD+= ${LIBCRYPTO}
61 LDADD+= -lcrypto
62 CFLAGS+= -I${DESTDIR}/usr/include/openssl -DHAVE_LIBCRYPTO -DHAVE_OPENSSL_EVP_H
63 .endif
64 WARNS?= 3
66 version.c: ${TCPDUMP_DISTDIR}/VERSION
67 @rm -f $@
68 sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION > $@
70 .include <bsd.prog.mk>