1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/usr.bin/yacc/Makefile
2014-05-06 04:22:01 +00:00

28 lines
555 B
Makefile

# @(#)Makefile 5.3 (Berkeley) 5/12/90
# $FreeBSD$
.include <src.opts.mk>
BYACC_SRC= ${.CURDIR}/../../contrib/byacc
.PATH: ${BYACC_SRC}
PROG= yacc
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
reader.c yaccpar.c symtab.c verbose.c warshall.c
CFLAGS+= -DMIXEDCASE_FILENAMES=1 \
-DHAVE_FCNTL_H=1 \
-DHAVE_MKSTEMP=1
YYPATCH!= cat ${BYACC_SRC}/VERSION
CFLAGS+= -DYYPATCH=${YYPATCH}
LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
MLINKS= yacc.1 byacc.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.prog.mk>