--- ray/makeall 2003/02/28 20:06:51 1.2 +++ ray/makeall 2003/07/12 08:38:44 1.7 @@ -1,5 +1,5 @@ #!/bin/csh -f -# RCSid $Id: makeall,v 1.2 2003/02/28 20:06:51 greg Exp $ +# RCSid $Id: makeall,v 1.7 2003/07/12 08:38:44 schorsch Exp $ # #Added macosX 2001-04-11 by Jean Brange #Deleted obsolete systems 2001-04-18 by Greg Ward @@ -50,7 +50,9 @@ again1: echo -n "Where do you want the executables [/usr/local/bin]? " set idir=$< (echo $idir) >/dev/null -if ( $status ) goto again1 +if ( $status ) then + goto again1 +endif set idir=$idir if ( "$idir" == "" ) then set idir=/usr/local/bin @@ -73,7 +75,9 @@ if ( ! -d $idir/dev ) then endif endif set rmake=$idir/rmake -if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) goto gotrmake +if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then + goto gotrmake +endif set newrmake goto skiplicense cat << _EOF_ @@ -139,22 +143,14 @@ set arch="$<" switch ("$arch") case 1: # SPARC Station set arch=sun - if ( `uname -r` =~ 4.* ) then - set mach="-fsingle -DBSD /usr/lib/libm.il -I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" - set opt="-O -pipe -DSPEED=12" - set special="sun" - set compat="bmalloc.o strcmp.o" - else - set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" - set opt="-O -DSPEED=80" - set special="ogl" - set compat="bmalloc.o strcmp.o getpagesize.o" - endif + set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" + set opt="-O -DSPEED=80" + set compat="bmalloc.o strcmp.o getpagesize.o" breaksw case 2: # HP workstation set mach="" set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE" - set compat="malloc.o getpagesize.o strcmp.o" + set compat="bmalloc.o getpagesize.o strcmp.o" set arch=hpux breaksw case 3: # Silicon Graphics @@ -178,14 +174,14 @@ case 3: # Silicon Graphics set mach="-w" set opt="-O2 -DSPEED=200" set special="ogl" - set compat="malloc.o strcmp.o" + set compat="bmalloc.o strcmp.o" breaksw endsw breaksw case 4: # AIX - set mach="-Dvoid=char -D_NO_PROTO -DINCL_SEL_H" set opt="-O" - set compat="bmalloc.o erf.o" + set compat="bmalloc.o erf.o strcmp.o" + set arch=PowerPC breaksw case 5: # BSDI BSD/386 set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include" @@ -194,7 +190,7 @@ case 5: # BSDI BSD/386 set compat="malloc.o erf.o strcmp.o" breaksw case 6: # Linux - set mach="-Dlinux -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO" + set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO" set opt="-O2 -DSPEED=200" set arch=IBMPC set compat="bmalloc.o erf.o getpagesize.o" @@ -222,6 +218,7 @@ case 9: # Other if ( "$<" =~ [yY]* ) then set extras="CC=gcc" endif + set arch=other breaksw default: echo "Illegal choice\!" @@ -229,36 +226,6 @@ default: exit 1 breaksw endsw -# We don't seem to have any more cramped machines out there, so... -set mem="-DBIGMEM" -if ( $?mem ) then - set mach="$mach $mem" -else - echo -n "Does the target machine have more than 24 Mbytes of RAM? " - set ans="$<" - if ( "$ans" =~ [yY]* ) then - echo -n "More than 96 Mbytes? " - set ans="$<" - if ( "$ans" =~ [yY]* ) then - set mach="$mach -DBIGMEM" - set sizemod="huge models (100,000+ surfaces)" - else - set sizemod="very large models (30,000+ surfaces)" - endif - else - set sizemod="large models (10,000+ surfaces)" - endif -endif -# echo "Do you expect to be rendering $sizemod?" -# echo -n '(Answering "yes" may adversly affect rendering time and geometric accuracy) ' -# set ans="$<" -# if ( "$ans" =~ [yY]* ) then -# set opt="$opt -DSMLFLT" -# endif -# echo -n "Do you have X10 support [n]? " -# if ( "$<" =~ [yY]* ) then -# set special="$special x10" -# endif source installib sed 's/[ ]*$//' > $rmake << _EOF_ #!/bin/sh @@ -328,7 +295,7 @@ endif foreach i ( $* ) if ( "$i" == clean ) then echo "Removing library archives..." - rm -f src/lib/*.a + rm -f src/lib/*.[ao] endif end exit 0