NetBSD/gnu/usr.bin/gawk/Makefile

36 lines
737 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2003/02/14 08:25:36 wiz Exp $
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/gnu/dist
IDIST= ${DIST}/gawk
.PATH: ${IDIST} ${IDIST}/doc
1993-07-08 02:18:43 +04:00
PROG= awk
SRCS= alloca.c array.c awk.y builtin.c dfa.c eval.c field.c \
2000-11-01 18:27:46 +03:00
gawkmisc.c io.c main.c missing.c msg.c \
node.c random.c re.c regex.c version.c
MLINKS= awk.1
TEXINFO= awk.info
CPPFLAGS+= -DHAVE_CONFIG_H -DDEFPATH=\".:/usr/share/awk\" \
-I${.CURDIR} -I${IDIST}
LDADD= -lm
CLEANFILES+= ${PROG}.1 ${PROG}.texi
.if ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF"
COPTS+= -O1
.endif
${PROG}.1: gawk.1
@-rm -f $@
cp $> $@
${PROG}.texi: gawk.texi
@-rm -f $@
sed -e 's/gawk.info/awk.info/g' <$> >$@
1993-07-08 02:18:43 +04:00
.include <bsd.info.mk>
1993-07-08 02:18:43 +04:00
.include <bsd.prog.mk>