head	1.14;
access;
symbols
	netbsd-11-0-RC4:1.14
	netbsd-11-0-RC3:1.14
	netbsd-11-0-RC2:1.14
	netbsd-11-0-RC1:1.14
	perseant-exfatfs-base-20250801:1.14
	netbsd-11:1.14.0.2
	netbsd-11-base:1.14
	netbsd-10-1-RELEASE:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.10
	perseant-exfatfs-base:1.11
	netbsd-8-3-RELEASE:1.10
	netbsd-9-4-RELEASE:1.10
	netbsd-10-0-RELEASE:1.11
	netbsd-10-0-RC6:1.11
	netbsd-10-0-RC5:1.11
	netbsd-10-0-RC4:1.11
	netbsd-10-0-RC3:1.11
	netbsd-10-0-RC2:1.11
	netbsd-10-0-RC1:1.11
	netbsd-10:1.11.0.8
	netbsd-10-base:1.11
	netbsd-9-3-RELEASE:1.10
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.6
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.10
	cjep_staticlib_x:1.11.0.4
	cjep_staticlib_x-base:1.11
	netbsd-9-1-RELEASE:1.10
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	is-mlppp:1.11.0.2
	is-mlppp-base:1.11
	phil-wifi-20200406:1.11
	netbsd-8-2-RELEASE:1.10
	netbsd-9-0-RELEASE:1.10
	netbsd-9-0-RC2:1.10
	netbsd-9-0-RC1:1.10
	phil-wifi-20191119:1.10
	netbsd-9:1.10.0.28
	netbsd-9-base:1.10
	phil-wifi-20190609:1.10
	netbsd-8-1-RELEASE:1.10
	netbsd-8-1-RC1:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.10
	netbsd-8-0-RELEASE:1.10
	phil-wifi:1.10.0.26
	phil-wifi-base:1.10
	pgoyette-compat-0625:1.10
	netbsd-8-0-RC2:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	netbsd-8-0-RC1:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.10.0.24
	pgoyette-compat-base:1.10
	netbsd-7-1-1-RELEASE:1.10
	matt-nb8-mediatek:1.10.0.22
	matt-nb8-mediatek-base:1.10
	perseant-stdc-iso10646:1.10.0.20
	perseant-stdc-iso10646-base:1.10
	netbsd-8:1.10.0.18
	netbsd-8-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.16
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	netbsd-7-1:1.10.0.14
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.10.0.12
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	netbsd-7-1-RC1:1.10
	pgoyette-localcount-20161104:1.10
	netbsd-7-0-2-RELEASE:1.10
	localcount-20160914:1.10
	netbsd-7-nhusb:1.10.0.10
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.8
	pgoyette-localcount-base:1.10
	netbsd-7-0-1-RELEASE:1.10
	netbsd-7-0:1.10.0.6
	netbsd-7-0-RELEASE:1.10
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.10.0.4
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.8.2.1
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.10.0.2
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.9
	riastradh-drm2-base1:1.9
	riastradh-drm2:1.9.0.4
	riastradh-drm2-base:1.9
	netbsd-6-1:1.8.0.10
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.9.0.6
	agc-symver-base:1.9
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.9
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.9
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.9
	netbsd-6-0:1.8.0.8
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.9.0.2
	tls-maxphys-base:1.10
	matt-nb6-plus:1.8.0.6
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-6:1.8.0.4
	netbsd-6-base:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.2
	yamt-pagecache-base:1.8
	cherry-xenmp:1.5.0.2
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.2
	bouyer-quota2-base:1.4
	matt-mips64-premerge-20101231:1.4;
locks; strict;
comment	@# @;


1.14
date	2024.09.20.07.49.31;	author rin;	state Exp;
branches;
next	1.13;
commitid	TqR9zJdfHpDc9wqF;

1.13
date	2024.08.18.14.10.42;	author christos;	state Exp;
branches;
next	1.12;
commitid	D6sranGsNkwhljmF;

1.12
date	2024.08.17.22.22.28;	author christos;	state Exp;
branches;
next	1.11;
commitid	jXFE1hZ62YzW5emF;

1.11
date	2020.02.18.21.12.21;	author christos;	state Exp;
branches
	1.11.10.1;
next	1.10;
commitid	ZoGMm81D7eKlucXB;

1.10
date	2014.01.17.16.31.45;	author roy;	state Exp;
branches
	1.10.26.1;
next	1.9;
commitid	xt6ni5vDz1knoulx;

1.9
date	2012.08.10.16.05.26;	author joerg;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2011.08.16.10.45.37;	author christos;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2011.08.09.13.06.31;	author joerg;	state Exp;
branches;
next	1.6;

1.6
date	2011.06.20.07.43.57;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2011.05.26.12.56.27;	author joerg;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2010.12.13.06.30.44;	author mrg;	state Exp;
branches;
next	1.3;

1.3
date	2010.12.12.19.01.03;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	2010.08.26.16.21.25;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2010.08.26.14.57.16;	author christos;	state Exp;
branches;
next	;

1.11.10.1
date	2025.08.02.05.49.42;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.10.26.1
date	2020.04.08.14.06.48;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.9.2.1
date	2014.08.19.23.59.40;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.8.2.1
date	2012.10.30.18.57.59;	author yamt;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2014.05.22.14.07.36;	author yamt;	state Exp;
branches;
next	;
commitid	DfoBITrwh1zSzxBx;

1.5.2.1
date	2011.06.23.14.18.33;	author cherry;	state Exp;
branches;
next	;


desc
@@


1.14
log
@nawk: Go back from bin/awk to bin

Switching b/w -HEAD and netbsd-10 ends up with empty bin/awk
directory for git mirror. NFC otherwise.
@
text
@#	$NetBSD: Makefile,v 1.3 2024/08/18 14:10:43 christos Exp $

WARNS?= 4
CWARNFLAGS.clang+=	-Wno-self-assign

.include <bsd.own.mk>

BINDIR?= /usr/bin
DIST=	${.CURDIR}/../dist
.PATH:	${DIST}

PROG=	awk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
CPPFLAGS+=	-I${DIST} -I. -DHAS_ISBLANK
LDADD+=	-lm
.if !defined(HOSTPROG)
DPADD+=	${LIBM}
.endif
YHEADER=	yes
CWARNFLAGS+=	-Wno-pointer-sign
COPTS.run.c+=	-Wno-format-nonliteral
COPTS.tran.c+=	-Wno-format-nonliteral

# info file originally from GNU awk 3.1.3, adjusted for nawk slightly
.PATH:	${NETBSDSRCDIR}/external/gpl2/gawk/dist
TEXINFO=        awk.info

# During the tools build (from src/tools/awk/Makefile),
# src/tools/Makefile.host changes .CURDIR back and forth between
# src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
# bsd.info.mk here leads to the obj dir being created at the wrong time,
# while .CURDIR is src/usr.bin/awk.  Work around the problem by not
# including bsd.info.mk when MKINFO=no.
.if ${MKINFO} != "no"
.include <bsd.info.mk>
.endif

.include <bsd.prog.mk>
@


1.13
log
@remove maketab and go back to using a pre-fabricated proctab.c. Not worth
going all the way an creating a tool for it.
@
text
@d1 4
a4 1
#	$NetBSD: Makefile,v 1.12 2024/08/17 22:22:28 christos Exp $
d8 29
a36 1
SUBDIR = awk
d38 1
a38 1
.include <bsd.subdir.mk>
@


1.12
log
@Marge conflicts between 2020-02-18 and 2024-08-17
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2020/02/18 21:12:21 christos Exp $
d5 1
a5 1
SUBDIR = maketab .WAIT awk
@


1.11
log
@merge conflicts
@
text
@d1 1
a1 4
#	$NetBSD: Makefile,v 1.10 2014/01/17 16:31:45 roy Exp $

WARNS?= 4
CWARNFLAGS.clang+=	-Wno-self-assign
d5 1
a5 29
BINDIR?= /usr/bin
DIST=	${.CURDIR}/../dist
.PATH:	${DIST}

PROG=	awk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
CPPFLAGS+=	-I${DIST} -I. -DHAS_ISBLANK
LDADD+=	-lm
.if !defined(HOSTPROG)
DPADD+=	${LIBM}
.endif
YHEADER=	yes
CWARNFLAGS+=	-Wno-pointer-sign
COPTS.run.c+=	-Wno-format-nonliteral
COPTS.tran.c+=	-Wno-format-nonliteral

# info file originally from GNU awk 3.1.3, adjusted for nawk slightly
.PATH:	${NETBSDSRCDIR}/external/gpl2/gawk/dist
TEXINFO=        awk.info

# During the tools build (from src/tools/awk/Makefile),
# src/tools/Makefile.host changes .CURDIR back and forth between
# src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
# bsd.info.mk here leads to the obj dir being created at the wrong time,
# while .CURDIR is src/usr.bin/awk.  Work around the problem by not
# including bsd.info.mk when MKINFO=no.
.if ${MKINFO} != "no"
.include <bsd.info.mk>
.endif
d7 1
a7 1
.include <bsd.prog.mk>
@


1.11.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2024/09/20 07:49:31 rin Exp $
@


1.10
log
@Fix build with clang
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2012/08/10 16:05:26 joerg Exp $
d14 1
a14 1
CPPFLAGS+=	-I${DIST} -I.
@


1.10.26.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d14 1
a14 1
CPPFLAGS+=	-I${DIST} -I. -DHAS_ISBLANK
@


1.9
log
@Deal with optional HAVE_GCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/08/16 10:45:37 christos Exp $
d20 3
a22 3
COPTS+=	-Wno-pointer-sign
COPTS.run.c += -Wno-format-nonliteral
COPTS.tran.c += -Wno-format-nonliteral
@


1.9.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d20 3
a22 3
CWARNFLAGS+=	-Wno-pointer-sign
COPTS.run.c+=	-Wno-format-nonliteral
COPTS.tran.c+=	-Wno-format-nonliteral
@


1.8
log
@document non-literal format strings
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2011/08/09 13:06:31 joerg Exp $
a19 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
a20 1
.endif
@


1.8.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/08/16 10:45:37 christos Exp $
d20 1
d22 1
@


1.8.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8.2.1 2012/10/30 18:57:59 yamt Exp $
d20 3
a22 3
CWARNFLAGS+=	-Wno-pointer-sign
COPTS.run.c+=	-Wno-format-nonliteral
COPTS.tran.c+=	-Wno-format-nonliteral
@


1.7
log
@No longer needs -Wno-array-bounds with clang.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/06/20 07:43:57 mrg Exp $
d23 2
@


1.6
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2011/05/26 12:56:27 joerg Exp $
d4 1
a4 1
CWARNFLAGS.clang+=	-Wno-array-bounds -Wno-self-assign
@


1.5
log
@Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2010/12/13 06:30:44 mrg Exp $
d20 1
a20 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.5.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/06/20 07:43:57 mrg Exp $
d20 1
a20 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.4
log
@reinstall awk.texi.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/12/12 19:01:03 christos Exp $
d4 1
@


1.3
log
@Don't build awk.info because matt removed it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2010/08/26 16:21:25 christos Exp $
d23 14
@


1.2
log
@Install in /usr/bin
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2010/08/26 14:57:16 christos Exp $
a22 14
# info file originally from GNU awk 3.1.3, adjusted for nawk slightly
.PATH:	${NETBSDSRCDIR}/gnu/dist/gawk
TEXINFO=        awk.info

# During the tools build (from src/tools/awk/Makefile),
# src/tools/Makefile.host changes .CURDIR back and forth between
# src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
# bsd.info.mk here leads to the obj dir being created at the wrong time,
# while .CURDIR is src/usr.bin/awk.  Work around the problem by not
# including bsd.info.mk when MKINFO=no.
.if ${MKINFO} != "no"
.include <bsd.info.mk>
.endif

@


1.1
log
@awk glue
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/04/14 22:15:17 lukem Exp $
d7 1
@

