VM: munmap used by VM for itself is no longer used
[minix.git] / external / historical / nawk / bin / Makefile
blobb421c31320c87461ea3e7d32f7e4a60ecc27d7b6
1 # $NetBSD: Makefile,v 1.8 2011/08/16 10:45:37 christos Exp $
3 WARNS?= 4
4 CWARNFLAGS.clang+= -Wno-self-assign
6 .include <bsd.own.mk>
8 BINDIR?= /usr/bin
9 DIST= ${.CURDIR}/../dist
10 .PATH: ${DIST}
12 PROG= awk
13 SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
14 CPPFLAGS+= -I${DIST} -I.
15 LDADD+= -lm
16 .if !defined(HOSTPROG)
17 DPADD+= ${LIBM}
18 .endif
19 YHEADER= yes
20 .if defined(HAVE_GCC) || defined(HAVE_PCC)
21 COPTS+= -Wno-pointer-sign
22 .endif
23 COPTS.run.c += -Wno-format-nonliteral
24 COPTS.tran.c += -Wno-format-nonliteral
26 # info file originally from GNU awk 3.1.3, adjusted for nawk slightly
27 # Don't install on Minix, we don't have it.
28 #.PATH: ${NETBSDSRCDIR}/external/gpl2/gawk/dist
29 #TEXINFO= awk.info
31 # During the tools build (from src/tools/awk/Makefile),
32 # src/tools/Makefile.host changes .CURDIR back and forth between
33 # src/tools/awk and src/usr.bin/awk. For some unknown reason, including
34 # bsd.info.mk here leads to the obj dir being created at the wrong time,
35 # while .CURDIR is src/usr.bin/awk. Work around the problem by not
36 # including bsd.info.mk when MKINFO=no.
37 .if ${MKINFO} != "no"
38 .include <bsd.info.mk>
39 .endif
41 .include <bsd.prog.mk>