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.8 by greg, Thu Jul 17 15:31:26 2003 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2   # RCSid $Id$
3   #
4 #Added macosX 2001-04-11 by Jean Brange
5 #Deleted obsolete systems 2001-04-18 by Greg Ward
6 #
4   # Make all the Radiance programs
5   #
6   if ( $#argv < 1 ) then
# Line 14 | Line 11 | if ( $#argv < 1 ) then
11   endif
12   if ( "$1" == library ) then
13          source installib
14 +        cp -f src/*/*.{cal,tab,hex} $ldir
15          echo ""
16          echo "Set the environment variable RAYPATH=.:$ldir"
17          echo 'For C-shell users, put the following into ~/.cshrc'
# Line 50 | Line 48 | again1:
48   echo -n "Where do you want the executables [/usr/local/bin]? "
49   set idir=$<
50   (echo $idir) >/dev/null
51 < if ( $status ) goto again1
51 > if ( $status ) then
52 >        goto again1
53 > endif
54   set idir=$idir
55   if ( "$idir" == "" ) then
56          set idir=/usr/local/bin
# Line 73 | Line 73 | if ( ! -d $idir/dev ) then
73          endif
74   endif
75   set rmake=$idir/rmake
76 < if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) goto gotrmake
76 > if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then
77 >        goto gotrmake
78 > endif
79   set newrmake
80   goto skiplicense
81   cat << _EOF_
# Line 139 | Line 141 | set arch="$<"
141   switch ("$arch")
142   case 1:                 # SPARC Station
143          set arch=sun
144 <        if ( `uname -r` =~ 4.* ) then
145 <                set mach="-fsingle -DBSD /usr/lib/libm.il -I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
146 <                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
144 >        set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
145 >        set opt="-O -DSPEED=80"
146 >        set compat="bmalloc.o strcmp.o getpagesize.o"
147          breaksw
148   case 2:                 # HP workstation
149          set mach=""
150          set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE"
151 <        set compat="malloc.o getpagesize.o strcmp.o"
151 >        set compat="bmalloc.o getpagesize.o strcmp.o"
152          set arch=hpux
153          breaksw
154   case 3:                 # Silicon Graphics
# Line 178 | Line 172 | case 3:                        # Silicon Graphics
172                  set mach="-w"
173                  set opt="-O2 -DSPEED=200"
174                  set special="ogl"
175 <                set compat="malloc.o strcmp.o"
175 >                set compat="bmalloc.o strcmp.o"
176                  breaksw
177          endsw
178          breaksw
179   case 4:                 # AIX
186        set mach="-Dvoid=char -D_NO_PROTO -DINCL_SEL_H"
180          set opt="-O"
181 <        set compat="bmalloc.o erf.o"
181 >        set compat="bmalloc.o erf.o strcmp.o"
182 >        set arch=PowerPC
183          breaksw
184   case 5:                 # BSDI BSD/386
185          set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include"
# Line 194 | Line 188 | case 5:                        # BSDI BSD/386
188          set compat="malloc.o erf.o strcmp.o"
189          breaksw
190   case 6:                 # Linux
191 <        set mach="-Dlinux -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
191 >        set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
192          set opt="-O2 -DSPEED=200"
193          set arch=IBMPC
194          set compat="bmalloc.o erf.o getpagesize.o"
# Line 222 | Line 216 | case 9:                        # Other
216          if ( "$<" =~ [yY]* ) then
217                  set extras="CC=gcc"
218          endif
219 +        set arch=other
220          breaksw
221   default:
222          echo "Illegal choice\!"
# Line 229 | Line 224 | default:
224          exit 1
225          breaksw
226   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
227   source installib
228   sed 's/[        ]*$//' > $rmake << _EOF_
229   #!/bin/sh
# Line 328 | Line 293 | endif
293   foreach i ( $* )
294          if ( "$i" == clean ) then
295                  echo "Removing library archives..."
296 <                rm -f src/lib/*.a
296 >                rm -f src/lib/*.[ao]
297          endif
298   end
299   exit 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines