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.
This commit is contained in:
David E. O'Brien 2002-03-05 19:37:12 +00:00
parent 9a1523bc67
commit a04eff5a87

View File

@ -3,9 +3,13 @@
AWKSRC= ${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}
.if ${MACHINE_ARCH} == "sparc64"
PROG= awk
.else
PROG= nawk
.endif
SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h
MAN1= awk.1
MAN1= ${PROG}.1
# Important for ctype macros!
CFLAGS+= -funsigned-char
@ -14,8 +18,8 @@ CFLAGS+= -I. -I${AWKSRC}
DPADD+= ${LIBM}
LDADD+= -lm
LINKS+= ${BINDIR}/awk ${BINDIR}/nawk
MLINKS+= awk.1 nawk.1
#LINKS+= ${BINDIR}/awk ${BINDIR}/nawk
#MLINKS+= awk.1 nawk.1
CLEANFILES+= maketab proctab.c ytab.c ytab.h
@ -33,4 +37,7 @@ build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c
${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab
nawk.1: awk.1
ln -sf ${.ALLSRC} ${.TARGET}
.include <bsd.prog.mk>