summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-10 13:23:46 +0000
committerpeter <peter@FreeBSD.org>1996-09-10 13:23:46 +0000
commitb40a8eb87af24974ece6b1188765f27103396bd4 (patch)
tree66bd3065e206e07acfd5f01a5634965a5d4216a1 /gnu/usr.bin
parentbe898e27976c5d2052ded75d4011bce82c7bb3f4 (diff)
downloadFreeBSD-src-b40a8eb87af24974ece6b1188765f27103396bd4.zip
FreeBSD-src-b40a8eb87af24974ece6b1188765f27103396bd4.tar.gz
Add bmakefiles to compile bison.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/bison/Makefile22
-rw-r--r--gnu/usr.bin/bison/data/Makefile21
-rw-r--r--gnu/usr.bin/bison/doc/Makefile7
3 files changed, 50 insertions, 0 deletions
diff --git a/gnu/usr.bin/bison/Makefile b/gnu/usr.bin/bison/Makefile
new file mode 100644
index 0000000..89f0ed5
--- /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 <bsd.prog.mk>
diff --git a/gnu/usr.bin/bison/data/Makefile b/gnu/usr.bin/bison/data/Makefile
new file mode 100644
index 0000000..bbe22d42
--- /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 <bsd.prog.mk>
diff --git a/gnu/usr.bin/bison/doc/Makefile b/gnu/usr.bin/bison/doc/Makefile
new file mode 100644
index 0000000..c1bbd4e
--- /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 <bsd.info.mk>
OpenPOWER on IntegriCloud