1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Add bmakefiles to compile bison.

This commit is contained in:
Peter Wemm 1996-09-10 13:23:46 +00:00
parent ca1e085bd0
commit 78c10f4a0d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18213
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# $Id$
.PATH: ${.CURDIR}/../../../contrib/bison
SUBDIR= data doc
PROG= bison
MAN1= bison.1
DATADIR= ${SHAREDIR}/misc
CFLAGS+= -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ALLOCA=1 \
-DHAVE_STRERROR=1
CFLAGS+= -DXPFILE=\"${DATADIR}/bison.simple\"
CFLAGS+= -DXPFILE1=\"${DATADIR}/bison.hairy\"
SRCS+= LR0.c allocate.c closure.c conflicts.c derives.c files.c \
getargs.c gram.c lalr.c lex.c main.c nullable.c output.c \
print.c reader.c reduce.c symtab.c warshall.c version.c \
getopt.c getopt1.c
.include <bsd.prog.mk>

View File

@ -0,0 +1,21 @@
# $Id$
BISONDIR=${.CURDIR}/../../../../contrib/bison
.PATH: ${BISONDIR}
DATADIR= ${SHAREDIR}/misc
CLEANFILES+= bison.s1
all: bison.s1
# Copy bison.simple, inserting directory name into the #line commands.
bison.s1: bison.simple
sed -e "/^#line/ s|bison|${DATADIR}/bison|" \
< ${BISONDIR}/bison.simple > bison.s1
install:
${INSTALL} -c -o bin -g bin -m 444 bison.s1 ${DATADIR}/bison.simple
${INSTALL} -c -o bin -g bin -m 444 ${BISONDIR}/bison.hairy ${DATADIR}
.include <bsd.prog.mk>

View File

@ -0,0 +1,7 @@
# $Id: Makefile,v 1.1 1995/10/29 09:08:35 peter Exp $
INFO = bison
.PATH: ${.CURDIR}/../../../../contrib/bison
.include <bsd.info.mk>