diff options
author | jkh <jkh@FreeBSD.org> | 1995-01-20 04:13:07 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-01-20 04:13:07 +0000 |
commit | 8e4f208589200093617b1a41bc21915a81e2751b (patch) | |
tree | 8d743445acddeb1fdee0b9fbdd4f5b7c8abb2a87 /lib/libpcap | |
parent | 6a8333301f98f60ece883dc66f04330b26549b0f (diff) | |
download | FreeBSD-src-8e4f208589200093617b1a41bc21915a81e2751b.zip FreeBSD-src-8e4f208589200093617b1a41bc21915a81e2751b.tar.gz |
Add the Packet Capture Library from Michael Reifenberger.
Submitted by: mr
Diffstat (limited to 'lib/libpcap')
-rw-r--r-- | lib/libpcap/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile new file mode 100644 index 0000000..83bd2dd --- /dev/null +++ b/lib/libpcap/Makefile @@ -0,0 +1,45 @@ +# Makefile for libpcap +# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache 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 + +CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c +CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI +MAN3= pcap.3 + +beforeinstall: + -cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h.h || \ + ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/pcap.h ${DESTDIR}/usr/include; ) + -cmp -s ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \ + ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include; ) + + +scanner.c: scanner.l + rm -f $@ + $(LEX) -t $< > $@ + +scanner.o: scanner.c + rm -f $@; $(CC) $(CFLAGS) $(LEX_DEFINES) -c $*.c + +tokdefs.h: grammar.c + +grammar.c: grammar.y + rm -f grammar.c tokdefs.h + $(YACC) -d $< + mv y.tab.c grammar.c + mv y.tab.h tokdefs.h + +grammar.o: grammar.c + $(CC) -c $(CFLAGS) -Dyylval=pcap_lval grammar.c + + +.include <bsd.lib.mk> |