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
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 \
12 INCS
= pcap.h pcap-namedb.h pcap-int.h
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
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
35 sed
's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION
> $@
37 version.h
: ${PCAP_DISTDIR}/VERSION
39 sed
's/.*/static const char pcap_version_string[] = "libpcap version &";/' \
40 ${PCAP_DISTDIR}/VERSION
> $@
43 ${LN} -sf grammar.h tokdefs.h