summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2014-10-11 23:02:03 +0000
committerrodrigc <rodrigc@FreeBSD.org>2014-10-11 23:02:03 +0000
commit094ca4bfbcd270c760af9b1a1e8d43982b39f8bf (patch)
treed3f576f2e30fa6f90c65ccd4695c27550754fd08 /usr.bin/yacc
parent7f559d779a9492c566771991039a750f92a94872 (diff)
downloadFreeBSD-src-094ca4bfbcd270c760af9b1a1e8d43982b39f8bf.zip
FreeBSD-src-094ca4bfbcd270c760af9b1a1e8d43982b39f8bf.tar.gz
Merge: r258931
Add missing bits from the vendor's 2005-05-04 change to contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/yacc/Makefile b/usr.bin/yacc/Makefile
index c9c8814..03f0d01 100644
--- a/usr.bin/yacc/Makefile
+++ b/usr.bin/yacc/Makefile
@@ -3,7 +3,8 @@
.include <bsd.own.mk>
-.PATH: ${.CURDIR}/../../contrib/byacc
+BYACC_SRC= ${.CURDIR}/../../contrib/byacc
+.PATH: ${BYACC_SRC}
PROG= yacc
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
@@ -12,7 +13,10 @@ SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
CFLAGS+= -DMIXEDCASE_FILENAMES=1 \
-DHAVE_FCNTL_H=1 \
-DHAVE_MKSTEMP=1
-
+
+YYPATCH!= cat ${BYACC_SRC}/VERSION
+CFLAGS+= -DYYPATCH=${YYPATCH}
+
LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
MLINKS= yacc.1 byacc.1
OpenPOWER on IntegriCloud