1996-12-13 11:25:54 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 1996/12/13 08:25:56 mikel Exp $
|
1995-03-06 14:37:58 +03:00
|
|
|
|
|
|
|
LIB= pcap
|
|
|
|
MAN= pcap.3
|
|
|
|
|
1996-12-13 11:25:54 +03:00
|
|
|
LEX= flex
|
|
|
|
|
|
|
|
CFLAGS+=-I. -I${.CURDIR} -DYYBISON
|
|
|
|
CFLAGS+=-DHAVE_MALLOC_H=1 -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1
|
|
|
|
CFLAGS+=-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_SOCKADDR_SA_LEN=1
|
|
|
|
CFLAGS+=-DLBL_ALIGN=1
|
|
|
|
LFLAGS+=-olex.yy.c -Ppcap_
|
|
|
|
YFLAGS+=-ppcap_
|
1995-03-06 14:37:58 +03:00
|
|
|
|
|
|
|
HDRS= pcap.h pcap-namedb.h
|
|
|
|
SRCS= pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \
|
|
|
|
savefile.c bpf_filter.c bpf_image.c grammar.y scanner.l \
|
|
|
|
pcap-bpf.c
|
|
|
|
.PATH: ${.CURDIR}/../../sys/net
|
|
|
|
|
|
|
|
CLEANFILES+= grammar.c scanner.c y.tab.h
|
|
|
|
|
1996-04-30 00:32:24 +04:00
|
|
|
includes:
|
1995-03-06 14:37:58 +03:00
|
|
|
@cd ${.CURDIR}; for i in $(HDRS); do \
|
1996-05-11 01:54:24 +04:00
|
|
|
j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
|
1996-10-18 09:45:01 +04:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
1995-03-06 14:37:58 +03:00
|
|
|
${DESTDIR}/usr/include"; \
|
1996-05-11 01:54:24 +04:00
|
|
|
echo $$j; \
|
|
|
|
eval "$$j"; \
|
1995-03-06 14:37:58 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
1996-12-13 11:25:54 +03:00
|
|
|
|
|
|
|
.depend: grammar.c scanner.c
|