ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/makeall
(Generate patch)

Comparing ray/makeall (file contents):
Revision 1.3 by greg, Thu Mar 27 04:16:33 2003 UTC vs.
Revision 1.7 by schorsch, Sat Jul 12 08:38:44 2003 UTC

# Line 50 | Line 50 | again1:
50   echo -n "Where do you want the executables [/usr/local/bin]? "
51   set idir=$<
52   (echo $idir) >/dev/null
53 < if ( $status ) goto again1
53 > if ( $status ) then
54 >        goto again1
55 > endif
56   set idir=$idir
57   if ( "$idir" == "" ) then
58          set idir=/usr/local/bin
# Line 73 | Line 75 | if ( ! -d $idir/dev ) then
75          endif
76   endif
77   set rmake=$idir/rmake
78 < if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) goto gotrmake
78 > if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then
79 >        goto gotrmake
80 > endif
81   set newrmake
82   goto skiplicense
83   cat << _EOF_
# Line 139 | Line 143 | set arch="$<"
143   switch ("$arch")
144   case 1:                 # SPARC Station
145          set arch=sun
146 <        if ( `uname -r` =~ 4.* ) then
147 <                set mach="-fsingle -DBSD /usr/lib/libm.il -I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
148 <                set opt="-O -pipe -DSPEED=12"
145 <                set special="sun"
146 <                set compat="bmalloc.o strcmp.o"
147 <        else
148 <                set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
149 <                set opt="-O -DSPEED=80"
150 <                set special="ogl"
151 <                set compat="bmalloc.o strcmp.o getpagesize.o"
152 <        endif
146 >        set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
147 >        set opt="-O -DSPEED=80"
148 >        set compat="bmalloc.o strcmp.o getpagesize.o"
149          breaksw
150   case 2:                 # HP workstation
151          set mach=""
# Line 183 | Line 179 | case 3:                        # Silicon Graphics
179          endsw
180          breaksw
181   case 4:                 # AIX
186        set mach="-Dvoid=char -D_NO_PROTO -DINCL_SEL_H"
182          set opt="-O"
183 <        set compat="bmalloc.o erf.o"
183 >        set compat="bmalloc.o erf.o strcmp.o"
184 >        set arch=PowerPC
185          breaksw
186   case 5:                 # BSDI BSD/386
187          set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include"
# Line 194 | Line 190 | case 5:                        # BSDI BSD/386
190          set compat="malloc.o erf.o strcmp.o"
191          breaksw
192   case 6:                 # Linux
193 <        set mach="-Dlinux -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
193 >        set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
194          set opt="-O2 -DSPEED=200"
195          set arch=IBMPC
196          set compat="bmalloc.o erf.o getpagesize.o"
# Line 222 | Line 218 | case 9:                        # Other
218          if ( "$<" =~ [yY]* ) then
219                  set extras="CC=gcc"
220          endif
221 +        set arch=other
222          breaksw
223   default:
224          echo "Illegal choice\!"
# Line 229 | Line 226 | default:
226          exit 1
227          breaksw
228   endsw
232 # We don't seem to have any more cramped machines out there, so...
233 set mem="-DBIGMEM"
234 if ( $?mem ) then
235        set mach="$mach $mem"
236 else
237        echo -n "Does the target machine have more than 24 Mbytes of RAM? "
238        set ans="$<"
239        if ( "$ans" =~ [yY]* ) then
240                echo -n "More than 96 Mbytes? "
241                set ans="$<"
242                if ( "$ans" =~ [yY]* ) then
243                        set mach="$mach -DBIGMEM"
244                        set sizemod="huge models (100,000+ surfaces)"
245                else
246                        set sizemod="very large models (30,000+ surfaces)"
247                endif
248        else
249                set sizemod="large models (10,000+ surfaces)"
250        endif
251 endif
252 # echo "Do you expect to be rendering $sizemod?"
253 # echo -n '(Answering "yes" may adversly affect rendering time and geometric accuracy) '
254 # set ans="$<"
255 # if ( "$ans" =~ [yY]* ) then
256 #       set opt="$opt -DSMLFLT"
257 # endif
258 # echo -n "Do you have X10 support [n]? "
259 # if ( "$<" =~ [yY]* ) then
260 #       set special="$special x10"
261 # endif
229   source installib
230   sed 's/[        ]*$//' > $rmake << _EOF_
231   #!/bin/sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines