summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/Makefile
blob: c110f3f59024671166fc2aa73062ac77d30abfc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#	@(#)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+=	-DHAVE_FCNTL_H=1 \
		-DHAVE_MKSTEMP=1 \
		-DMAXTABLE=INT_MAX \
		-DMIXEDCASE_FILENAMES=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>
OpenPOWER on IntegriCloud