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.2 by greg, Fri Feb 28 20:06:51 2003 UTC vs.
Revision 1.5 by greg, Thu May 15 05:13:35 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=""
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
182 <        set mach="-Dvoid=char -D_NO_PROTO -DINCL_SEL_H"
182 >        set mach="-Dvoid=char -DNOPROTO -DINCL_SEL_H"
183          set opt="-O"
184          set compat="bmalloc.o erf.o"
185          breaksw
# Line 229 | Line 225 | default:
225          exit 1
226          breaksw
227   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
228   source installib
229   sed 's/[        ]*$//' > $rmake << _EOF_
230   #!/bin/sh
# Line 328 | Line 294 | endif
294   foreach i ( $* )
295          if ( "$i" == clean ) then
296                  echo "Removing library archives..."
297 <                rm -f src/lib/*.a
297 >                rm -f src/lib/*.[ao]
298          endif
299   end
300   exit 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines