head	1.20;
access;
symbols
	RELENG_8_4:1.20.0.2
	RELENG_9_1_0_RELEASE:1.19.2.1.4.2
	RELENG_9_1:1.19.2.1.0.4
	RELENG_9_1_BP:1.19.2.1
	RELENG_8_3_0_RELEASE:1.17.2.2.6.1
	RELENG_8_3:1.17.2.2.0.6
	RELENG_8_3_BP:1.17.2.2
	RELENG_9_0_0_RELEASE:1.19.2.1.2.1
	RELENG_9_0:1.19.2.1.0.2
	RELENG_9_0_BP:1.19.2.1
	RELENG_9:1.19.0.2
	RELENG_9_BP:1.19
	RELENG_7_4_0_RELEASE:1.14.2.3.8.1
	RELENG_8_2_0_RELEASE:1.17.2.2.4.1
	RELENG_7_4:1.14.2.3.0.8
	RELENG_7_4_BP:1.14.2.3
	RELENG_8_2:1.17.2.2.0.4
	RELENG_8_2_BP:1.17.2.2
	RELENG_8_1_0_RELEASE:1.17.2.2.2.1
	RELENG_8_1:1.17.2.2.0.2
	RELENG_8_1_BP:1.17.2.2
	RELENG_7_3_0_RELEASE:1.14.2.3.6.1
	RELENG_7_3:1.14.2.3.0.6
	RELENG_7_3_BP:1.14.2.3
	RELENG_8_0_0_RELEASE:1.17.2.1.2.1
	RELENG_8_0:1.17.2.1.0.2
	RELENG_8_0_BP:1.17.2.1
	RELENG_8:1.17.0.2
	RELENG_8_BP:1.17
	RELENG_7_2_0_RELEASE:1.14.2.3.4.1
	RELENG_7_2:1.14.2.3.0.4
	RELENG_7_2_BP:1.14.2.3
	RELENG_7_1_0_RELEASE:1.14.2.3.2.1
	RELENG_6_4_0_RELEASE:1.12.2.3.4.1
	RELENG_7_1:1.14.2.3.0.2
	RELENG_7_1_BP:1.14.2.3
	RELENG_6_4:1.12.2.3.0.4
	RELENG_6_4_BP:1.12.2.3
	RELENG_7_0_0_RELEASE:1.14
	RELENG_6_3_0_RELEASE:1.12.2.3
	RELENG_7_0:1.14.0.4
	RELENG_7_0_BP:1.14
	RELENG_6_3:1.12.2.3.0.2
	RELENG_6_3_BP:1.12.2.3
	RELENG_7:1.14.0.2
	RELENG_7_BP:1.14
	RELENG_6_2_0_RELEASE:1.12.2.2
	RELENG_6_2:1.12.2.2.0.2
	RELENG_6_2_BP:1.12.2.2
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.10
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.12
	RELENG_6_1:1.12.0.6
	RELENG_6_1_BP:1.12
	RELENG_6_0_0_RELEASE:1.12
	RELENG_6_0:1.12.0.4
	RELENG_6_0_BP:1.12
	RELENG_6:1.12.0.2
	RELENG_6_BP:1.12
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.8
	RELENG_5_4_BP:1.11
	RELENG_4_11_0_RELEASE:1.9.2.1
	RELENG_4_11:1.9.2.1.0.10
	RELENG_4_11_BP:1.9.2.1
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.6
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.4
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.9.2.1
	RELENG_4_10:1.9.2.1.0.8
	RELENG_4_10_BP:1.9.2.1
	RELENG_5_2_1_RELEASE:1.11
	RELENG_5_2_0_RELEASE:1.11
	RELENG_5_2:1.11.0.2
	RELENG_5_2_BP:1.11
	RELENG_4_9_0_RELEASE:1.9.2.1
	RELENG_4_9:1.9.2.1.0.6
	RELENG_4_9_BP:1.9.2.1
	RELENG_5_1_0_RELEASE:1.10
	RELENG_5_1:1.10.0.2
	RELENG_5_1_BP:1.10
	RELENG_4_8_0_RELEASE:1.9.2.1
	RELENG_4_8:1.9.2.1.0.4
	RELENG_4_8_BP:1.9.2.1
	RELENG_5_0_0_RELEASE:1.9
	RELENG_5_0:1.9.0.4
	RELENG_5_0_BP:1.9
	RELENG_4_7_0_RELEASE:1.9.2.1
	RELENG_4_7:1.9.2.1.0.2
	RELENG_4_7_BP:1.9.2.1
	RELENG_4:1.9.0.2;
locks; strict;
comment	@# @;


1.20
date	2012.11.17.01.54.14;	author svnexp;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2010.01.10.08.02.07;	author ru;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches;
next	1.17;

1.17
date	2008.03.27.01.33.26;	author jb;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2008.02.28.16.41.51;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	2007.10.25.12.43.22;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2006.10.25.21.23.20;	author ru;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2006.09.15.13.33.32;	author ru;	state Exp;
branches;
next	1.12;

1.12
date	2005.05.17.14.54.33;	author ru;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2003.06.06.13.46.55;	author kuriyama;	state Exp;
branches;
next	1.10;

1.10
date	2003.03.17.08.07.54;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.10.20.36.21;	author obrien;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2002.04.10.03.10.03;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	2002.04.09.07.05.24;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	2002.04.09.07.03.32;	author ru;	state Exp;
branches;
next	1.5;

1.5
date	2002.03.23.04.49.43;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.06.18.37.26;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	2002.03.06.18.06.39;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2002.03.05.19.37.12;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.30.08.56.50;	author obrien;	state Exp;
branches;
next	;

1.20.2.1
date	2012.11.17.01.54.14;	author svnexp;	state dead;
branches;
next	1.20.2.2;

1.20.2.2
date	2013.03.28.13.06.00;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.19.2.1.2.1
	1.19.2.1.4.1;
next	1.19.2.2;

1.19.2.2
date	2012.11.17.11.37.37;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.19.2.1.2.2;

1.19.2.1.2.2
date	2012.11.17.08.37.33;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.19.2.1.4.2;

1.19.2.1.4.2
date	2012.11.17.08.48.25;	author svnexp;	state Exp;
branches;
next	;

1.17.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.17.2.1.2.1;
next	1.17.2.2;

1.17.2.2
date	2010.01.15.14.20.01;	author ru;	state Exp;
branches
	1.17.2.2.2.1
	1.17.2.2.4.1
	1.17.2.2.6.1;
next	1.17.2.3;

1.17.2.3
date	2012.11.17.10.37.15;	author svnexp;	state Exp;
branches;
next	;

1.17.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.17.2.2.2.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.17.2.2.4.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.17.2.2.6.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.17.2.2.6.2;

1.17.2.2.6.2
date	2012.11.17.08.25.48;	author svnexp;	state Exp;
branches;
next	;

1.14.2.1
date	2008.01.30.02.44.26;	author obrien;	state Exp;
branches;
next	1.14.2.2;

1.14.2.2
date	2008.02.28.16.45.38;	author obrien;	state Exp;
branches;
next	1.14.2.3;

1.14.2.3
date	2008.03.29.22.53.54;	author jb;	state Exp;
branches
	1.14.2.3.2.1
	1.14.2.3.4.1
	1.14.2.3.6.1
	1.14.2.3.8.1;
next	1.14.2.4;

1.14.2.4
date	2012.11.17.08.08.19;	author svnexp;	state Exp;
branches;
next	;

1.14.2.3.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.14.2.3.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.14.2.3.8.2;

1.14.2.3.8.2
date	2012.11.17.08.17.41;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2006.09.18.15.28.12;	author ru;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2006.10.29.07.27.27;	author ru;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2007.10.09.15.28.14;	author obrien;	state Exp;
branches
	1.12.2.3.4.1;
next	1.12.2.4;

1.12.2.4
date	2012.11.17.07.45.33;	author svnexp;	state Exp;
branches;
next	;

1.12.2.3.4.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.9.2.1
date	2002.06.21.20.12.08;	author obrien;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	2012.11.17.07.27.19;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/usr.bin/awk/Makefile 201989 2010-01-10 08:02:07Z ru $

AWKSRC=	${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}

PROG=	awk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h

CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64

WARNS?=	1

DPADD=	${LIBM}
LDADD=	-lm

LINKS=	${BINDIR}/awk ${BINDIR}/nawk
MLINKS=	awk.1 nawk.1

CLEANFILES= maketab proctab.c ytab.h

ytab.h: awkgram.h
	ln -sf ${.ALLSRC} ${.TARGET}

proctab.c: maketab
	./maketab > proctab.c

build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c

.include <bsd.prog.mk>
@


1.20.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:00 +0000
@
text
@d1 30
@


1.20.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 30
# $FreeBSD: releng/8.4/usr.bin/awk/Makefile 202360 2010-01-15 14:20:01Z ru $

AWKSRC=	${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}

PROG=	awk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h

CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64

WARNS?=	1

DPADD=	${LIBM}
LDADD=	-lm

LINKS=	${BINDIR}/awk ${BINDIR}/nawk
MLINKS=	awk.1 nawk.1

CLEANFILES= maketab proctab.c ytab.h

ytab.h: awkgram.h
	ln -sf ${.ALLSRC} ${.TARGET}

proctab.c: maketab
	./maketab > proctab.c

build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c

.include <bsd.prog.mk>
@


1.19
log
@SVN rev 201989 on 2010-01-10 08:02:07Z by ru

Apply patches directly to sources.  Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
  bracket expressions, until a more complete fix (like handing
  BREs) is ready.

- Don't require a space between -[fv] and its argument.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.19.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.19.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/usr.bin/awk/Makefile 201989 2010-01-10 08:02:07Z ru $
@


1.19.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/usr.bin/awk/Makefile 201989 2010-01-10 08:02:07Z ru $
@


1.19.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.19.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/usr.bin/awk/Makefile 201989 2010-01-10 08:02:07Z ru $
@


1.18
log
@SVN rev 201386 on 2010-01-02 10:27:05Z by ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.
@
text
@a29 6
.for f in b.c main.c run.c
${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff
	patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f}
CLEANFILES+= ${f}
.endfor

@


1.17
log
@Allow awk (the one true one!) to handle 64 files instead of just 20.
The current FreeBSD syscall generation script uses all 20 and I need
another open file.

It's a shame that something named as the 'one-true-awk' is so limited
by an old denition like FOPEN_MAX when it could just make the file
handling dynamic.

This is done to avoid touching contrib sources on a vendor branch.
@
text
@d11 2
@


1.17.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.17.2.2
log
@SVN rev 202360 on 2010-01-15 14:20:01Z by ru

Update to a 26-Nov-2009 release.
@
text
@a10 2
WARNS?=	1

d28 6
@


1.17.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/usr.bin/awk/Makefile 202360 2010-01-15 14:20:01Z ru $
@


1.17.2.2.6.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.17.2.2.6.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/usr.bin/awk/Makefile 202360 2010-01-15 14:20:01Z ru $
@


1.17.2.2.4.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.17.2.2.2.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.17.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.16
log
@Now that we're way past our conversion from GNU awk to BWK awk, we don't
need to primarily install as a non-conflicting name.
@
text
@d9 1
a9 1
CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC}
@


1.15
log
@The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795
and bin/100443.
@
text
@d6 1
a6 1
PROG=	nawk
d14 2
a15 2
LINKS=	${BINDIR}/nawk ${BINDIR}/awk
MLINKS=	nawk.1 awk.1
a27 4
CLEANFILES+=	nawk.1
nawk.1: awk.1
	cat ${.ALLSRC} > ${.TARGET}

@


1.14
log
@Fix a bug converting a variable from the numeric type to a string.

PR:		bin/104795
MFC after:	3 days
@
text
@d32 1
a32 1
.for f in b.c lib.c main.c run.c tran.c
@


1.14.2.1
log
@MFC: AWK release Oct 23, 2007.
MF6: Don't use patch files.
@
text
@d32 6
@


1.14.2.2
log
@MFC: rev 1.16: install as awk.
@
text
@d6 1
a6 1
PROG=	awk
d14 2
a15 2
LINKS=	${BINDIR}/awk ${BINDIR}/nawk
MLINKS=	awk.1 nawk.1
d28 4
@


1.14.2.3
log
@MFC

stdio.h: 1.61
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

awk/Makefile: 1.17
Allow awk to handle 64 files instead of just 20.
@
text
@d9 1
a9 1
CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64
@


1.14.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/usr.bin/awk/Makefile 177721 2008-03-29 22:53:54Z jb $
@


1.14.2.3.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.14.2.3.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/usr.bin/awk/Makefile 177721 2008-03-29 22:53:54Z jb $
@


1.14.2.3.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.14.2.3.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.14.2.3.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.13
log
@Initial memory allocation for fields was off-by-one.

PR:		bin/100443
MFC after:	3 days
@
text
@d32 1
a32 1
.for f in b.c lib.c main.c run.c
@


1.12
log
@Add temporary patches to make one-true-awk respect locale's collating order
in [a-z] bracket expressions, until a more complete fix (like handing BREs)
is ready.

Prodded by:	ache
OK'ed by:	tjr
@
text
@d32 1
a32 1
.for f in b.c main.c run.c
@


1.12.2.1
log
@MFC:
- Don't require a space between -[fv] and its argument.
- Initial memory allocation for fields was off-by-one.

Approved by:	re (kensmith)
@
text
@d32 1
a32 1
.for f in b.c lib.c main.c run.c
@


1.12.2.2
log
@MFC: Fix a bug converting a variable from the numeric type to a string.

PR:		bin/104795
Approved by:	re (hrs)
@
text
@d32 1
a32 1
.for f in b.c lib.c main.c run.c tran.c
@


1.12.2.3
log
@Stop applying patches at build time - instead apply directly to the files.
I've seen this practice cause issues for vendors using our sources...
@
text
@d32 6
@


1.12.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/usr.bin/awk/Makefile 172494 2007-10-09 15:28:15Z obrien $
@


1.12.2.3.4.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.11
log
@Use
	cat ${.ALLSRC} > ${.TARGET}
rather than
	ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde
@
text
@d32 6
@


1.10
log
@For the bwk_20030314 version, we have to -DHAS_ISBLANK now.
Oh how I wish the author had accepted my "#ifndef isblank" patch instead.
@
text
@d30 1
a30 1
	ln -sf ${.ALLSRC} ${.TARGET}
@


1.9
log
@BWK awk appears to work for world builds just fine now.  We want to make
sparc64 the same as the other platforms -- so do it by moving the other
platforms toward the sparc64.
@
text
@d9 1
a9 1
CFLAGS+= -I. -I${AWKSRC}
@


1.9.2.1
log
@Hook up 1TA to the build.
@
text
@d14 3
@


1.9.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/usr.bin/awk/Makefile 98589 2002-06-21 20:12:08Z obrien $
@


1.8
log
@Style.
@
text
@a13 1
.if ${MACHINE_ARCH} == "sparc64"
a15 1
.endif
@


1.7
log
@Style.
@
text
@d22 1
a22 1
	ln -fs ${.ALLSRC} ${.TARGET}
d30 1
a30 1
CLEANFILES+= nawk.1
d32 1
a32 1
	ln -fs ${.ALLSRC} ${.TARGET}
@


1.6
log
@Make this compile in a standalone environment.
Tidy up CLEANFILES.
Use built-in rules for building "maketab".
@
text
@d15 2
a16 2
LINKS+=	${BINDIR}/nawk ${BINDIR}/awk
MLINKS+=	nawk.1 awk.1
d19 1
a19 1
CLEANFILES+=	maketab proctab.c ytab.h
d21 2
a22 2
ytab.h: awkgram.h                                                              
	ln -sf ${.ALLSRC} ${.TARGET}
d30 1
a30 1
CLEANFILES+=	nawk.1
d32 1
a32 1
	ln -sf ${.ALLSRC} ${.TARGET}
@


1.5
log
@Use our auto-YACC'ing rules to do most of the work.

Submitted by:	bde
@
text
@d7 1
a7 1
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
d19 1
a19 1
CLEANFILES+=	maketab proctab.c ytab.c ytab.h
a28 1
	${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab
@


1.4
log
@To quote BDE: "the k part of awk should understand the ctype macros and not
               need the -funsigned-char hack."

Also add needed CLEANSFILE.
@
text
@d7 1
a7 1
SRCS=	b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h
d21 2
a22 6
.ORDER:	ytab.c ytab.h proctab.c
ytab.c ytab.h: ${AWKSRC}/awkgram.y
	@@echo Expect 42 reduce/shift conflicts and 83 reduce/reduce conflicts
	${YACC} -d ${AWKSRC}/awkgram.y
	mv -f y.tab.c ytab.c
	mv -f y.tab.h ytab.h
@


1.3
log
@Simpler way to handling the names needed on the various platforms.
@
text
@a8 2
# Important for ctype macros!
CFLAGS+= -funsigned-char
d11 2
a12 2
DPADD+=	${LIBM}
LDADD+=	-lm
d35 1
@


1.2
log
@On the sparc64 platform we install the `1 true AWK' as "awk".  On all other
platforms we install as "nawk".

At the moment Gawk is borked on sparc64, however BWK AWK works fine.
@
text
@a5 3
.if ${MACHINE_ARCH} == "sparc64"
PROG=	awk
.else
a6 1
.endif
a7 1
MAN1=	${PROG}.1
d16 4
a19 2
#LINKS+=	${BINDIR}/awk ${BINDIR}/nawk
#MLINKS+=	awk.1 nawk.1
@


1.1
log
@Switch to the One True AWK from Bell-Labs, away from GNU AWK.
@
text
@d6 1
d8 3
d12 1
a12 1
MAN1=	awk.1
d21 2
a22 2
LINKS+=	${BINDIR}/awk ${BINDIR}/nawk
MLINKS+=	awk.1 nawk.1
d39 3
@

