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