blob: 85509b11e001b95b194868615091bd1432bfdca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Makefile for libpcap
# $Id: Makefile,v 1.7 1996/06/02 17:09:03 phk Exp $
LIB= pcap
SRCS= pcap-bpf.c \
pcap.c inet.c gencode.c optimize.c nametoaddr.c \
etherent.c savefile.c bpf_filter.c bpf_image.c \
grammar.y scanner.l
MAN3= pcap.3
CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.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
CFLAGS+=-Wall -I. -I${.CURDIR} -Dyylval=pcap_lval -Dlint ${DEFS}
#
# Magic to grab sources out of src/contrib
#
DISTDIR?=${.CURDIR}/../../contrib/libpcap
.PATH: ${DISTDIR}
.PATH: ${DISTDIR}/bpf/net
CFLAGS+=-I${DISTDIR} -I${DISTDIR}/lbl
beforeinstall:
-cmp -s ${DISTDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h || \
( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${DISTDIR}/pcap.h ${DESTDIR}/usr/include; )
-cmp -s ${DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )
scanner.o: tokdefs.h
tokdefs.h: grammar.c
mv -f y.tab.h tokdefs.h
.include <bsd.lib.mk>
|