1 # $NetBSD: Makefile,v 1.8 2011/08/16 10:45:37 christos 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 .if defined
(HAVE_GCC
) || defined
(HAVE_PCC
)
21 COPTS
+= -Wno-pointer-sign
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
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
>