freebsd-dev/lib/libpcap/Makefile

42 lines
923 B
Makefile
Raw Normal View History

# Makefile for libpcap
1999-08-28 00:22:10 +00:00
# $FreeBSD$
LIB= pcap
1998-05-08 06:43:07 +00:00
SRCS= grammar.y tokdefs.h pcap-bpf.c \
2001-04-03 04:34:50 +00:00
pcap.c inet.c gencode.c optimize.c nametoaddr.c \
etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
scanner.l version.c
2001-03-27 17:27:19 +00:00
MAN= pcap.3
1998-12-27 15:04:33 +00:00
CLEANFILES=tokdefs.h version.c
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I.
.if !defined(NOINET6)
CFLAGS+=-DINET6
.endif
1996-08-20 05:43:51 +00:00
SHLIB_MAJOR=2
2001-04-03 04:34:50 +00:00
SHLIB_MINOR=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 > $@
beforeinstall:
.for i in pcap.h pcap-int.h pcap-namedb.h
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PCAP_DISTDIR}/$i \
${DESTDIR}/usr/include
.endfor
1998-05-08 06:43:07 +00:00
tokdefs.h: grammar.h
ln -sf grammar.h tokdefs.h
.include <bsd.lib.mk>