No empty .Rs/.Re
[netbsd-mini2440.git] / usr.bin / awk / Makefile
blobe9a6856d6b0a16ee42b25d2bcb383f8bfdd2293e
1 # $NetBSD: Makefile,v 1.13 2009/02/19 10:33:03 njoly Exp $
3 WARNS?= 1 # fails -Wshadow -Wcast-qual
5 .include <bsd.own.mk>
7 DIST= ${NETBSDSRCDIR}/dist
8 .PATH: ${DIST}/nawk
10 PROG= awk
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
13 LDADD+= -lm
14 .if !defined(HOSTPROG)
15 DPADD+= ${LIBM}
16 .endif
17 YHEADER= yes
18 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
19 COPTS+= -Wno-pointer-sign
20 .endif
22 # info file originally from GNU awk 3.1.3, adjusted for nawk slightly
23 .PATH: ${NETBSDSRCDIR}/gnu/dist/gawk
24 TEXINFO= awk.info
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.
32 .if ${MKINFO} != "no"
33 .include <bsd.info.mk>
34 .endif
36 .include <bsd.prog.mk>