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.1 by greg, Sat Feb 22 02:07:20 2003 UTC vs.
Revision 1.6 by greg, Thu May 29 17:46:35 2003 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "@(#)makeall 2.81 6/12/99 SGI"
2 > # RCSid $Id$
3   #
4   #Added macosX 2001-04-11 by Jean Brange
5   #Deleted obsolete systems 2001-04-18 by Greg Ward
# 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=""
152          set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE"
153 <        set compat="malloc.o getpagesize.o strcmp.o"
153 >        set compat="bmalloc.o getpagesize.o strcmp.o"
154          set arch=hpux
155          breaksw
156   case 3:                 # Silicon Graphics
# Line 178 | Line 174 | case 3:                        # Silicon Graphics
174                  set mach="-w"
175                  set opt="-O2 -DSPEED=200"
176                  set special="ogl"
177 <                set compat="malloc.o strcmp.o"
177 >                set compat="bmalloc.o strcmp.o"
178                  breaksw
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 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
# Line 328 | Line 295 | endif
295   foreach i ( $* )
296          if ( "$i" == clean ) then
297                  echo "Removing library archives..."
298 <                rm -f src/lib/*.a
298 >                rm -f src/lib/*.[ao]
299          endif
300   end
301   exit 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines