1 2.include <src.opts.mk> 3 4BYACC_SRC= ${SRCTOP}/contrib/byacc 5.PATH: ${BYACC_SRC} 6 7PROG= yacc 8SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \ 9 reader.c yaccpar.c symtab.c verbose.c warshall.c 10 11CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} 12CFLAGS+= -DMAXTABLE=INT_MAX 13 14YYPATCH!= cat ${BYACC_SRC}/VERSION 15CFLAGS+= -DYYPATCH=${YYPATCH} 16 17LINKS= ${BINDIR}/yacc ${BINDIR}/byacc 18MLINKS= yacc.1 byacc.1 19 20HAS_TESTS= 21SUBDIR.${MK_TESTS}+= tests 22 23.include <bsd.prog.mk> 24