Remove building with NOCRYPTO option
[minix.git] / external / historical / nawk / bin / Makefile
blob017c441dec0bef15efc17d361588074e9c9770b2
1 # $NetBSD: Makefile,v 1.10 2014/01/17 16:31:45 roy 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 CWARNFLAGS+= -Wno-pointer-sign
21 COPTS.run.c+= -Wno-format-nonliteral
22 COPTS.tran.c+= -Wno-format-nonliteral
24 # info file originally from GNU awk 3.1.3, adjusted for nawk slightly
25 .if !defined(__MINIX)
26 # Don't install on Minix, we don't have it.
27 .PATH: ${NETBSDSRCDIR}/external/gpl2/gawk/dist
28 TEXINFO= awk.info
29 .endif # !defined(__MINIX)
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>