fsck_msdosfs: check next cluster index for validity before using it
[dragonfly.git] / lib / libpcap / Makefile
blob172a6f0a80147292b7c67beaec777effc5beec1f
1 # Makefile for libpcap
2 # $FreeBSD: src/lib/libpcap/Makefile,v 1.24.2.4 2002/07/22 14:21:50 ru Exp $
3 # $DragonFly: src/lib/libpcap/Makefile,v 1.12 2007/10/11 01:07:29 pavalos Exp $
5 SRCDIR= ${.CURDIR}/../../contrib/libpcap-0.9
7 LIB= pcap
8 SRCS= grammar.y tokdefs.h pcap-bpf.c version.h \
9 pcap.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \
10 etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
11 scanner.l version.c
12 INCS= pcap.h pcap-namedb.h pcap-int.h
13 MAN= pcap.3
14 CLEANFILES=tokdefs.h version.c version.h
16 CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I.
17 CFLAGS+=-D_U_="__attribute__((unused))"
18 CFLAGS+=-DHAVE_STRUCT_ETHER_ADDR -DHAVE_NET_PFVAR_H
19 .if !defined(NOINET6)
20 CFLAGS+=-DINET6
21 .endif
23 SHLIB_MAJOR=3
26 # Magic to grab sources out of src/contrib
28 PCAP_DISTDIR?=${SRCDIR}
29 CFLAGS+=-I${PCAP_DISTDIR}
30 .PATH: ${PCAP_DISTDIR}
31 .PATH: ${PCAP_DISTDIR}/bpf/net
33 version.c: ${PCAP_DISTDIR}/VERSION
34 @rm -f $@
35 sed 's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION > $@
37 version.h: ${PCAP_DISTDIR}/VERSION
38 @rm -f $@
39 sed 's/.*/static const char pcap_version_string[] = "libpcap version &";/' \
40 ${PCAP_DISTDIR}/VERSION > $@
42 tokdefs.h: grammar.h
43 ${LN} -sf grammar.h tokdefs.h
45 .include <bsd.lib.mk>