diff options
Diffstat (limited to 'lib/libpcap/Makefile')
-rw-r--r-- | lib/libpcap/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile index 8a55e5e11c5..86c02a5870a 100644 --- a/lib/libpcap/Makefile +++ b/lib/libpcap/Makefile @@ -1,26 +1,33 @@ -# $OpenBSD: Makefile,v 1.9 1998/02/26 13:49:51 niklas Exp $ +# $OpenBSD: Makefile,v 1.10 1999/07/20 04:49:54 deraadt Exp $ # $NetBSD: Makefile,v 1.3 1996/05/10 21:54:24 cgd Exp $ LIB= pcap MAN= pcap.3 -CFLAGS+=-I. -I${.CURDIR} -Dyylval=pcap_yylval -DHAVE_STRERROR -DHAVE_ETHER_HOSTTON +DEFS= -DHAVE_SYS_IOCCOM_H -DHAVE_SYS_SOCKIO_H -DHAVE_ETHER_HOSTTON \ + -DHAVE_STRERROR -DHAVE_SOCKADDR_SA_LEN -DLBL_ALIGN -HDRS= pcap.h pcap-namedb.h +CFLAGS+=-I. -I${.CURDIR} -Dyylval=pcap_yylval ${DEFS} + +HDRS= pcap.h pcap-int.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 + pcap-bpf.c version.c .PATH: ${.CURDIR}/../../sys/net -CLEANFILES+= grammar.c scanner.c grammar.tab.h +CLEANFILES+= grammar.c scanner.c grammar.tab.h version.c -grammar.c: grammar.y +grammar.c: grammar.y ${YACC.y} -ppcap_yy -b ${.TARGET:R} ${.IMPSRC} mv ${.TARGET:R}.tab.c ${.TARGET} -scanner.c: scanner.l grammar.c +scanner.c: scanner.l grammar.c ${LEX.l} -Ppcap_yy -o${.TARGET} ${.IMPSRC} +version.c: ${.CURDIR}/VERSION + @rm -f $@ + sed 's/.*/char pcap_version[] = "&";/' ${.CURDIR}/VERSION > $@ + includes: @cd ${.CURDIR}; for i in $(HDRS); do \ j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \ |