2005-01-10 05:58:58 +03:00
|
|
|
# $NetBSD: Makefile,v 1.27 2005/01/10 02:58:58 lukem Exp $
|
2002-08-19 13:41:27 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1995-03-06 14:37:58 +03:00
|
|
|
|
|
|
|
LIB= pcap
|
1999-07-02 19:58:35 +04:00
|
|
|
MAN= pcap.3
|
1995-03-06 14:37:58 +03:00
|
|
|
|
2001-11-05 18:22:23 +03:00
|
|
|
WARNS?= 1
|
1996-12-13 11:25:54 +03:00
|
|
|
|
2004-06-25 16:22:23 +04:00
|
|
|
CPPFLAGS+=-I. -I${.CURDIR} -I${NETBSDSRCDIR}/sys/dist/pf -DYYBISON
|
1997-10-23 06:53:50 +04:00
|
|
|
CPPFLAGS+=-DHAVE_MALLOC_H=1 -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1
|
2004-09-28 03:02:53 +04:00
|
|
|
CPPFLAGS+=-DHAVE_NETINET_IF_ETHER_H
|
1997-10-23 06:53:50 +04:00
|
|
|
CPPFLAGS+=-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_SOCKADDR_SA_LEN=1
|
2004-09-28 03:02:53 +04:00
|
|
|
CPPFLAGS+=-DHAVE_IFADDRS_H=1 -DHAVE_LIMITS_H=1
|
|
|
|
CPPFLAGS+=-DHAVE_SNPRINTF=1 -DHAVE_STRLCPY=1 -DHAVE_VSNPRINTF=1
|
2000-04-13 09:14:19 +04:00
|
|
|
# used in no place
|
|
|
|
#CPPFLAGS+=-DLBL_ALIGN=1
|
1998-11-01 06:48:35 +03:00
|
|
|
LPREFIX=pcap_
|
|
|
|
YPREFIX=pcap_
|
1998-04-09 04:32:31 +04:00
|
|
|
YHEADER=1
|
1995-03-06 14:37:58 +03:00
|
|
|
|
2005-01-10 05:58:58 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
|
|
|
CPPFLAGS+=-DINET6
|
|
|
|
.endif
|
|
|
|
|
1997-10-03 19:53:00 +04:00
|
|
|
SRCS= scanner.l savefile.c pcap.c pcap-bpf.c optimize.c nametoaddr.c \
|
2004-09-28 03:02:53 +04:00
|
|
|
inet.c grammar.y gencode.c fad-getad.c etherent.c bpf_image.c \
|
|
|
|
bpf_dump.c
|
1997-10-03 20:40:56 +04:00
|
|
|
SRCS+= bpf_filter.c version.c
|
1997-05-09 11:50:03 +04:00
|
|
|
|
2002-08-19 13:41:27 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/net
|
1995-03-06 14:37:58 +03:00
|
|
|
|
1999-07-02 19:58:35 +04:00
|
|
|
INCS= pcap-namedb.h pcap.h
|
1997-03-25 01:11:48 +03:00
|
|
|
INCSDIR=/usr/include
|
1995-03-06 14:37:58 +03:00
|
|
|
|
2004-09-28 03:02:53 +04:00
|
|
|
# XXX -dcy
|
|
|
|
scanner.c: grammar.h
|
|
|
|
|
1995-03-06 14:37:58 +03:00
|
|
|
.include <bsd.lib.mk>
|