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.5 by greg, Thu May 15 05:13:35 2003 UTC vs.
Revision 1.12 by greg, Sat Oct 30 04:59:40 2004 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 74 | Line 72 | if ( ! -d $idir/dev ) then
72                  goto again1
73          endif
74   endif
75 + set inpath=0
76 + foreach i ( $path )
77 +        if ( "$i" == "$idir" ) then
78 +                set inpath=1
79 +                break
80 +        endif
81 + end
82   set rmake=$idir/rmake
83   if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then
84          goto gotrmake
85   endif
86   set newrmake
87 < goto skiplicense
83 < cat << _EOF_
84 <
85 <                     RADIANCE LICENSE AGREEMENT
86 <
87 < Radiance is a registered copyright of The Regents of the University of
88 < California ("The Regents"). The Regents grant to you a nonexclusive,
89 < nontransferable license ("License") to use Radiance source code without
90 < fee.  You may not sell or distribute Radiance to others without the
91 < prior express written permission of The Regents.  You may compile and
92 < use this software on any machines to which you have personal access,
93 < and may share its use with others who have access to the same machines.
94 <
95 < NEITHER THE UNITED STATES NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY
96 < OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
97 < LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS
98 < OF ANY INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS
99 < THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.  By downloading, using
100 < or copying this software, you agree to abide by the intellectual property laws
101 < and all other applicable laws of the United States, and by the terms of this
102 < License Agreement. Ownership of the software shall remain solely in The
103 < Regents.  The Regents shall have the right to terminate this License
104 < immediately by written notice upon your breach of, or noncompliance with, any
105 < of its terms.  You shall be liable for any infringement or damages resulting
106 < from your failure to abide by the terms of this License Agreement.
107 <
108 < _EOF_
87 > more src/common/copyright.h
88   echo -n "Do you understand and accept the terms of this agreement [n]? "
89   set ans="$<"
90   if ( "$ans" !~ [yY]* ) exit
112 echo -n "Are you a new Radiance user or with a new address [y]? "
113 set ans="$<"
114 if ( "$ans" !~ [nN]* ) then
115        csh -f newuser
116 else
117        echo `cat src/rt/VERSION` compiled by `whoami` | mail [email protected]
118 endif
119 skiplicense:
91   set special=
92   set arch=
93   set opt=
94   set mach=
95   set compat=
96   set extras=
97 + set esuffix=
98   cat << _EOF_
99  
100   Please select your system type from the following list:
# Line 133 | Line 105 | Please select your system type from the following list
105          4)      AIX (RS/6000)
106          5)      BSDI BSD/386
107          6)      Linux
108 <        7)      MacOS X
108 >        7)      MacOS X
109          8)      FreeBSD
110 <        9)      Other
110 >        9)      Cygwin
111 >        10)     Other
112  
113   _EOF_
114   echo -n "Choice? "
# Line 179 | Line 152 | case 3:                        # Silicon Graphics
152          endsw
153          breaksw
154   case 4:                 # AIX
182        set mach="-Dvoid=char -DNOPROTO -DINCL_SEL_H"
155          set opt="-O"
156 <        set compat="bmalloc.o erf.o"
156 >        set compat="bmalloc.o erf.o strcmp.o"
157 >        set arch=PowerPC
158          breaksw
159   case 5:                 # BSDI BSD/386
160          set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include"
# Line 190 | Line 163 | case 5:                        # BSDI BSD/386
163          set compat="malloc.o erf.o strcmp.o"
164          breaksw
165   case 6:                 # Linux
166 <        set mach="-Dlinux -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
166 >        set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
167          set opt="-O2 -DSPEED=200"
168          set arch=IBMPC
169          set compat="bmalloc.o erf.o getpagesize.o"
170          set extras=CC=gcc
171          breaksw
172 < case 7:                # MacOS X
173 <        set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
174 <        set opt="-O2 -DSPEED=200"
175 <        set arch=PowerPC
176 <        set compat="bmalloc.o"
177 <        set extras="CC=cc CONFIGURE_ARCH=powerpc"
172 > case 7:                 # MacOS X
173 >        set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
174 >        set opt="-O2 -DSPEED=200"
175 >        set arch=PowerPC
176 >        set compat="bmalloc.o"
177 >        set extras="CC=cc CONFIGURE_ARCH=powerpc"
178          set special="ogl"
179 <        breaksw
179 >        breaksw
180   case 8:                 # FreeBSD
181 <        set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
182 <        set opt="-O -DSPEED=200"
183 <        set compat="bmalloc.o erf.o"
184 <        set extras="CC=cc"
181 >        set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
182 >        set opt="-O -DSPEED=200"
183 >        set compat="bmalloc.o erf.o"
184 >        set extras="CC=cc"
185          set arch=IBMPC
186 <        breaksw
187 < case 9:                 # Other
186 >        breaksw
187 > case 9:                 # Cygwin
188 >        set mach="-Dfreebsd -L/usr/lib -L/usr/X11R6/lib -I/usr/include/X11 -I/usr/X11R6/include -DNOSTEREO"
189 >        set opt="-O2 -DSPEED=200"
190 >        set arch=IBMPC
191 >        set compat="bmalloc.o erf.o getpagesize.o"
192 >        set extras="CC=gcc"
193 >        set special="ogl"
194 >        set esuffix=".exe"
195 >        breaksw
196 > case 10:                        # Other
197          set opt="-O"
198          set compat="bmalloc.o erf.o strcmp.o"
199          echo -n "Are you using the GNU C compiler [n]? "
200          if ( "$<" =~ [yY]* ) then
201                  set extras="CC=gcc"
202          endif
203 +        set arch=other
204          breaksw
205   default:
206          echo "Illegal choice\!"
# Line 234 | Line 217 | exec make "SPECIAL=$special" \
217          ARCH=$arch "COMPAT=$compat" \
218          INSTDIR=$idir \
219          LIBDIR=$ldir \
220 +        ESUFFIX=$esuffix \
221          $extras "\$@" -f Rmakefile
222   _EOF_
223   chmod 755 $rmake
# Line 272 | Line 256 | else
256          echo "Done."
257   endif
258   cd ..
259 < if (! -d /usr/tmp) then
260 <        ln -s /tmp /usr/tmp
261 <        if ($status) then
262 <                echo ""
263 <                echo "IMPORTANT: Execute 'sudo ln -s /tmp /usr/tmp'"
264 <                echo ""
265 <        endif
259 > if (! $inpath ) then
260 >        echo ""
261 >        echo "Add $idir to the beginning of your execution path:"
262 >        echo 'For C-shell users, put the following into ~/.cshrc'
263 >        echo "  set path=( $idir "'$path )'
264 >        echo 'For Bourne shell users, put the following into $HOME/profile'
265 >        echo "  PATH=$idir"':$PATH'
266 >        echo "  export PATH"
267   endif
268   else
269   cd src
# Line 288 | Line 273 | foreach i ( $srcdirs )
273          make -f Rmakefile $*
274          popd
275   end
291 echo "Done."
276   cd ..
293 endif
277   foreach i ( $* )
278          if ( "$i" == clean ) then
279                  echo "Removing library archives..."
280                  rm -f src/lib/*.[ao]
281          endif
282   end
283 + echo "Done."
284 + endif
285   exit 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines