1# @(#)Makefile 5.3 (Berkeley) 5/12/90 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6BYACC_SRC= ${.CURDIR}/../../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+= -DMIXEDCASE_FILENAMES=1 \ 14 -DHAVE_FCNTL_H=1 \ 15 -DHAVE_MKSTEMP=1 16 17YYPATCH!= cat ${BYACC_SRC}/VERSION 18CFLAGS+= -DYYPATCH=${YYPATCH} 19 20LINKS= ${BINDIR}/yacc ${BINDIR}/byacc 21MLINKS= yacc.1 byacc.1 22 23.if ${MK_TESTS} != "no" 24SUBDIR+= tests 25.endif 26 27.include <bsd.prog.mk> 28