1 # $NetBSD: Makefile,v 1.10 2014/01/17 16:31:45 roy Exp $
4 CWARNFLAGS.clang
+= -Wno-self-assign
9 DIST
= ${.CURDIR
}/..
/dist
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.
16 .if
!defined
(HOSTPROG
)
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
26 # Don't install on Minix, we don't have it.
27 .PATH
: ${NETBSDSRCDIR}/external
/gpl2
/gawk
/dist
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.
38 .
include <bsd.
info.mk
>
41 .
include <bsd.prog.mk
>