1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 5.3 (Berkeley) 5/12/90
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2014-03-16 08:04:06 +00:00
|
|
|
|
2017-03-12 18:58:44 +00:00
|
|
|
BYACC_SRC= ${SRCTOP}/contrib/byacc
|
2013-12-04 19:15:56 +00:00
|
|
|
.PATH: ${BYACC_SRC}
|
2012-05-21 13:31:26 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= yacc
|
2014-04-23 05:57:45 +00:00
|
|
|
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
|
|
|
|
reader.c yaccpar.c symtab.c verbose.c warshall.c
|
2012-05-21 13:31:26 +00:00
|
|
|
|
2014-11-13 00:46:53 +00:00
|
|
|
CFLAGS+= -DHAVE_FCNTL_H=1 \
|
|
|
|
-DHAVE_MKSTEMP=1 \
|
|
|
|
-DMAXTABLE=INT_MAX \
|
|
|
|
-DMIXEDCASE_FILENAMES=1
|
2013-12-04 19:15:56 +00:00
|
|
|
|
|
|
|
YYPATCH!= cat ${BYACC_SRC}/VERSION
|
|
|
|
CFLAGS+= -DYYPATCH=${YYPATCH}
|
|
|
|
|
2001-04-07 11:21:35 +00:00
|
|
|
LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
|
|
|
|
MLINKS= yacc.1 byacc.1
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-03-16 08:04:06 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|