| 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 |
| 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 |
| 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_ |
| 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 |
| 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 |
| 324 |
|
foreach i ( $* ) |
| 325 |
|
if ( "$i" == clean ) then |
| 326 |
|
echo "Removing library archives..." |
| 327 |
< |
rm -f src/lib/*.a |
| 327 |
> |
rm -f src/lib/*.[ao] |
| 328 |
|
endif |
| 329 |
|
end |
| 330 |
|
exit 0 |