1CMD=${CMD-/bin/make} 2ARK=${ARK-libedit.a} 3# 4# This script will make various version of editlib for different machines 5# 6command=$1 7U370= DBSD= VIRAW= SYSCALL= 8if test -f /vmunix -o "$SYSTYPE" = bsd4.1 -o "$SYSTYPE" = bsd4.2 # true for BSD unix 9then DBSD=-DBSD 10fi 11if test -f /bin/u3b && /bin/u3b 12then SYSCALL=syscall.o 13fi 14if uname -m 2> /dev/null > /dev/null 15then set -- `uname -m` 16 case "$1" in 17 *370) 18 U370=U370 VIRAW='-DRAWONLY' 19 ;; 20 ibm-pc*) 21 VIRAW='-DRAWONLY' 22 ;; 23 esac 24fi 25set -- `uname -r` 26case "$1" in 27*[23].*) 28 VIRAW='-DRAWONLY' 29 ;; 30esac 31$CMD -f Makefile DBSD=$DBSD U370=$U370 VIRAW=$VIRAW SYSCALL=$SYSCALL $command 32