freebsd-skq/lib/libpcap/Makefile

46 lines
1.0 KiB
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 \
pcap.c inet.c gencode.c optimize.c nametoaddr.c \
etherent.c savefile.c bpf_filter.c bpf_image.c \
scanner.l version.c
MAN3= pcap.3
1998-12-27 15:04:33 +00:00
CLEANFILES=tokdefs.h version.c
DEFS= -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 \
-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
.if !defined(NOINET6)
DEFS+= -DINET6
.endif
CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}
1996-08-20 05:43:51 +00:00
SHLIB_MAJOR=2
2000-01-30 00:44:23 +00:00
SHLIB_MINOR=4
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} -I${PCAP_DISTDIR}/lbl
.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>