1997-10-14 20:32:38 +02:00
|
|
|
# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
|
|
|
|
#
|
1997-10-15 16:01:31 +02:00
|
|
|
# $Id: Makefile,v 1.7 1997/10/14 18:32:33 jraynard Exp $
|
1997-10-14 20:32:38 +02:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/awk
|
|
|
|
|
1994-05-31 20:58:00 +02:00
|
|
|
PROG= awk
|
1997-10-14 20:32:38 +02:00
|
|
|
SRCS= array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
|
1997-10-15 16:01:31 +02:00
|
|
|
missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c
|
1997-10-14 20:32:38 +02:00
|
|
|
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
|
1993-06-18 06:22:21 +02:00
|
|
|
|
1995-01-16 18:49:20 +01:00
|
|
|
SUBDIR+= doc
|
|
|
|
|
1995-01-11 07:14:14 +01:00
|
|
|
DPADD+= ${LIBGNUREGEX} ${LIBM}
|
|
|
|
LDADD+= -lgnuregex -lm
|
1993-06-18 06:22:21 +02:00
|
|
|
|
1997-10-14 20:32:38 +02:00
|
|
|
|
|
|
|
awktab.c: ${.CURDIR}/../../../contrib/awk/awk.y
|
|
|
|
$(YACC) -v $> && mv y.tab.c awktab.c
|
|
|
|
|
1993-06-18 06:22:21 +02:00
|
|
|
.include <bsd.prog.mk>
|