1995-01-20 04:13:07 +00:00
|
|
|
# Makefile for libpcap
|
1996-08-30 01:59:46 +00:00
|
|
|
# $Id: Makefile,v 1.11 1996/08/21 16:50:08 pst Exp $
|
1995-01-20 04:13:07 +00:00
|
|
|
|
|
|
|
LIB= pcap
|
1996-08-19 21:01:37 +00:00
|
|
|
SRCS= pcap-bpf.c \
|
|
|
|
pcap.c inet.c gencode.c optimize.c nametoaddr.c \
|
|
|
|
etherent.c savefile.c bpf_filter.c bpf_image.c \
|
1995-02-21 10:46:34 +00:00
|
|
|
grammar.y scanner.l
|
1996-08-19 21:01:37 +00:00
|
|
|
MAN3= pcap.3
|
1996-06-02 17:10:13 +00:00
|
|
|
CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c
|
1996-08-19 21:01:37 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
CFLAGS+=-Wall -I. -I${.CURDIR} -Dyylval=pcap_lval -Dlint ${DEFS}
|
|
|
|
|
1996-08-20 05:43:51 +00:00
|
|
|
SHLIB_MAJOR=2
|
|
|
|
SHLIB_MINOR=1
|
|
|
|
|
1996-08-19 21:01:37 +00:00
|
|
|
#
|
|
|
|
# Magic to grab sources out of src/contrib
|
|
|
|
#
|
1996-08-21 16:50:15 +00:00
|
|
|
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
|
|
|
|
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl
|
|
|
|
.PATH: ${PCAP_DISTDIR}
|
|
|
|
.PATH: ${PCAP_DISTDIR}/bpf/net
|
1995-01-20 04:13:07 +00:00
|
|
|
|
|
|
|
beforeinstall:
|
1996-08-30 01:59:46 +00:00
|
|
|
.for i in pcap.h pcap-namedb.h
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PCAP_DISTDIR}/$i \
|
|
|
|
${DESTDIR}/usr/include
|
|
|
|
.endfor
|
1995-01-20 04:13:07 +00:00
|
|
|
|
1995-02-21 10:46:34 +00:00
|
|
|
scanner.o: tokdefs.h
|
1995-01-20 04:13:07 +00:00
|
|
|
|
|
|
|
tokdefs.h: grammar.c
|
1996-06-02 17:10:13 +00:00
|
|
|
mv -f y.tab.h tokdefs.h
|
1995-01-20 04:13:07 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|