File:  [DragonFly] / src / usr.sbin / tcpdump / tcpdump / Makefile
Revision 1.4: download - view: text, annotated - select for diffs
Sat May 15 12:29:42 2004 UTC (9 years, 11 months ago) by eirikn
Branches: MAIN
CVS tags: HEAD, DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Update tcpdump to version 3.8.3

Submitted-by: Brock Johnson <wildefire@isentry.homelinux.org>

# $FreeBSD: src/usr.sbin/tcpdump/tcpdump/Makefile,v 1.25.2.6 2002/07/05 11:30:32 fenner Exp $
# $DragonFly: src/usr.sbin/tcpdump/tcpdump/Makefile,v 1.4 2004/05/15 12:29:42 eirikn Exp $


TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump-3.8.3
.PATH: ${TCPDUMP_DISTDIR}

PROG=	tcpdump
SRCS=	addrtoname.c gmpls.c gmt2local.c machdep.c \
	oui.c parsenfsfh.c print-802_11.c print-ap1394.c \
	print-ah.c print-arcnet.c print-aodv.c print-arp.c \
	print-ascii.c print-atalk.c print-atm.c print-beep.c \
	print-bfd.c print-bgp.c print-bootp.c print-cdp.c \
	print-chdlc.c print-cip.c print-cnfp.c print-decnet.c \
	print-domain.c print-dvmrp.c print-enc.c print-egp.c \
	print-esp.c print-ether.c print-fddi.c print-fr.c \
	print-gre.c print-hsrp.c print-icmp.c print-igmp.c \
	print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \
	print-ipx.c print-isakmp.c print-isoclns.c print-krb.c \
	print-l2tp.c print-lane.c print-ldp.c print-llc.c \
	print-lwres.c print-mobile.c print-mpls.c print-msdp.c \
	print-nfs.c 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-rsvp.c print-rx.c print-sctp.c print-sl.c \
	print-sll.c print-smb.c print-snmp.c print-stp.c \
	print-sunatm.c print-sunrpc.c print-tcp.c print-telnet.c \
	print-tftp.c print-timed.c print-token.c print-udp.c \
	print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \
	setsignal.c smbutil.c tcpdump.c util.c version.c
CLEANFILES+=	version.c

CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
CFLAGS+= -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"

.if !defined(NOINET6)
SRCS+=	print-ip6.c print-ip6opts.c print-mobility.c \
	print-ripng.c print-icmp6.c print-frag6.c print-rt6.c \
	print-ospf6.c print-dhcp6.c
CFLAGS+=	-DINET6
.endif
.if ${MACHINE_ARCH} != "i386"
CFLAGS+=	-DLBL_ALIGN
.endif

DPADD=	${LIBL} ${LIBPCAP}
LDADD=	-ll -lpcap
.if exists(../../../secure) && !defined(NOCRYPT) && !defined(NO_OPENSSL) && \
	!defined(RELEASE_CRUNCH)
DISTRIBUTION=crypto
DPADD+= ${LIBCRYPTO}
LDADD+= -lcrypto
CFLAGS+= -I${DESTDIR}/usr/include/openssl -DHAVE_LIBCRYPTO -DHAVE_RC5_H -DHAVE_CAST_H
.endif

version.c: ${TCPDUMP_DISTDIR}/VERSION
	@rm -f $@
	sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION > $@

.include <bsd.prog.mk>