summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjraynard <jraynard@FreeBSD.org>1997-10-14 18:32:38 +0000
committerjraynard <jraynard@FreeBSD.org>1997-10-14 18:32:38 +0000
commitf239670138341525c55ec5ee2f164d1d9c3a66ad (patch)
tree61cc3118134fc0b8c765a4c8e09abd63d948d2ec /gnu
parent6db12e8fe98fa53c73801a8d9c6dc559eb2a65fa (diff)
downloadFreeBSD-src-f239670138341525c55ec5ee2f164d1d9c3a66ad.zip
FreeBSD-src-f239670138341525c55ec5ee2f164d1d9c3a66ad.tar.gz
Makefile for contributed version of awk.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/awk/Makefile26
-rw-r--r--gnu/usr.bin/awk/doc/Makefile7
2 files changed, 27 insertions, 6 deletions
diff --git a/gnu/usr.bin/awk/Makefile b/gnu/usr.bin/awk/Makefile
index 1fa87cc..1af817f 100644
--- a/gnu/usr.bin/awk/Makefile
+++ b/gnu/usr.bin/awk/Makefile
@@ -1,13 +1,29 @@
+# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
+#
+# $Id$
+
+.include "${.CURDIR}/../Makefile.inc"
+
+.PATH: ${.CURDIR}/../../../contrib/awk
+
PROG= awk
-SRCS= main.c eval.c builtin.c msg.c iop.c io.c field.c getopt1.c \
- getopt.c array.c \
- node.c version.c re.c awk.c dfa.c
-CFLAGS+=-I${.CURDIR} -DGAWK
-CLEANFILES+=awk.c y.tab.h
+SRCS= array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
+ missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c random.c
+MAN1= doc/awk.1
+
+YACC = bison -y
+
+CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../../contrib/awk
+CFLAGS+= -DHAVE_CONFIG_H -DGAWK -DDEFPATH=\".\"
+CLEANFILES +=awktab.c y.output y.tab.h
SUBDIR+= doc
DPADD+= ${LIBGNUREGEX} ${LIBM}
LDADD+= -lgnuregex -lm
+
+awktab.c: ${.CURDIR}/../../../contrib/awk/awk.y
+ $(YACC) -v $> && mv y.tab.c awktab.c
+
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/awk/doc/Makefile b/gnu/usr.bin/awk/doc/Makefile
index b49ef8b..456e6e0 100644
--- a/gnu/usr.bin/awk/doc/Makefile
+++ b/gnu/usr.bin/awk/doc/Makefile
@@ -1,6 +1,11 @@
+# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
+#
+# $Id: Makefile,v 1.5 1997/10/11 17:05:07 jraynard Exp $
+
+.PATH: ${.CURDIR}/../../../../contrib/awk/doc
+
INFO = gawk
INFOSECTION= "System Utilities"
INFOENTRY_gawk= "* GAWK: (gawk). The GNU AWK language interpreter manual."
-
.include <bsd.info.mk>
OpenPOWER on IntegriCloud