doclean=""
SGI_ABI=-n32
CC=cc
-export SGI_ABI CC
if [ "$1" = "clean" ]; then
doclean=$1
shift
+elif [ "$1" = "5" ]; then
+ SGI_ABI=-32
+ shift
+fi
+
+# check again in case they put the args in the wrong order
+
+if [ "$1" = "clean" ]; then
+ doclean=$1
+ shift
+elif [ "$1" = "5" ]; then
+ SGI_ABI=-32
+ shift
fi
+export SGI_ABI CC
+
if [ "$doclean" = "clean" ]; then
cd ../../source
if [ -f Makefile ]; then
chmod +x config.guess
chmod +x config.status
chmod +x config.sub
- ./configure --prefix=/usr --mandir=/usr/src/man
+ ./configure --prefix=/usr --mandir=/usr/src/man --with-smbwrapper
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
#
echo Making binaries
-if [ "$1" = "5" ]; then
- myflags="CFLAGS=-O -g3"
- shift
-else
- myflags="CFLAGS=-O -g3"
-fi
-
-make "$myflags" $*
+make "CFLAGS=-O -g3" $*
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";