freebsd-nq/lib/libpcap/Makefile

51 lines
1.2 KiB
Makefile
Raw Normal View History

# Makefile for libpcap
1999-08-28 00:22:10 +00:00
# $FreeBSD$
SHLIBDIR?= /lib
.include <bsd.own.mk>
LIB= pcap
SRCS= grammar.y tokdefs.h version.h pcap-bpf.c \
pcap.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \
2001-04-03 04:34:50 +00:00
etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
scanner.l version.c
2007-10-16 02:10:44 +00:00
INCS= pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h
2001-03-27 17:27:19 +00:00
MAN= pcap.3
CLEANFILES=tokdefs.h version.h version.c
YFLAGS+=-p pcapyy
LFLAGS+=-Ppcapyy
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcapyylval -I${.CURDIR} -I.
CFLAGS+=-D_U_="__attribute__((unused))"
CFLAGS+=-DHAVE_SNPRINTF -DHAVE_VSNPRINTF
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
2007-10-16 02:10:44 +00:00
.if ${MK_PF} != "no"
CFLAGS+=-DHAVE_NET_PFVAR_H
.endif
SHLIB_MAJOR=5
1996-08-20 05:43:51 +00:00
#
# Magic to grab sources out of src/contrib
#
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
CFLAGS+=-I${PCAP_DISTDIR}
.PATH: ${PCAP_DISTDIR}
.PATH: ${PCAP_DISTDIR}/bpf/net
version.c: ${PCAP_DISTDIR}/VERSION
@rm -f $@
sed 's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION > $@
version.h: ${PCAP_DISTDIR}/VERSION
@rm -f $@
sed 's/.*/char pcap_version_string[] = "libpcap version &";/' ${PCAP_DISTDIR}/VERSION > $@
1998-05-08 06:43:07 +00:00
tokdefs.h: grammar.h
ln -sf grammar.h tokdefs.h
.include <bsd.lib.mk>