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_FCNTL_H=1 \ 14 -DHAVE_MKSTEMP=1 \ 15 -DMAXTABLE=INT_MAX \ 16 -DMIXEDCASE_FILENAMES=1 17 18YYPATCH!= cat ${BYACC_SRC}/VERSION 19CFLAGS+= -DYYPATCH=${YYPATCH} 20 21LINKS= ${BINDIR}/yacc ${BINDIR}/byacc 22MLINKS= yacc.1 byacc.1 23 24HAS_TESTS= 25SUBDIR.${MK_TESTS}+= tests 26 27.include <bsd.prog.mk> 28