Makefile revision 1.22
1#	$OpenBSD: Makefile,v 1.22 2000/10/03 14:28:21 ho 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 -Werror
27
28CFLAGS+=-DCSLIP -DPPP -DHAVE_FDDI -DETHER_SERVICE -DRETSIGTYPE=void -DHAVE_NET_SLIP_H -DHAVE_ETHER_NTOHOST -DINET6
29.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "mips") || (${MACHINE_ARCH} == "sparc")
30CFLAGS+=-DLBL_ALIGN
31.endif
32
33LDADD+=	-lpcap -ll
34DPADD+=	${LIBL} ${LIBPCAP}
35
36SRCS=	tcpdump.c addrtoname.c \
37	print-ether.c print-ip.c print-arp.c print-tcp.c print-udp.c \
38	print-atalk.c print-domain.c print-tftp.c print-bootp.c print-nfs.c \
39	print-icmp.c print-sl.c print-ppp.c print-rip.c \
40	print-snmp.c print-ntp.c print-null.c print-egp.c print-ospf.c \
41	print-fddi.c print-llc.c print-sunrpc.c \
42	print-wb.c print-decnet.c print-isoclns.c print-ipx.c \
43	print-atm.c print-dvmrp.c print-krb.c print-pim.c print-netbios.c \
44	util.c bpf_dump.c parsenfsfh.c version.c machdep.c print-igrp.c \
45	print-gre.c print-radius.c print-enc.c print-cnfp.c \
46	print-ipsec.c print-ike.c print-raw.c print-l2tp.c print-mobile.c \
47	print-ip6.c print-ip6opts.c print-icmp6.c print-dhcp6.c print-frag6.c \
48	print-bgp.c print-ospf6.c print-ripng.c print-rt6.c \
49	gmt2local.c savestr.c setsignal.c
50
51AWKS =	atime.awk packetdat.awk send-ack.awk stime.awk
52
53.include <bsd.prog.mk>
54