1997-10-14 18:32:38 +00:00
|
|
|
# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
|
|
|
|
#
|
1997-10-26 12:20:45 +00:00
|
|
|
# $Id: Makefile,v 1.8 1997/10/15 14:01:31 ache Exp $
|
1997-10-14 18:32:38 +00:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/awk
|
|
|
|
|
1994-05-31 18:58:00 +00:00
|
|
|
PROG= awk
|
1997-10-14 18:32:38 +00:00
|
|
|
SRCS= array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
|
1997-10-15 14:01:31 +00:00
|
|
|
missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c
|
1997-10-14 18:32:38 +00:00
|
|
|
MAN1= doc/awk.1
|
|
|
|
|
|
|
|
YACC = bison -y
|
|
|
|
|
1997-10-26 12:20:45 +00:00
|
|
|
# Important for ctype macros!
|
|
|
|
CFLAGS+= -funsigned-char
|
|
|
|
|
1997-10-14 18:32:38 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../../contrib/awk
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -DGAWK -DDEFPATH=\".\"
|
|
|
|
CLEANFILES +=awktab.c y.output y.tab.h
|
1993-06-18 04:22:21 +00:00
|
|
|
|
1995-01-16 17:49:20 +00:00
|
|
|
SUBDIR+= doc
|
|
|
|
|
1995-01-11 06:14:14 +00:00
|
|
|
DPADD+= ${LIBGNUREGEX} ${LIBM}
|
|
|
|
LDADD+= -lgnuregex -lm
|
1993-06-18 04:22:21 +00:00
|
|
|
|
1997-10-14 18:32:38 +00:00
|
|
|
|
|
|
|
awktab.c: ${.CURDIR}/../../../contrib/awk/awk.y
|
|
|
|
$(YACC) -v $> && mv y.tab.c awktab.c
|
|
|
|
|
1993-06-18 04:22:21 +00:00
|
|
|
.include <bsd.prog.mk>
|