Makefile for contributed version of awk.

This commit is contained in:
James Raynard 1997-10-14 18:32:38 +00:00
parent 60e8807fae
commit 4475598f18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30417
2 changed files with 27 additions and 6 deletions

View File

@ -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>

View File

@ -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>