2003-10-06 20:50:39 +04:00
|
|
|
# $NetBSD: Makefile,v 1.17 2003/10/06 16:50:39 wiz Exp $
|
1999-06-14 02:21:58 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-09-19 07:09:31 +04:00
|
|
|
DIST= ${NETBSDSRCDIR}/gnu/dist
|
2003-02-14 11:25:36 +03:00
|
|
|
IDIST= ${DIST}/gawk
|
|
|
|
.PATH: ${IDIST} ${IDIST}/doc
|
1993-08-02 21:28:42 +04:00
|
|
|
|
1993-07-08 02:18:43 +04:00
|
|
|
PROG= awk
|
2003-10-06 20:50:39 +04:00
|
|
|
SRCS= array.c awkgram.y builtin.c eval.c ext.c \
|
|
|
|
field.c gawkmisc.c io.c main.c msg.c node.c profile.c \
|
|
|
|
random.c re.c regex.c replace.c version.c
|
|
|
|
|
1999-06-14 02:21:58 +04:00
|
|
|
MLINKS= awk.1
|
|
|
|
|
|
|
|
TEXINFO= awk.info
|
|
|
|
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -DDEFPATH=\".:/usr/share/awk\" \
|
2003-10-06 20:50:39 +04:00
|
|
|
-DGAWK -I${.CURDIR} -I${IDIST} \
|
|
|
|
-DLOCALEDIR=\"/usr/share/locale\" \
|
|
|
|
-DLOCALE_ALIAS_PATH=\"/usr/share/locale\"
|
|
|
|
DPADD+= ${LIBINTL} ${LIBM}
|
|
|
|
LDADD+= -lintl -lm
|
1999-06-14 02:21:58 +04:00
|
|
|
CLEANFILES+= ${PROG}.1 ${PROG}.texi
|
|
|
|
|
2002-03-31 01:31:13 +03:00
|
|
|
.if ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF"
|
|
|
|
COPTS+= -O1
|
|
|
|
.endif
|
|
|
|
|
1999-06-14 02:21:58 +04:00
|
|
|
${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
|
|
|
|
1999-06-14 02:21:58 +04:00
|
|
|
.include <bsd.info.mk>
|
1993-07-08 02:18:43 +04:00
|
|
|
.include <bsd.prog.mk>
|