summaryrefslogtreecommitdiffstats
path: root/lib/libpcap
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-05-08 06:43:07 +0000
committerbde <bde@FreeBSD.org>1998-05-08 06:43:07 +0000
commitff584932090fcbc74535e07692c2deee3cee10bc (patch)
treea8622d935bbee39eae21209102f19d06929e3b4f /lib/libpcap
parent16b46848f956c3fc5ed9ce4afb6229c0c8cbff2a (diff)
downloadFreeBSD-src-ff584932090fcbc74535e07692c2deee3cee10bc.zip
FreeBSD-src-ff584932090fcbc74535e07692c2deee3cee10bc.tar.gz
Simplified by using new yacc rules.
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile
index 2a12962..1ccd768 100644
--- a/lib/libpcap/Makefile
+++ b/lib/libpcap/Makefile
@@ -1,13 +1,13 @@
# Makefile for libpcap
-# $Id: Makefile,v 1.17 1997/10/05 09:39:25 jkh Exp $
+# $Id: Makefile,v 1.18 1997/10/10 11:55:42 peter Exp $
LIB= pcap
-SRCS= grammar.c tokdefs.h pcap-bpf.c \
+SRCS= grammar.y tokdefs.h pcap-bpf.c \
pcap.c inet.c gencode.c optimize.c nametoaddr.c \
etherent.c savefile.c bpf_filter.c bpf_image.c \
- scanner.c
+ scanner.l
MAN3= pcap.3
-CLEANFILES+= tokdefs.h grammar.c scanner.c y.tab.c y.tab.h
+CLEANFILES+= tokdefs.h
DEFS= -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 \
-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
@@ -32,10 +32,7 @@ beforeinstall:
${DESTDIR}/usr/include
.endfor
-.ORDER: grammar.c tokdefs.h
-tokdefs.h grammar.c: grammar.y
- ${YACC} ${YACCFLAGS} -d ${PCAP_DISTDIR}/grammar.y
- mv y.tab.c grammar.c
- mv y.tab.h tokdefs.h
+tokdefs.h: grammar.h
+ ln -sf grammar.h tokdefs.h
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud