Blob
1 #!/bin/sh3 usegcc()4 {5 cc=gcc6 ngflags=" \7 -O2 \8 -c \9 -Wall \10 -Wno-parentheses \11 -Wno-missing-braces \12 -Wno-switch \13 -Wno-comment \14 -Wno-sign-compare \15 "16 cflags="$ngflags -ggdb"17 }19 tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"20 case "$tag" in21 *BSD*) usegcc ;;22 *Darwin*) usegcc23 cflags="$ngflags -g3 -no-cpp-precomp" ;;24 *HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;25 *Linux*) usegcc ;;26 *OSF1*) cc=cc; cflags="-g -O -c" ;;27 *SunOS*-cc) cc=cc; cflags="-g -O -c -xCC -D__sun__" ;;28 *SunOS*-gcc) usegcc ;;29 *)30 echo 9c does not know how to compile on "$tag" 1>&231 exit 132 esac34 exec $cc -I$PLAN9/include $cflags "$@"