97 |
set CPP = ( '/usr/bin/cpp -P' ) |
set CPP = ( '/usr/bin/cpp -P' ) |
98 |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC' ) |
99 |
set KPP = ( 'kapf' ) |
set KPP = ( 'kapf' ) |
100 |
|
set KPPFILES = ( 'main.F' ) |
101 |
set KFLAGS1 = ( '-scan=132 -noconc -cmp=' ) |
set KFLAGS1 = ( '-scan=132 -noconc -cmp=' ) |
102 |
set FC = ( 'f77' ) |
set FC = ( 'f77' ) |
103 |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -u -automatic -call_shared -notransform_loops -align dcommons' ) |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -u -automatic -call_shared -notransform_loops -align dcommons' ) |
140 |
'-lsocket -lnsl -fast' ) |
'-lsocket -lnsl -fast' ) |
141 |
set NOOPTFILES = ( 'barrier.F different_multiple.F load_external_fields.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F load_external_fields.F') |
142 |
breaksw |
breaksw |
143 |
|
case onyx: |
144 |
|
case onyx+mpi: |
145 |
|
echo "Configuring for SGI ONYX running IRIX64" |
146 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_SGI' ) |
147 |
|
set INCLUDES = ( '-I/usr/include' ) |
148 |
|
set FFLAGS = ( '-extend_source -bytereclen -r10000 -64' ) |
149 |
|
set FOPTIM = ( '-O2' ) |
150 |
|
set NOOPTFLAGS = ( '-O0' ) |
151 |
|
set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
152 |
|
'load_external_fields.F' ) |
153 |
|
set LIBS = ( '-lmpi' ) |
154 |
|
breaksw |
155 |
|
case exemplar: |
156 |
|
case exemplar+mpi: |
157 |
|
echo "Configuring for HP Exemplar" |
158 |
|
set CPP = ( '/usr/ccs/lbin/cpp -P' ) |
159 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_HP' ) |
160 |
|
set INCLUDES = ( '-I/opt/mpi/include' ) |
161 |
|
set FC = ( 'mpif77' ) |
162 |
|
set LINK = ( 'mpif77' ) |
163 |
|
set FFLAGS = ( '+es +U77 +Onoautopar +Oexemplar_model' \ |
164 |
|
'+Okernel_threads' ) |
165 |
|
set FOPTIM = ( '+O2' ) |
166 |
|
set NOOPTFLAGS = ( '-O0' ) |
167 |
|
set NOOPTFILES = ( 'barrier.F different_multiple.F' \ |
168 |
|
'load_external_fields.F' ) |
169 |
|
breaksw |
170 |
default: |
default: |
171 |
echo "Error: platform not recognized: uname -p = " $platform$USEMPI |
echo "Error: platform not recognized: uname -p = " $platform$USEMPI |
172 |
exit |
exit |
181 |
############################################################################### |
############################################################################### |
182 |
|
|
183 |
# Create list of files |
# Create list of files |
184 |
set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.F'` |
set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.[F]$'` |
185 |
if ( $#flist ) then |
if ( $#flist ) then |
186 |
echo -n "SRCFILES = " > srclist.inc |
echo -n "SRCFILES = " > srclist.inc |
187 |
echo -n "F77FILES = " > f77list.inc |
echo -n "F77FILES = " > f77list.inc |
195 |
echo ' \' >> objlist.inc |
echo ' \' >> objlist.inc |
196 |
echo -n " " ${fname:r}.o >> objlist.inc |
echo -n " " ${fname:r}.o >> objlist.inc |
197 |
end |
end |
|
echo " " >> srclist.inc |
|
|
echo " " >> f77list.inc |
|
|
echo " " >> objlist.inc |
|
198 |
else |
else |
199 |
echo No source files found...\! |
echo No source files found...\! |
200 |
exit |
exit |
201 |
endif |
endif |
202 |
|
set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.[c]$'` |
203 |
|
if ( $#flist ) then |
204 |
|
foreach ff ( ${flist} ) |
205 |
|
set fname = ( ${ff:t} ) |
206 |
|
echo ' \' >> objlist.inc |
207 |
|
echo -n " " ${fname:r}.o >> objlist.inc |
208 |
|
endif |
209 |
|
echo " " >> srclist.inc |
210 |
|
echo " " >> f77list.inc |
211 |
|
echo " " >> objlist.inc |
212 |
|
|
213 |
# Convert lists of directories into command-line options |
# Convert lists of directories into command-line options |
214 |
foreach inc ($INCLUDEDIRS) |
foreach inc ($INCLUDEDIRS) |
216 |
end |
end |
217 |
set SRCSTARS = ( ) |
set SRCSTARS = ( ) |
218 |
foreach dr ($SOURCEDIRS) |
foreach dr ($SOURCEDIRS) |
219 |
set SRCSTARS = ("${SRCSTARS}" $dr/\*.F) |
set SRCSTARS = ("${SRCSTARS}" $dr\*.F $dr\*.c ) |
220 |
end |
end |
221 |
|
|
222 |
set THISHOSTNAME = ( `hostname` ) |
set THISHOSTNAME = ( `hostname` ) |
296 |
cat >> ${mfile} <<EOF |
cat >> ${mfile} <<EOF |
297 |
|
|
298 |
.SUFFIXES: |
.SUFFIXES: |
299 |
.SUFFIXES: .o .f .p .F |
.SUFFIXES: .o .f .p .F .c |
300 |
|
|
301 |
all: \$(EXECUTABLE) |
all: \$(EXECUTABLE) |
302 |
\$(EXECUTABLE): \$(OBJFILES) |
\$(EXECUTABLE): \$(OBJFILES) |