Files
Lexi Winter f947f58ce6 packages: rename elftoolchain to toolchain, add more things
Rename the existing "elftoolchain" package to "toolchain", and move
everything which is gated by MK_TOOLCHAIN (e.g. lex, yacc, ...) to the
toolchain package.

This means we have one package called "toolchain" which contains all the
development-related utilities which are not compilers or already part of
some other package (e.g., llvm).

Reviewed by:	des, emaste
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D50286
2025-05-28 02:16:30 +01:00

24 lines
499 B
Makefile

.include <src.opts.mk>
BYACC_SRC= ${SRCTOP}/contrib/byacc
.PATH: ${BYACC_SRC}
PACKAGE= toolchain
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_CONFIG_H -I${.CURDIR}
CFLAGS+= -DMAXTABLE=INT_MAX
YYPATCH!= cat ${BYACC_SRC}/VERSION
CFLAGS+= -DYYPATCH=${YYPATCH}
LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
MLINKS= yacc.1 byacc.1
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>