NetBSD/lib/libpcap/Makefile
drochner 12f037f2be Re-add version.c which got lost in the update.
(This is not an official interface, but we want to be compatible.)
pointed out by Bernd Ernesti
2006-05-02 09:59:26 +00:00

44 lines
781 B
Makefile

# $NetBSD: Makefile,v 1.29 2006/05/02 09:59:26 drochner Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/dist/libpcap
.PATH: ${SRCDIR}
LIB= pcap
MAN= pcap.3
WARNS?= 3
CPPFLAGS+= -I${.CURDIR} -I. -I${SRCDIR}
CPPFLAGS+= -DYYBISON
LPREFIX= pcap_
YPREFIX= pcap_
YHEADER= 1
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -D_U_="__attribute__((unused))"
.if (${USE_INET6} != "no")
CPPFLAGS+= -DINET6
.endif
SRCS= scanner.l savefile.c pcap.c pcap-bpf.c optimize.c nametoaddr.c \
inet.c grammar.y gencode.c fad-getad.c etherent.c bpf_image.c \
bpf_dump.c version.c
.PATH: ${NETBSDSRCDIR}/sys/net
SRCS+= bpf_filter.c
INCS= pcap-namedb.h pcap.h
INCSDIR= /usr/include
scanner.d scanner.o: tokdefs.h
tokdefs.h: grammar.h
cp $? $@
CLEANFILES+= tokdefs.h
.include <bsd.lib.mk>