diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-21 13:31:26 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-21 13:31:26 +0000 |
commit | 913116490c54faeb5b24c88cf4cb4bb2bfb9fa19 (patch) | |
tree | c752c1d24d195a334247f36888203a7e2bce0837 /usr.bin/yacc/Makefile | |
parent | 798e1b56b87cda33e4ee6dab500f91a7a6e99054 (diff) | |
parent | 26a93fe4b6432f31b18a5bdcc06b4225f525d757 (diff) | |
download | FreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.zip FreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.tar.gz |
Import byacc from invisible island, it brings us lots of compatibilities with
bison, keeping full compatibility with our previous yacc implementation.
Also bring the ability to create reentrant parser
This fix bin/140309 [1]
PR: bin/140309 [1]
Submitted by: Philippe Pepiot <ksh@philpep.org> [1]
Approved by: des (mentor)
MFC after: 1 month
Diffstat (limited to 'usr.bin/yacc/Makefile')
-rw-r--r-- | usr.bin/yacc/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/usr.bin/yacc/Makefile b/usr.bin/yacc/Makefile index e8b1024..677486f 100644 --- a/usr.bin/yacc/Makefile +++ b/usr.bin/yacc/Makefile @@ -1,11 +1,18 @@ # @(#)Makefile 5.3 (Berkeley) 5/12/90 # $FreeBSD$ +.PATH: ${.CURDIR}/../../contrib/byacc + PROG= yacc -SRCS= closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \ - skeleton.c symtab.c verbose.c warshall.c -SCRIPTS=yyfix.sh -MAN= yacc.1 yyfix.1 +SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c output.c \ + reader.c skeleton.c symtab.c verbose.c warshall.c + +CFLAGS+= -DMIXEDCASE_FILENAMES=1 \ + -DCC_HAS_PROTOS=1 \ + -DHAVE_FCNTL_H=1 \ + -DHAVE_ATEXIT=1 \ + -DHAVE_MKSTEMP=1 + LINKS= ${BINDIR}/yacc ${BINDIR}/byacc MLINKS= yacc.1 byacc.1 |