head	1.17;
access;
symbols
	perseant-exfatfs-base-20250801:1.17
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.16
	perseant-exfatfs-base:1.17
	cjep_sun2x:1.17.0.14
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	cjep_staticlib_x:1.17.0.12
	cjep_staticlib_x-base:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	phil-wifi-20200406:1.17
	pgoyette-compat-merge-20190127:1.17
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.16
	pgoyette-compat-0728:1.17
	pgoyette-compat-0625:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	netbsd-7-1-2-RELEASE:1.16
	pgoyette-compat:1.17.0.10
	pgoyette-compat-base:1.17
	netbsd-7-1-1-RELEASE:1.16
	perseant-stdc-iso10646:1.17.0.8
	perseant-stdc-iso10646-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.6
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	netbsd-7-1:1.16.0.26
	netbsd-7-1-RELEASE:1.16
	netbsd-7-1-RC2:1.16
	netbsd-7-nhusb-base-20170116:1.16
	bouyer-socketcan:1.17.0.4
	bouyer-socketcan-base:1.17
	pgoyette-localcount-20170107:1.17
	netbsd-7-1-RC1:1.16
	pgoyette-localcount-20161104:1.17
	netbsd-7-0-2-RELEASE:1.16
	localcount-20160914:1.17
	netbsd-7-nhusb:1.16.0.24
	netbsd-7-nhusb-base:1.16
	pgoyette-localcount-20160806:1.17
	pgoyette-localcount-20160726:1.17
	pgoyette-localcount:1.17.0.2
	pgoyette-localcount-base:1.17
	netbsd-7-0-1-RELEASE:1.16
	netbsd-7-0:1.16.0.22
	netbsd-7-0-RELEASE:1.16
	netbsd-7-0-RC3:1.16
	netbsd-7-0-RC2:1.16
	netbsd-7-0-RC1:1.16
	netbsd-5-2-3-RELEASE:1.12
	netbsd-5-1-5-RELEASE:1.12
	netbsd-6-0-6-RELEASE:1.16
	netbsd-6-1-5-RELEASE:1.16
	netbsd-7:1.16.0.20
	netbsd-7-base:1.16
	yamt-pagecache-base9:1.16
	yamt-pagecache-tag8:1.16
	netbsd-6-1-4-RELEASE:1.16
	netbsd-6-0-5-RELEASE:1.16
	tls-earlyentropy:1.16.0.18
	tls-earlyentropy-base:1.16
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.16
	riastradh-drm2-base3:1.16
	netbsd-6-1-3-RELEASE:1.16
	netbsd-6-0-4-RELEASE:1.16
	netbsd-5-2-2-RELEASE:1.12
	netbsd-5-1-4-RELEASE:1.12
	netbsd-6-1-2-RELEASE:1.16
	netbsd-6-0-3-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.12
	netbsd-5-1-3-RELEASE:1.12
	netbsd-6-1-1-RELEASE:1.16
	riastradh-drm2-base2:1.16
	riastradh-drm2-base1:1.16
	riastradh-drm2:1.16.0.12
	riastradh-drm2-base:1.16
	netbsd-6-1:1.16.0.16
	netbsd-6-0-2-RELEASE:1.16
	netbsd-6-1-RELEASE:1.16
	netbsd-6-1-RC4:1.16
	netbsd-6-1-RC3:1.16
	agc-symver:1.16.0.14
	agc-symver-base:1.16
	netbsd-6-1-RC2:1.16
	netbsd-6-1-RC1:1.16
	yamt-pagecache-base8:1.16
	netbsd-5-2:1.12.0.14
	netbsd-6-0-1-RELEASE:1.16
	yamt-pagecache-base7:1.16
	netbsd-5-2-RELEASE:1.12
	netbsd-5-2-RC1:1.12
	matt-nb6-plus-nbase:1.16
	yamt-pagecache-base6:1.16
	netbsd-6-0:1.16.0.10
	netbsd-6-0-RELEASE:1.16
	netbsd-6-0-RC2:1.16
	tls-maxphys:1.16.0.8
	tls-maxphys-base:1.16
	matt-nb6-plus:1.16.0.6
	matt-nb6-plus-base:1.16
	netbsd-6-0-RC1:1.16
	yamt-pagecache-base5:1.16
	yamt-pagecache-base4:1.16
	netbsd-6:1.16.0.4
	netbsd-6-base:1.16
	netbsd-5-1-2-RELEASE:1.12
	netbsd-5-1-1-RELEASE:1.12
	yamt-pagecache-base3:1.16
	yamt-pagecache-base2:1.16
	yamt-pagecache:1.16.0.2
	yamt-pagecache-base:1.16
	cherry-xenmp:1.15.0.4
	cherry-xenmp-base:1.15
	bouyer-quota2-nbase:1.15
	bouyer-quota2:1.15.0.2
	bouyer-quota2-base:1.15
	matt-mips64-premerge-20101231:1.15
	matt-nb5-mips64-premerge-20101231:1.12
	matt-nb5-pq3:1.12.0.12
	matt-nb5-pq3-base:1.12
	netbsd-5-1:1.12.0.10
	netbsd-5-1-RELEASE:1.12
	netbsd-5-1-RC4:1.12
	matt-nb5-mips64-k15:1.12
	netbsd-5-1-RC3:1.12
	netbsd-5-1-RC2:1.12
	netbsd-5-1-RC1:1.12
	netbsd-5-0-2-RELEASE:1.12
	matt-nb5-mips64-premerge-20091211:1.12
	matt-premerge-20091211:1.14
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12
	matt-nb4-mips64-k7-u2a-k9b:1.12
	matt-nb5-mips64-u1-k1-k5:1.12
	matt-nb5-mips64:1.12.0.8
	netbsd-5-0-1-RELEASE:1.12
	jym-xensuspend-nbase:1.14
	netbsd-5-0:1.12.0.6
	netbsd-5-0-RELEASE:1.12
	netbsd-5-0-RC4:1.12
	netbsd-5-0-RC3:1.12
	netbsd-5-0-RC2:1.12
	jym-xensuspend:1.12.0.4
	jym-xensuspend-base:1.14
	netbsd-5-0-RC1:1.12
	netbsd-5:1.12.0.2
	netbsd-5-base:1.12
	matt-mips64-base2:1.12
	matt-mips64:1.9.0.24
	netbsd-4-0-1-RELEASE:1.9
	wrstuden-revivesa-base-3:1.10
	wrstuden-revivesa-base-2:1.10
	wrstuden-fixsa-newbase:1.9
	wrstuden-revivesa-base-1:1.9
	yamt-pf42-base4:1.9
	yamt-pf42-base3:1.9
	hpcarm-cleanup-nbase:1.9
	yamt-pf42-baseX:1.9
	yamt-pf42-base2:1.9
	wrstuden-revivesa:1.9.0.22
	wrstuden-revivesa-base:1.9
	yamt-pf42:1.9.0.20
	yamt-pf42-base:1.9
	keiichi-mipv6-nbase:1.9
	keiichi-mipv6:1.9.0.18
	keiichi-mipv6-base:1.9
	matt-armv6-nbase:1.9
	matt-armv6-prevmlocking:1.9
	wrstuden-fixsa-base-1:1.9
	netbsd-4-0:1.9.0.16
	netbsd-4-0-RELEASE:1.9
	cube-autoconf:1.9.0.14
	cube-autoconf-base:1.9
	netbsd-4-0-RC5:1.9
	netbsd-4-0-RC4:1.9
	netbsd-4-0-RC3:1.9
	netbsd-4-0-RC2:1.9
	netbsd-4-0-RC1:1.9
	matt-armv6:1.9.0.12
	matt-armv6-base:1.9
	matt-mips64-base:1.9
	hpcarm-cleanup:1.9.0.10
	hpcarm-cleanup-base:1.9
	netbsd-3-1-1-RELEASE:1.8
	netbsd-3-0-3-RELEASE:1.8
	wrstuden-fixsa:1.9.0.8
	wrstuden-fixsa-base:1.9
	abandoned-netbsd-4-base:1.9
	abandoned-netbsd-4:1.9.0.4
	netbsd-3-1:1.8.0.12
	netbsd-3-1-RELEASE:1.8
	netbsd-3-0-2-RELEASE:1.8
	netbsd-3-1-RC4:1.8
	netbsd-3-1-RC3:1.8
	netbsd-3-1-RC2:1.8
	netbsd-3-1-RC1:1.8
	netbsd-4:1.9.0.6
	netbsd-4-base:1.9
	chap-midi-nbase:1.9
	netbsd-3-0-1-RELEASE:1.8
	chap-midi:1.9.0.2
	chap-midi-base:1.9
	netbsd-3-0:1.8.0.10
	netbsd-3-0-RELEASE:1.8
	netbsd-3-0-RC6:1.8
	netbsd-3-0-RC5:1.8
	netbsd-3-0-RC4:1.8
	netbsd-3-0-RC3:1.8
	netbsd-3-0-RC2:1.8
	netbsd-3-0-RC1:1.8
	netbsd-2-0-3-RELEASE:1.8
	netbsd-2-1:1.8.0.8
	netbsd-2-1-RELEASE:1.8
	netbsd-2-1-RC6:1.8
	netbsd-2-1-RC5:1.8
	netbsd-2-1-RC4:1.8
	netbsd-2-1-RC3:1.8
	netbsd-2-1-RC2:1.8
	netbsd-2-1-RC1:1.8
	netbsd-2-0-2-RELEASE:1.8
	netbsd-3:1.8.0.6
	netbsd-3-base:1.8
	netbsd-2-0-1-RELEASE:1.8
	netbsd-2:1.8.0.4
	netbsd-2-base:1.8
	netbsd-2-0-RELEASE:1.8
	netbsd-2-0-RC5:1.8
	netbsd-2-0-RC4:1.8
	netbsd-2-0-RC3:1.8
	netbsd-2-0-RC2:1.8
	netbsd-2-0-RC1:1.8
	netbsd-2-0:1.8.0.2
	netbsd-2-0-base:1.8
	netbsd-1-6-PATCH002-RELEASE:1.4
	netbsd-1-6-PATCH002:1.4
	netbsd-1-6-PATCH002-RC4:1.4
	netbsd-1-6-PATCH002-RC3:1.4
	netbsd-1-6-PATCH002-RC2:1.4
	netbsd-1-6-PATCH002-RC1:1.4
	netbsd-1-6-PATCH001:1.4
	netbsd-1-6-PATCH001-RELEASE:1.4
	netbsd-1-6-PATCH001-RC3:1.4
	netbsd-1-6-PATCH001-RC2:1.4
	netbsd-1-6-PATCH001-RC1:1.4
	fvdl_fs64_base:1.5
	netbsd-1-6-RELEASE:1.4
	netbsd-1-6-RC3:1.4
	netbsd-1-6-RC2:1.4
	netbsd-1-6-RC1:1.4
	netbsd-1-6:1.4.0.2
	netbsd-1-6-base:1.4;
locks; strict;
comment	@# @;


1.17
date	2015.04.07.17.49.40;	author christos;	state dead;
branches;
next	1.16;
commitid	xZbTiR8yNUzjwGgy;

1.16
date	2011.06.20.07.44.00;	author mrg;	state Exp;
branches;
next	1.15;

1.15
date	2010.12.15.08.09.23;	author he;	state Exp;
branches
	1.15.4.1;
next	1.14;

1.14
date	2009.04.14.22.15.17;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2009.02.19.10.33.03;	author njoly;	state Exp;
branches;
next	1.12;

1.12
date	2008.10.20.18.16.54;	author apb;	state Exp;
branches
	1.12.4.1;
next	1.11;

1.11
date	2008.10.19.19.42.23;	author apb;	state Exp;
branches;
next	1.10;

1.10
date	2008.08.29.00.02.24;	author gmcgarry;	state Exp;
branches;
next	1.9;

1.9
date	2006.05.11.01.19.55;	author mrg;	state Exp;
branches
	1.9.22.1;
next	1.8;

1.8
date	2004.03.27.11.34.11;	author jdolecek;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.26.16.55.15;	author jdolecek;	state Exp;
branches;
next	1.6;

1.6
date	2003.08.03.17.19.45;	author jdolecek;	state Exp;
branches;
next	1.5;

1.5
date	2002.09.18.14.00.34;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.28.09.58.10;	author jmc;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.19.04.12.41;	author martin;	state Exp;
branches;
next	1.2;

1.2
date	2001.01.23.22.24.20;	author jdolecek;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.23.16.25.22;	author jdolecek;	state Exp;
branches;
next	;

1.15.4.1
date	2011.06.23.14.20.42;	author cherry;	state Exp;
branches;
next	;

1.12.4.1
date	2009.05.13.19.19.44;	author jym;	state Exp;
branches;
next	;

1.9.22.1
date	2008.09.18.04.29.07;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.17
log
@remove ancient dup.
@
text
@#	$NetBSD: Makefile,v 1.16 2011/06/20 07:44:00 mrg Exp $

WARNS?=	1	# fails -Wshadow -Wcast-qual

.include <bsd.own.mk>

DIST=	${NETBSDSRCDIR}/external/historical/nawk/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
.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS+=	-Wno-pointer-sign
.endif

# 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

.include <bsd.prog.mk>
@


1.16
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.15 2010/12/15 08:09:23 he Exp $
@


1.15
log
@Make this build as part of the dist/miniroot build, where it's still
referenced.  Adjust for the move from dist/ to external/.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/04/14 22:15:17 lukem Exp $
d18 1
a18 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.15.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2011/06/20 07:44:00 mrg Exp $
d18 1
a18 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.14
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2009/02/19 10:33:03 njoly Exp $
d7 2
a8 2
DIST=	${NETBSDSRCDIR}/dist
.PATH:	${DIST}/nawk
d12 1
a12 1
CPPFLAGS+=	-I${DIST}/nawk -I. -DHAS_ISBLANK
@


1.13
log
@Do not overwrite COPTS, but append to it.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.12 2008/10/20 18:16:54 apb Exp $
@


1.12
log
@When building as a host tool, do not add ${LIBM} to DPADD, but do add
"-lm" to LDADD as usual.  We do assume that the host system has a -lm
library, but we can't assume that the library is in /usr/lib/libm.a.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/10/19 19:42:23 apb Exp $
d17 1
a17 1
COPTS=	-Wno-pointer-sign
@


1.12.4.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.14 2009/04/14 22:15:17 lukem Exp $

WARNS?=	1	# fails -Wshadow -Wcast-qual
d17 1
a17 1
COPTS+=	-Wno-pointer-sign
@


1.11
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/08/29 00:02:24 gmcgarry Exp $
d12 1
d14 1
@


1.10
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2006/05/11 01:19:55 mrg Exp $
d22 7
d30 2
@


1.9
log
@use -Wno-pointer-sign for GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2004/03/27 11:34:11 jdolecek Exp $
d14 1
a14 1
.if ${HAVE_GCC} == 4
@


1.9.22.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2006/05/11 01:19:55 mrg Exp $
d14 1
a14 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.8
log
@move the GNU awk-based awk.texi back under src/gnu/dist/gawk/,
it's covered by GNU Documentation Licence and thus shouldn't be mixed
with free code
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2004/03/26 16:55:15 jdolecek Exp $
d14 3
@


1.7
log
@copy over the gawk 3.1.3 info file and g/c the rules to build it from
gawk sources
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2003/08/03 17:19:45 jdolecek Exp $
d16 1
@


1.6
log
@add -DHAS_ISBLANK to CPPFLAGS, so that current nawk would use our isblank(3)
instead of it's own; pointed out by Stefan Kruger in private e-mail

add rules to install the gawk info file too; it's useful to have installed,
and allows nawk to be drop-in replacement without need to adjust file lists
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/09/18 14:00:34 lukem Exp $
d15 1
a15 4
# gawk INFO file
GDIST=	${NETBSDSRCDIR}/gnu/dist/gawk
.PATH:	${GDIST}/doc

a17 6
CLEANFILES+=	${PROG}.texi

${PROG}.texi: gawk.texi
	@@-rm -f $@@
	sed -e 's/gawk.info/${PROG}.info/g' <$> >$@@

@


1.5
log
@makefile delint. use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2002/03/28 09:58:10 jmc Exp $
d10 1
a10 1
CPPFLAGS+=	-I${DIST}/nawk -I.
d15 13
@


1.4
log
@Remove check for sparc64 which adds -msoft-quad-float as that is now the
default for the compiler on sparc64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/10/19 04:12:41 martin Exp $
d3 3
a5 1
DIST=	${.CURDIR}/../../dist
@


1.3
log
@Add -msoft-quad-float on sparc64 to work around toolchain/kernel fpu
emulation lossage.
This makes awk create proper vi.h and emacs.h files in src/lib/libedit
again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/01/23 22:24:20 jdolecek Exp $
a11 5

# XXX work around toolchain/fpu emul lossage
.if ${MACHINE_ARCH} == "sparc64"
CPPFLAGS+=	-msoft-quad-float
.endif
@


1.2
log
@use YHEADER instead YFLAGS/CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/01/23 16:25:22 jdolecek Exp $
d12 5
@


1.1
log
@Add nawk build glue. It's not enabled for now, gawk is still the default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/01/08 19:16:49 jdolecek Exp $
d11 1
a11 3
YFLAGS=	-d

CLEANFILES+=	y.tab.h
@
