135 |
set mach = ( `uname -a` ) |
set mach = ( `uname -a` ) |
136 |
echo Operating system: $mach |
echo Operating system: $mach |
137 |
|
|
|
|
|
138 |
# Directories for source, includes, binaries and executables |
# Directories for source, includes, binaries and executables |
139 |
# |
# |
140 |
# If -rootdir wasn't specified then assume script is being run from bin |
# If -rootdir wasn't specified then assume script is being run from bin |
193 |
endif |
endif |
194 |
if (! $?EXECUTABLE) set EXECUTABLE = ( mitgcmuv ) |
if (! $?EXECUTABLE) set EXECUTABLE = ( mitgcmuv ) |
195 |
|
|
196 |
|
# We have a special set of source files in eesupp/src which |
197 |
|
# are generated from some template source files. We'll make them |
198 |
|
# first so the appear as regular source code |
199 |
|
if (-r $ROOTDIR/eesupp/src/Makefile) then |
200 |
|
echo Making source files in eesupp from templates... |
201 |
|
(cd $ROOTDIR/eesupp/src/; make) >& make_eesupp.errs |
202 |
|
if ($status == 0) then |
203 |
|
rm -f make_eesupp.errs |
204 |
|
else |
205 |
|
cat make_eesupp.errs |
206 |
|
exit 2 |
207 |
|
endif |
208 |
|
endif |
209 |
|
|
210 |
# Now scan the standard source code tree |
# Now scan the standard source code tree |
211 |
foreach dr ($SOURCEDIRS) |
foreach dr ($SOURCEDIRS) |
212 |
set adr=$dr |
set adr=$dr |