From 78c10f4a0daadb217541e0d36fdef43ec6ac06bc Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 10 Sep 1996 13:23:46 +0000 Subject: [PATCH] Add bmakefiles to compile bison. --- gnu/usr.bin/bison/Makefile | 22 ++++++++++++++++++++++ gnu/usr.bin/bison/data/Makefile | 21 +++++++++++++++++++++ gnu/usr.bin/bison/doc/Makefile | 7 +++++++ 3 files changed, 50 insertions(+) create mode 100644 gnu/usr.bin/bison/Makefile create mode 100644 gnu/usr.bin/bison/data/Makefile create mode 100644 gnu/usr.bin/bison/doc/Makefile diff --git a/gnu/usr.bin/bison/Makefile b/gnu/usr.bin/bison/Makefile new file mode 100644 index 000000000000..89f0ed597786 --- /dev/null +++ b/gnu/usr.bin/bison/Makefile @@ -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 diff --git a/gnu/usr.bin/bison/data/Makefile b/gnu/usr.bin/bison/data/Makefile new file mode 100644 index 000000000000..bbe22d42c5a8 --- /dev/null +++ b/gnu/usr.bin/bison/data/Makefile @@ -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 diff --git a/gnu/usr.bin/bison/doc/Makefile b/gnu/usr.bin/bison/doc/Makefile new file mode 100644 index 000000000000..c1bbd4e7fb37 --- /dev/null +++ b/gnu/usr.bin/bison/doc/Makefile @@ -0,0 +1,7 @@ +# $Id: Makefile,v 1.1 1995/10/29 09:08:35 peter Exp $ + +INFO = bison + +.PATH: ${.CURDIR}/../../../../contrib/bison + +.include