1 # $NetBSD: Makefile,v 1.13 2009/02/19 10:33:03 njoly Exp $
3 WARNS?
= 1 # fails -Wshadow -Wcast-qual
7 DIST
= ${NETBSDSRCDIR}/dist
11 SRCS
= awkgram.y b.c
lex.c lib.c main.c parse.c proctab.c run.c tran.c
12 CPPFLAGS
+= -I
${DIST}/nawk
-I.
-DHAS_ISBLANK
14 .if
!defined
(HOSTPROG
)
18 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
19 COPTS
+= -Wno-pointer-sign
22 # info file originally from GNU awk 3.1.3, adjusted for nawk slightly
23 .PATH
: ${NETBSDSRCDIR}/gnu
/dist/gawk
26 # During the tools build (from src/tools/awk/Makefile),
27 # src/tools/Makefile.host changes .CURDIR back and forth between
28 # src/tools/awk and src/usr.bin/awk. For some unknown reason, including
29 # bsd.info.mk here leads to the obj dir being created at the wrong time,
30 # while .CURDIR is src/usr.bin/awk. Work around the problem by not
31 # including bsd.info.mk when MKINFO=no.
33 .
include <bsd.
info.mk
>
36 .
include <bsd.prog.mk
>