Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libpcap / Makefile
blob4664c2d74d20b5549afb4d15ea8373a986545090
1 # $NetBSD: Makefile,v 1.30 2007/05/28 12:06:20 tls Exp $
3 .include <bsd.own.mk>
5 USE_FORT?= yes # network protocol library
7 SRCDIR= ${NETBSDSRCDIR}/dist/libpcap
8 .PATH: ${SRCDIR}
10 LIB= pcap
11 MAN= pcap.3
13 WARNS?= 3
15 CPPFLAGS+= -I${.CURDIR} -I. -I${SRCDIR}
16 CPPFLAGS+= -DYYBISON
17 LPREFIX= pcap_
18 YPREFIX= pcap_
19 YHEADER= 1
21 CPPFLAGS+= -DHAVE_CONFIG_H
23 .if defined(HAVE_PCC)
24 CPPFLAGS+= -D_U_=""
25 .elif defined(HAVE_GCC)
26 CPPFLAGS+= -D_U_="__attribute__((unused))"
27 .endif
29 .if (${USE_INET6} != "no")
30 CPPFLAGS+= -DINET6
31 .endif
33 SRCS= scanner.l savefile.c pcap.c pcap-bpf.c optimize.c nametoaddr.c \
34 inet.c grammar.y gencode.c fad-getad.c etherent.c bpf_image.c \
35 bpf_dump.c version.c
37 .PATH: ${NETBSDSRCDIR}/sys/net
38 SRCS+= bpf_filter.c
40 INCS= pcap-namedb.h pcap.h
41 INCSDIR= /usr/include
43 scanner.d scanner.o: tokdefs.h
45 tokdefs.h: grammar.h
46 cp $? $@
48 CLEANFILES+= tokdefs.h
50 .include <bsd.lib.mk>