2011-06-20 11:43:56 +04:00
|
|
|
# $NetBSD: Makefile,v 1.16 2011/06/20 07:44:00 mrg Exp $
|
2009-04-15 02:15:16 +04:00
|
|
|
|
|
|
|
WARNS?= 1 # fails -Wshadow -Wcast-qual
|
2001-01-23 19:25:22 +03:00
|
|
|
|
2002-09-18 18:00:33 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2010-12-15 11:09:23 +03:00
|
|
|
DIST= ${NETBSDSRCDIR}/external/historical/nawk/dist/
|
|
|
|
.PATH: ${DIST}
|
2001-01-23 19:25:22 +03:00
|
|
|
|
|
|
|
PROG= awk
|
|
|
|
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
|
2010-12-15 11:09:23 +03:00
|
|
|
CPPFLAGS+= -I${DIST} -I. -DHAS_ISBLANK
|
2001-01-23 19:25:22 +03:00
|
|
|
LDADD+= -lm
|
2008-10-20 22:16:54 +04:00
|
|
|
.if !defined(HOSTPROG)
|
2001-01-23 19:25:22 +03:00
|
|
|
DPADD+= ${LIBM}
|
2008-10-20 22:16:54 +04:00
|
|
|
.endif
|
2001-01-24 01:24:20 +03:00
|
|
|
YHEADER= yes
|
2011-06-20 11:43:56 +04:00
|
|
|
.if defined(HAVE_GCC) || defined(HAVE_PCC)
|
2009-02-19 13:33:03 +03:00
|
|
|
COPTS+= -Wno-pointer-sign
|
2006-05-11 05:19:55 +04:00
|
|
|
.endif
|
2001-01-23 19:25:22 +03:00
|
|
|
|
2004-03-26 19:55:15 +03:00
|
|
|
# info file originally from GNU awk 3.1.3, adjusted for nawk slightly
|
2004-03-27 14:34:11 +03:00
|
|
|
.PATH: ${NETBSDSRCDIR}/gnu/dist/gawk
|
2003-08-03 21:19:45 +04:00
|
|
|
TEXINFO= awk.info
|
|
|
|
|
2008-10-19 23:42:23 +04:00
|
|
|
# During the tools build (from src/tools/awk/Makefile),
|
|
|
|
# src/tools/Makefile.host changes .CURDIR back and forth between
|
|
|
|
# src/tools/awk and src/usr.bin/awk. For some unknown reason, including
|
|
|
|
# bsd.info.mk here leads to the obj dir being created at the wrong time,
|
|
|
|
# while .CURDIR is src/usr.bin/awk. Work around the problem by not
|
|
|
|
# including bsd.info.mk when MKINFO=no.
|
|
|
|
.if ${MKINFO} != "no"
|
2003-08-03 21:19:45 +04:00
|
|
|
.include <bsd.info.mk>
|
2008-10-19 23:42:23 +04:00
|
|
|
.endif
|
|
|
|
|
2001-01-23 19:25:22 +03:00
|
|
|
.include <bsd.prog.mk>
|