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:
parent
9a1523bc67
commit
a04eff5a87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91707
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user