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.3 2004/02/03 06:26:29 dillon Exp $
6 SRCS= grammar.y tokdefs.h pcap-bpf.c \
7 pcap.c inet.c gencode.c optimize.c nametoaddr.c \
8 etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
10 INCS= pcap.h pcap-int.h pcap-namedb.h
12 CLEANFILES=tokdefs.h version.c
14 CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I.
19 # workaround bogus libpcap 0.6.2 contrib code which tries to extern the
20 # system supplied function ether_hostton(). Setting __FreeBSD__ prevents
21 # it from declaring the extern.
29 # Magic to grab sources out of src/contrib
31 PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
32 CFLAGS+=-I${PCAP_DISTDIR}
33 .PATH: ${PCAP_DISTDIR}
34 .PATH: ${PCAP_DISTDIR}/bpf/net
36 version.c: ${PCAP_DISTDIR}/VERSION
38 sed 's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION > $@
41 ln -sf grammar.h tokdefs.h