diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile index 83bd2dd38f0b..9fb1c57433af 100644 --- a/lib/libpcap/Makefile +++ b/lib/libpcap/Makefile @@ -1,5 +1,5 @@ # Makefile for libpcap -# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache Exp $ +# $Id: Makefile,v 1.1.1.1 1995/01/20 04:13:07 jkh Exp $ LIB= pcap @@ -7,11 +7,11 @@ 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 + grammar.y scanner.l CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c -CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI +# CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI -Dyylval=pcap_lval +CFLAGS+=-DFDDI -I. -I${.CURDIR} MAN3= pcap.3 beforeinstall: @@ -22,24 +22,10 @@ beforeinstall: ( $(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 +scanner.o: tokdefs.h 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 diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y index 55fa1981dad6..4c17bdc81607 100644 --- a/lib/libpcap/grammar.y +++ b/lib/libpcap/grammar.y @@ -22,7 +22,7 @@ */ #ifndef lint static char rcsid[] = - "@(#) $Header: grammar.y,v 1.39 94/06/14 20:09:25 leres Exp $ (LBL)"; + "@(#) $Header: /home/ncvs/src/lib/libpcap/grammar.y,v 1.1.1.1 1995/01/20 04:13:06 jkh Exp $ (LBL)"; #endif #include @@ -41,6 +41,8 @@ static char rcsid[] = #include "gencode.h" +#define yylval pcap_lval + #define QSET(q, p, d, a) (q).proto = (p),\ (q).dir = (d),\ (q).addr = (a)