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