-# $OpenBSD: Makefile,v 1.25 2016/03/30 06:38:42 jmc Exp $
+# $OpenBSD: Makefile,v 1.26 2017/07/09 15:32:09 espie Exp $
# $NetBSD: Makefile,v 1.3 1996/05/10 21:54:24 cgd Exp $
LIB= pcap
pcap-bpf.c version.c fad-getad.c
.PATH: ${.CURDIR}/../../sys/net
-CLEANFILES+= grammar.c scanner.c grammar.tab.h version.c
+YFLAGS = -ppcap_yy -d
+LFLAGS = -Ppcap_yy
-grammar.c: grammar.y
- ${YACC.y} -ppcap_yy -b ${.TARGET:R} ${.ALLSRC}
- mv ${.TARGET:R}.tab.c ${.TARGET}
-
-scanner.c: scanner.l grammar.c
- ${LEX.l} -Ppcap_yy -o${.TARGET} ${.CURDIR}/scanner.l
+CLEANFILES+= version.c
version.c: ${.CURDIR}/VERSION
@rm -f $@
%{
-/* $OpenBSD: scanner.l,v 1.23 2015/11/17 21:39:23 mmcc Exp $ */
+/* $OpenBSD: scanner.l,v 1.24 2017/07/09 15:32:09 espie Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
#include "os-proto.h"
#endif
-#include "grammar.tab.h"
+#include "grammar.h"
static int stoi(char *);
static inline int xdtoi(int);