Makefile revision 1.41
1#	$OpenBSD: Makefile,v 1.41 2003/07/17 08:45:37 markus Exp $
2#
3#  Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994
4# 	The Regents of the University of California.  All rights reserved.
5#
6#  Redistribution and use in source and binary forms, with or without
7#  modification, are permitted provided that: (1) source code distributions
8#  retain the above copyright notice and this paragraph in its entirety, (2)
9#  distributions including binary code include the above copyright notice and
10#  this paragraph in its entirety in the documentation or other materials
11#  provided with the distribution, and (3) all advertising materials mentioning
12#  features or use of this software display the following acknowledgement:
13#  ``This product includes software developed by the University of California,
14#  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
15#  the University nor the names of its contributors may be used to endorse
16#  or promote products derived from this software without specific prior
17#  written permission.
18#  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
19#  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
20#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21#
22
23PROG=	tcpdump
24MAN=	tcpdump.8
25
26CFLAGS+=-Wall -I${.CURDIR}/../../sbin/pfctl
27.PATH:	${.CURDIR}/../../sbin/pfctl
28
29CFLAGS+=-DCSLIP -DPPP -DHAVE_FDDI -DETHER_SERVICE -DRETSIGTYPE=void -DHAVE_NET_SLIP_H -DHAVE_ETHER_NTOHOST -DINET6
30.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc") || \
31    (${MACHINE_ARCH} == "sparc64")
32CFLAGS+=-DLBL_ALIGN
33.endif
34
35LDADD+=	-lpcap -ll -lcrypto
36DPADD+=	${LIBL} ${LIBPCAP} ${LIBCRYPTO}
37
38SRCS=	tcpdump.c addrtoname.c \
39	print-ether.c print-ip.c print-arp.c print-tcp.c print-udp.c \
40	print-atalk.c print-domain.c print-tftp.c print-bootp.c print-nfs.c \
41	print-icmp.c print-sl.c print-ppp.c print-rip.c print-timed.c \
42	print-snmp.c print-ntp.c print-null.c print-ospf.c \
43	print-fddi.c print-llc.c print-sunrpc.c print-hsrp.c \
44	print-vrrp.c print-wb.c print-decnet.c print-isoclns.c print-ipx.c \
45	print-atm.c print-dvmrp.c print-krb.c print-pim.c print-netbios.c \
46	util.c bpf_dump.c parsenfsfh.c version.c machdep.c print-igrp.c \
47	print-gre.c print-radius.c print-enc.c print-cnfp.c \
48	print-ipsec.c print-ike.c print-raw.c print-l2tp.c print-mobile.c \
49	print-ip6.c print-ip6opts.c print-icmp6.c print-dhcp6.c print-frag6.c \
50	print-bgp.c print-ospf6.c print-ripng.c print-rt6.c print-stp.c \
51	print-etherip.c print-lwres.c print-cdp.c print-pflog.c \
52	print-pfsync.c pf_print_state.c \
53	print-udpencap.c \
54	gmt2local.c savestr.c setsignal.c
55
56#SRCS+=	smbutil.c print-smb.c
57
58AWKS =	atime.awk packetdat.awk send-ack.awk stime.awk
59
60.include <bsd.prog.mk>
61