all: update build scripts to fix AIX XL/C compatibility

This commit is contained in:
Ben Huntsman 2020-05-04 19:52:02 -07:00 committed by Russ Cox
parent c3c9c7b6ae
commit 4982d4ebc3
6 changed files with 35 additions and 11 deletions

View file

@ -27,7 +27,7 @@ $PLAN9/bin/lex: $PLAN9/bin/yacc
# This should not be necessary.
$PLAN9/bin/yacc: $O.yacc
install -c $O.yacc $PLAN9/bin/yacc
$INSTALL -c $O.yacc $PLAN9/bin/yacc
$O.yacc: yacc.$O
$LD -o $target $prereq
yacc.$O: yacc.c

2
src/mk.AIX-power Normal file
View file

@ -0,0 +1,2 @@
INSTALL=installbsd

View file

@ -211,5 +211,9 @@ echo cd `pwd`
9c word.c
9c unix.c
9l -o o.mk arc.o archive.o bufblock.o env.o file.o graph.o job.o lex.o main.o match.o mk.o parse.o recipe.o rc.o rule.o run.o sh.o shell.o shprint.o symtab.o var.o varsub.o word.o unix.o
install o.mk $PLAN9/bin/mk
if [ `uname` = AIX ]; then
installbsd o.mk $PLAN9/bin/mk
else
install o.mk $PLAN9/bin/mk
fi
cd ..