diff options
author | obrien <obrien@FreeBSD.org> | 2001-10-30 08:56:50 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-10-30 08:56:50 +0000 |
commit | 4a5f2e9cc5338def8a6362a6aefbd615852c7526 (patch) | |
tree | 79eaafb21266a699d1c9053aef39495fe22929f8 /usr.bin | |
parent | aaa6970d64b2f7d3f12b17f105c5ec2b2b673bc8 (diff) | |
download | FreeBSD-src-4a5f2e9cc5338def8a6362a6aefbd615852c7526.zip FreeBSD-src-4a5f2e9cc5338def8a6362a6aefbd615852c7526.tar.gz |
Switch to the One True AWK from Bell-Labs, away from GNU AWK.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/awk/Makefile | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile index 34d9ab1..8c4a2fd 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -9,6 +9,7 @@ # SUBDIR= apply \ at \ + awk \ banner \ basename \ biff \ diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile new file mode 100644 index 0000000..465fa9b --- /dev/null +++ b/usr.bin/awk/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +AWKSRC= ${.CURDIR}/../../contrib/one-true-awk +.PATH: ${AWKSRC} + +PROG= awk +SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h +MAN1= awk.1 + +# Important for ctype macros! +CFLAGS+= -funsigned-char +CFLAGS+= -I. -I${AWKSRC} + +DPADD+= ${LIBM} +LDADD+= -lm + +LINKS+= ${BINDIR}/awk ${BINDIR}/nawk +MLINKS+= awk.1 nawk.1 + +CLEANFILES+= maketab proctab.c ytab.c ytab.h + +.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 + +proctab.c: maketab + ./maketab > proctab.c + +build-tools: maketab +maketab: ytab.h ${AWKSRC}/maketab.c + ${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab + +.include <bsd.prog.mk> |