summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-05-04 19:10:20 +0000
committerbde <bde@FreeBSD.org>1998-05-04 19:10:20 +0000
commit1819d65461b152aaed745e4ef79c4483c863ce1d (patch)
treeebda785412f4bad8f813a1645337d12f726df687 /usr.bin/lex
parentc41c6ae044060a704aa84b27cc45c8f805e2dd45 (diff)
downloadFreeBSD-src-1819d65461b152aaed745e4ef79c4483c863ce1d.zip
FreeBSD-src-1819d65461b152aaed745e4ef79c4483c863ce1d.tar.gz
Simplified by using new yacc rules. The new lex rules can't be used
here, at least without ifdefs for the bootstrap.
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/Makefile16
1 files changed, 3 insertions, 13 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile
index a63599f..5d98811 100644
--- a/usr.bin/lex/Makefile
+++ b/usr.bin/lex/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.10 1997/02/22 19:55:34 peter Exp $
+# $Id: Makefile,v 1.11 1997/10/05 09:39:58 jkh Exp $
#
# By default, flex will be configured to generate 8-bit scanners only if the
# -8 flag is given. If you want it to always generate 8-bit scanners, add
@@ -14,8 +14,7 @@ LINKS+= ${BINDIR}/lex ${BINDIR}/lex++
LINKS+= ${BINDIR}/lex ${BINDIR}/flex
LINKS+= ${BINDIR}/lex ${BINDIR}/flex++
-SRCS= scan.c ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c \
- parse.h \
+SRCS= scan.c ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \
skel.c sym.c tblcmp.c yylex.c
LFLAGS+= -is
CFLAGS+= -I. -I${.CURDIR}
@@ -24,7 +23,7 @@ MLINKS+= lex.1 flex.1
MLINKS+= lex.1 flex++.1
MLINKS+= lex.1 lex++.1
-CLEANFILES+= parse.c parse.h scan.c y.tab.h y.tab.c
+CLEANFILES= scan.c
.if !defined(NOLIB)
SUBDIR= lib
@@ -34,13 +33,6 @@ beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 \
${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++
-
-.ORDER: parse.c parse.h
-parse.c parse.h: parse.y
- $(YACC) -d $(.CURDIR)/parse.y
- mv -f y.tab.c parse.c
- mv -f y.tab.h parse.h
-
bootstrap: initscan.c
@cmp -s ${.CURDIR}/initscan.c scan.c || { \
echo "Bootstrapping flex" ; \
@@ -48,8 +40,6 @@ bootstrap: initscan.c
cp -f ${.CURDIR}/initscan.c scan.c ; \
}
-scan.o: parse.h
-
test: check
check: $(PROG)
./$(PROG) $(LFLAGS) -t $(COMPRESSION) $(.CURDIR)/scan.l \
OpenPOWER on IntegriCloud