9 |
# modified by aja 01/00 |
# modified by aja 01/00 |
10 |
|
|
11 |
# Default lists |
# Default lists |
12 |
set DISABLE = ( aim autodiff cal cost ctrl ecco exf grdchk flt ) |
set DISABLE = ( aim autodiff cal cost ctrl ecco exf grdchk flt ptracers seaice therm_seaice bulk_force) |
13 |
set DEFINES = ( ) |
set DEFINES = ( ) |
14 |
set ENABLE = ( ) |
set ENABLE = ( ) |
15 |
set MODS = ( ) |
set MODS = ( ) |
78 |
echo "-enable overrides -disable, ie. a package listed in both is enabled" |
echo "-enable overrides -disable, ie. a package listed in both is enabled" |
79 |
exit |
exit |
80 |
breaksw |
breaksw |
|
case -ieee: |
|
|
set IEEE |
|
|
breaksw |
|
81 |
case -enable=*: |
case -enable=*: |
82 |
set ENABLE = ( $ENABLE `echo $arg | sed 's/-enable=//' | sed 's/,/ /g' `) |
set ENABLE = ( $ENABLE `echo $arg | sed 's/-enable=//' | sed 's/,/ /g' `) |
83 |
breaksw |
breaksw |
84 |
|
case -cpp: |
85 |
|
case -cpp=: |
86 |
|
echo "To define CPP macros use -cpp=arg" |
87 |
|
exit |
88 |
|
breaksw |
89 |
|
case -cpp=*: |
90 |
|
set DEFINES = ( $DEFINES `echo $arg | sed 's/-cpp=//' | sed 's/,/ /g' `) |
91 |
|
breaksw |
92 |
|
case -ieee: |
93 |
|
set IEEE |
94 |
|
breaksw |
95 |
case -mpi: |
case -mpi: |
96 |
echo "Enabling MPI options" |
echo "Enabling MPI options" |
97 |
set USEMPI |
set USEMPI |
100 |
set include_jam_libs |
set include_jam_libs |
101 |
echo "Including paths to JAM libraries" |
echo "Including paths to JAM libraries" |
102 |
breaksw |
breaksw |
103 |
|
case -fc: |
104 |
|
case -fc=: |
105 |
|
echo "To change the compiler (\$FC) you must specify one with -fc=" |
106 |
|
echo "eg. -fc=f90 or -fc=g77" |
107 |
|
exit |
108 |
|
breaksw |
109 |
|
case -fc*: |
110 |
|
if ($?FC) then |
111 |
|
echo Option -fc=... can only be specified once.; exit 1 |
112 |
|
endif |
113 |
|
set FC = ( `echo $arg | sed 's/-fc=//' `) |
114 |
|
breaksw |
115 |
case -help: |
case -help: |
116 |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]" |
echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi] [-jam] [-disable=pkg1[,pkg2,...]] [-enable=pkg1[,pkg2,...]] [-mods=dir1[,dir2,...]] [-rootdir=dir]" |
117 |
cat << EOF |
cat << EOF |
247 |
end |
end |
248 |
if (! $?PACKAGES) then |
if (! $?PACKAGES) then |
249 |
set PACKAGES=() |
set PACKAGES=() |
250 |
foreach pkg (`cd $ROOTDIR/pkg; find . -type d | grep -v CVS | sed 's:\./::' | grep -v "\." | sort`) |
foreach pkg (`cd $ROOTDIR/pkg; find . -type d -print | grep -v CVS | sed 's:\./::' | grep -v "\." | sort`) |
251 |
if (-d $ROOTDIR/pkg/$pkg) set PACKAGES=($PACKAGES $pkg) |
if (-d $ROOTDIR/pkg/$pkg) set PACKAGES=($PACKAGES $pkg) |
252 |
end |
end |
253 |
endif |
endif |
277 |
echo Adding pkg dir: $adr |
echo Adding pkg dir: $adr |
278 |
set SOURCEDIRS = ($SOURCEDIRS $adr) |
set SOURCEDIRS = ($SOURCEDIRS $adr) |
279 |
set INCLUDEDIRS = ($INCLUDEDIRS $adr) |
set INCLUDEDIRS = ($INCLUDEDIRS $adr) |
280 |
|
switch ($dr) |
281 |
|
case ptracers: |
282 |
|
set DEFINES = ($DEFINES '-DALLOW_PTRACERS'); breaksw |
283 |
|
default: |
284 |
|
breaksw |
285 |
|
endsw |
286 |
else |
else |
287 |
echo " *" Package \"$dr\" NOT enabled. |
echo " *" Package \"$dr\" NOT enabled. |
288 |
switch ($dr) |
switch ($dr) |
292 |
set DEFINES = ($DEFINES '-DDISABLE_MOM_VECINV'); breaksw |
set DEFINES = ($DEFINES '-DDISABLE_MOM_VECINV'); breaksw |
293 |
case generic_advdiff: |
case generic_advdiff: |
294 |
set DEFINES = ($DEFINES '-DDISABLE_GENERIC_ADVDIFF'); breaksw |
set DEFINES = ($DEFINES '-DDISABLE_GENERIC_ADVDIFF'); breaksw |
295 |
|
case debug: |
296 |
|
set DEFINES = ($DEFINES '-DDISABLE_DEBUGMODE'); breaksw |
297 |
default: |
default: |
298 |
breaksw |
breaksw |
299 |
endsw |
endsw |
311 |
set INCLUDEDIRS = ($INCLUDEDIRS $idr) |
set INCLUDEDIRS = ($INCLUDEDIRS $idr) |
312 |
end |
end |
313 |
|
|
314 |
|
# Find possible compilers |
315 |
|
if ($?FC) then |
316 |
|
echo "$FC was specified as the compiler" |
317 |
|
else |
318 |
|
echo " " |
319 |
|
switch ($platform) |
320 |
|
case Linux*: |
321 |
|
set likelysuspects=(g77 ifc pgf77 f77 f90 f95) |
322 |
|
breaksw |
323 |
|
default: |
324 |
|
set likelysuspects=(f77) |
325 |
|
breaksw |
326 |
|
endsw |
327 |
|
foreach fc ($likelysuspects) |
328 |
|
set foundfc=`which $fc |& cat - ` |
329 |
|
if (-x $foundfc[1]) then |
330 |
|
if ($?possiblefc) then |
331 |
|
set possiblefc=($possiblefc $fc) |
332 |
|
else |
333 |
|
set possiblefc=$fc |
334 |
|
endif |
335 |
|
endif |
336 |
|
end |
337 |
|
if ($?possiblefc) then |
338 |
|
set FC=$possiblefc[1] |
339 |
|
echo Found these compilers: $possiblefc. Using \"$FC\" as the compiler |
340 |
|
else |
341 |
|
echo "No compiler found\!" |
342 |
|
echo I tried looking for \"$likelysuspects\" in your \$PATH but found none |
343 |
|
echo I will continue anyway and see what happens. |
344 |
|
set FC = ( 'f77' ) |
345 |
|
# exit 13 |
346 |
|
endif |
347 |
|
endif |
348 |
|
|
349 |
# This is the generic configuration. |
# This is the generic configuration. |
350 |
# Platform specific options are chosen below |
# Platform specific options are chosen below |
351 |
set LN = ( 'ln -s' ) |
set LN = ( 'ln -s' ) |
352 |
set CPP = ( '/lib/cpp -P' ) |
set CPP = ( '/lib/cpp -P' ) |
353 |
set S64 = ( '$(TOOLSDIR)/set64bitConst.sh' ) |
set S64 = ( '$(TOOLSDIR)/set64bitConst.sh' ) |
354 |
set KPP = ( ) |
set KPP = ( ) |
355 |
set FC = ( 'f77' ) |
#set FC = ( 'f77' ) |
356 |
set LINK = ( 'f77' ) |
set LINK = $FC |
357 |
|
set MAKEDEPEND = ( 'makedepend' ) |
358 |
set INCLUDES = ( -I. ) |
set INCLUDES = ( -I. ) |
359 |
set FFLAGS = ( ) |
set FFLAGS = ( ) |
360 |
set FOPTIM = ( ) |
set FOPTIM = ( ) |
379 |
# Platform specific options |
# Platform specific options |
380 |
switch ($platform$USEMPI) |
switch ($platform$USEMPI) |
381 |
case OSF1+mpi: |
case OSF1+mpi: |
382 |
|
#ph: e.g. halem.gsfc.nasa.gov |
383 |
echo "Configuring for DEC Alpha with MPI" |
echo "Configuring for DEC Alpha with MPI" |
384 |
set LIBS = ( '-lfmpi -lmpi -lkmp_osfp10 -pthread' ) |
set LIBS = ( '-lfmpi -lmpi -lkmp_osfp10 -pthread' ) |
385 |
|
#ph: -lkmp_osfp10 not needed on some/many platforms |
386 |
case OSF1: |
case OSF1: |
387 |
echo "Configuring for DEC Alpha" |
echo "Configuring for DEC Alpha" |
388 |
set CPP = ( '/usr/bin/cpp -P' ) |
set CPP = ( '/usr/bin/cpp -P' ) |
389 |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC -DWORDLENGTH=1' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_DEC -DWORDLENGTH=1' ) |
390 |
|
set MAKEDEPEND = ( mkdep -f depend.out ) |
391 |
|
#ph: makedepend not available on some/many DEC Alpha's; use mkdep instead |
392 |
set KPP = ( ) |
set KPP = ( ) |
393 |
set KPPFILES = ( ) |
set KPPFILES = ( ) |
394 |
set KFLAGS1 = ( ) |
set KFLAGS1 = ( ) |
395 |
set FC = ( 'f77' ) |
set FC = ( 'f77' ) |
396 |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -automatic -call_shared -notransform_loops -align dcommons' ) |
set FFLAGS = ( '-convert big_endian -r8 -extend_source -automatic -call_shared -notransform_loops -align dcommons' ) |
397 |
set FOPTIM = ( '-O5 -fast -tune host -inline all' ) |
set FOPTIM = ( '-O5 -fast -tune host -inline all' ) |
398 |
|
#ph: -O5 probably too aggressive in conjunction with adjoint code |
399 |
set NOOPTFLAGS = ( '-O0' ) |
set NOOPTFLAGS = ( '-O0' ) |
400 |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
401 |
set RMFILES = ( '*.p.out' ) |
set RMFILES = ( '*.p.out' ) |
416 |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
417 |
set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4 -r8 -static' ) |
set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4 -r8 -static' ) |
418 |
set FOPTIM = ( '-O3' ) |
set FOPTIM = ( '-O3' ) |
419 |
# set NOOPTFLAGS = ( '-O0' ) |
if ($?IEEE) set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4 -static' ) |
420 |
# set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
if ($?IEEE) set FOPTIM = ( '-O0 -OPT:IEEE_arithmetic=1 -OPT:IEEE_NaN_inf=ON' ) |
|
# 'external_fields_load.F' ) |
|
421 |
set RMFILES = ( 'rii_files' ) |
set RMFILES = ( 'rii_files' ) |
422 |
breaksw |
breaksw |
423 |
case o2: |
case o2: |
443 |
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
444 |
set INCLUDES = ( '-I/usr/include' ) |
set INCLUDES = ( '-I/usr/include' ) |
445 |
set FFLAGS = ( '-n32 -extend_source -bytereclen' ) |
set FFLAGS = ( '-n32 -extend_source -bytereclen' ) |
446 |
set FOPTIM = ( '-O2' ) |
set FOPTIM = ( '-O3 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed' ) |
|
set NOOPTFILES = ( 'calc_mom_rhs.F' ) |
|
|
set NOOPTFLAGS = ( '-O1' ) |
|
447 |
set LIBS = ( '-lmpi -lscs' ) |
set LIBS = ( '-lmpi -lscs' ) |
448 |
breaksw |
breaksw |
449 |
|
case o2k_noopt: |
450 |
|
case o2k_noopt+mpi: |
451 |
|
echo "Configuring for SGI Origin2000 running IRIX 6.5" |
452 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
453 |
|
set INCLUDES = ( '-I/usr/include' ) |
454 |
|
set FFLAGS = ( '-n32 -extend_source -bytereclen' ) |
455 |
|
set FOPTIM = ( '-O0' ) |
456 |
|
set LIBS = ( '-lmpi' ) |
457 |
|
breaksw |
458 |
|
case ames_dbg+mpi: |
459 |
|
echo "Configuring for SGI Origin2000 running IRIX 6.5" |
460 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
461 |
|
set INCLUDES = ( '-I/usr/include -I/opt/mpt/1.6.1.beta/usr/include' ) |
462 |
|
set FFLAGS = ( '-n32 -extend_source -bytereclen' ) |
463 |
|
set LIBS = ( '-lmpi -lscs' ) |
464 |
|
set FC = ( 'f90' ) |
465 |
|
set LINK = ( 'f90' ) |
466 |
|
breaksw |
467 |
|
case ames_opt+mpi: |
468 |
|
echo "Configuring for SGI Origin2000 running IRIX 6.5" |
469 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_SGI -DWORDLENGTH=4' ) |
470 |
|
set INCLUDES = ( '-I/usr/include -I/opt/mpt/1.6.1.beta/usr/include' ) |
471 |
|
set FFLAGS = ( '-n32 -extend_source -bytereclen' ) |
472 |
|
set FOPTIM = ( '-O3 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed' ) |
473 |
|
set LIBS = ( '-lmpi -lscs' ) |
474 |
|
set FC = ( 'f90' ) |
475 |
|
set LINK = ( 'f90' ) |
476 |
|
breaksw |
477 |
case onyx: |
case onyx: |
478 |
case onyx+mpi: |
case onyx+mpi: |
479 |
echo "Configuring for SGI ONYX running IRIX64" |
echo "Configuring for SGI ONYX running IRIX64" |
487 |
case SunOS: |
case SunOS: |
488 |
set LN = ( '/usr/bin/ln -s' ) |
set LN = ( '/usr/bin/ln -s' ) |
489 |
set CPP = ( '/usr/ccs/lib/cpp -P' ) |
set CPP = ( '/usr/ccs/lib/cpp -P' ) |
490 |
|
set MAKEDEPEND = ( ${TOOLSDIR}/xmakedepend ) |
491 |
set DEFINES = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 -D_d=E' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 -D_d=E' ) |
492 |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar -r8 -i4 -fsimple=0' ) |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32 -fsimple=0' ) |
493 |
set FOPTIM = ( '-dalign -O3 -xarch=v9' ) |
set FOPTIM = ( '-dalign -O3 -xarch=v9' ) |
494 |
set CFLAGS = ( '-dalign -O3 -xarch=v9' ) |
set CFLAGS = ( '-dalign -O3 -xarch=v9' ) |
495 |
set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' ) |
set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' ) |
501 |
set DEFINES = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 -D_d=E' ) |
set DEFINES = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 -D_d=E' ) |
502 |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
set INCLUDES = ( '-I/usr/local/mpi/include' ) |
503 |
set LIBS = ( '-L/usr/local/mpi/lib/solaris/ch_shmem -lmpi -lthread' \ |
set LIBS = ( '-L/usr/local/mpi/lib/solaris/ch_shmem -lmpi -lthread' \ |
504 |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar -r8 -i4 -fsimple=0' ) |
set FFLAGS = ( '-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32 -fsimple=0' ) |
505 |
set FOPTIM = ( '-dalign -O3 -xarch=v9' ) |
set FOPTIM = ( '-dalign -O3 -xarch=v9' ) |
506 |
set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' ) |
set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' ) |
507 |
'-lsocket -lnsl' ) |
'-lsocket -lnsl' ) |
573 |
echo "Configuring for " $platform |
echo "Configuring for " $platform |
574 |
set LN = ( '/bin/ln -s' ) |
set LN = ( '/bin/ln -s' ) |
575 |
set CPP = ( '/lib/cpp -traditional -P' ) |
set CPP = ( '/lib/cpp -traditional -P' ) |
576 |
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
switch ($FC) |
577 |
set FC = ( 'g77' ) |
case g77: |
578 |
set FFLAGS = ( '-Wimplicit -Wunused -Wuninitialized' ) |
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
579 |
if ($?IEEE) set FFLAGS = ( $FFLAGS '-ffloat-store' ) |
set FFLAGS = ( '-Wimplicit -Wunused -Wuninitialized' ) |
580 |
set FOPTIM = ( '-O3 -malign-double -funroll-loops' ) |
if ($?IEEE) set FFLAGS = ( $FFLAGS '-ffloat-store' ) |
581 |
set LINK = ( 'g77' ) |
set FOPTIM = ( '-O3 -malign-double -funroll-loops' ) |
582 |
|
breaksw |
583 |
|
case pgf77: |
584 |
|
set DEFINES = ( ${DEFINES} '-DWORDLENGTH=4' ) |
585 |
|
set FC = ( 'pgf77' ) |
586 |
|
set FFLAGS = ( '-byteswapio -r8 -Mnodclchk -Mextend' ) |
587 |
|
set FOPTIM = ( '-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform -Kieee' ) |
588 |
|
breaksw |
589 |
|
case ifc: |
590 |
|
set DEFINES = ( ${DEFINES} '-D_BYTESWAPIO -DWORDLENGTH=4' ) |
591 |
|
set FFLAGS = ( '-132 -r8 -i4 -w95 -W0 -WB' ) |
592 |
|
if ($?IEEE) set FFLAGS = ( $FFLAGS '-mp' ) |
593 |
|
set FOPTIM = ( '-O3 -align' ) |
594 |
|
#P3 set FOPTIM = ( $FOPTIM '-tpp6 -xWKM' ) |
595 |
|
#P4 set FOPTIM = ( $FOPTIM '-tpp7 -xWKM' ) |
596 |
|
set LIBS = ( '-lPEPCF90' ) |
597 |
|
breaksw |
598 |
|
default: |
599 |
|
echo Error: Linux compiler not recognized: \$FC=$FC |
600 |
|
exit |
601 |
|
breaksw |
602 |
|
endsw |
603 |
breaksw |
breaksw |
604 |
case T3E: |
case T3E: |
605 |
case sn6312: |
case sn6312: |
635 |
set NOOPTFLAGS = ( '-O0' ) |
set NOOPTFLAGS = ( '-O0' ) |
636 |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
set NOOPTFILES = ( 'barrier.F different_multiple.F external_fields_load.F') |
637 |
breaksw |
breaksw |
638 |
|
case cg01+pgi: |
639 |
|
set LN = ( '/bin/ln -s' ) |
640 |
|
set CPP = ( '/lib/cpp -traditional -P' ) |
641 |
|
set INCLUDES = ( '-I/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/pgi/include' ) |
642 |
|
set DEFINES = ( ${DEFINES} '-DWORDLENGTH=4' ) |
643 |
|
set FC = ( '/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/pgi/bin/mpif77' ) |
644 |
|
set FFLAGS = ( '-byteswapio -r8 -Mnodclchk -Mextend' ) |
645 |
|
# set LIBS = ( '-L/home/cnh/src/gm-1.4/libgm') |
646 |
|
set FOPTIM = ( '-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform -Kieee' ) |
647 |
|
set LINK = ( '/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/pgi/bin/mpif77' ) |
648 |
|
breaksw |
649 |
case SP3: |
case SP3: |
650 |
# originally from A. Biastoch, SIO. |
# originally from A. Biastoch, SIO. |
651 |
|
# e.g. horizon.npaci.edu |
652 |
echo "Configuring for IBM SP POWER3" |
echo "Configuring for IBM SP POWER3" |
653 |
set SOURCEDIRS = ( ./ $SOURCEDIRS ) |
set SOURCEDIRS = ( ./ $SOURCEDIRS ) |
654 |
set LN = ( 'ln -s' ) |
set LN = ( 'ln -s' ) |
663 |
'-bmaxdata:0x80000000 ' ) |
'-bmaxdata:0x80000000 ' ) |
664 |
set LDFLAGS = ( '-O3 -qarch=pwr3 -qtune=pwr3 -qcache=auto -qmaxmem=-1' \ |
set LDFLAGS = ( '-O3 -qarch=pwr3 -qtune=pwr3 -qcache=auto -qmaxmem=-1' \ |
665 |
'-bmaxdata:0x80000000' ) |
'-bmaxdata:0x80000000' ) |
666 |
set LIBS = ( ' timer_stats.o -L/usr/local/apps/mass -lmass' ) |
set LIBS = ( ' -L/usr/local/apps/mass -lmass' ) |
667 |
|
# set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4' ) |
668 |
|
# set FOPTIM = ( '-O3' ) |
669 |
|
# set NOOPTFLAGS = ( '-O0' ) |
670 |
|
# set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
671 |
|
# 'external_fields_load.F' ) |
672 |
|
set RMFILES = ( 'rii_files' ) |
673 |
|
breaksw |
674 |
|
case SP4: |
675 |
|
#ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil |
676 |
|
echo "Configuring for IBM SP POWER4" |
677 |
|
set SOURCEDIRS = ( ./ $SOURCEDIRS ) |
678 |
|
set LN = ( 'ln -s' ) |
679 |
|
set DEFINES = ( ${DEFINES} '-DTARGET_PWR3 -DTARGET_SGI -DWORDLENGTH=4' ) |
680 |
|
set INCLUDES = ( '-I/usr/lpp/ppe.poe/include' ) |
681 |
|
# set CPP = ( '/lib/cpp' ) |
682 |
|
set FC = ( 'mpxlf95' ) |
683 |
|
set LINK = ( 'mpxlf95' ) |
684 |
|
set FLAGS = ( '-O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' \ |
685 |
|
'-bmaxdata:0x80000000 -bloadmap:mitgcmuv.map' ) |
686 |
|
set FFLAGS = ( '-qfixed=132 -O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' \ |
687 |
|
'-bmaxdata:0x80000000 ' ) |
688 |
|
set LDFLAGS = ( '-O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' \ |
689 |
|
'-bmaxdata:0x80000000' ) |
690 |
|
set LIBS = ( ' -L/usr/local/apps/mass -lmass' ) |
691 |
# set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4' ) |
# set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4' ) |
692 |
# set FOPTIM = ( '-O3' ) |
# set FOPTIM = ( '-O3' ) |
693 |
# set NOOPTFLAGS = ( '-O0' ) |
# set NOOPTFLAGS = ( '-O0' ) |
786 |
# CPP : C-preprocessor command |
# CPP : C-preprocessor command |
787 |
# INCLUDES : Directories searched for header files |
# INCLUDES : Directories searched for header files |
788 |
# DEFINES : Macro definitions for CPP |
# DEFINES : Macro definitions for CPP |
789 |
|
# MAKEDEPEND : Dependency generator |
790 |
# KPP : Special preprocessor command (specific to platform) |
# KPP : Special preprocessor command (specific to platform) |
791 |
# KFLAGS : Flags for KPP |
# KFLAGS : Flags for KPP |
792 |
# FC : Fortran compiler command |
# FC : Fortran compiler command |
845 |
LN = ${LN} |
LN = ${LN} |
846 |
# C preprocessor |
# C preprocessor |
847 |
CPP = cat \$< | ${S64} | ${CPP} |
CPP = cat \$< | ${S64} | ${CPP} |
848 |
|
# Dependency generator |
849 |
|
MAKEDEPEND = ${MAKEDEPEND} |
850 |
# Special preprocessor (KAP on DECs, FPP on Crays) |
# Special preprocessor (KAP on DECs, FPP on Crays) |
851 |
KPP = ${KPP} |
KPP = ${KPP} |
852 |
# Fortran compiler |
# Fortran compiler |
892 |
\$(LINK) -o \$@ \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) \$(LIBS) |
\$(LINK) -o \$@ \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) \$(LIBS) |
893 |
depend: |
depend: |
894 |
@make links |
@make links |
895 |
makedepend -o .f \$(DEFINES) \$(INCLUDES) \$(SRCFILES) |
\$(MAKEDEPEND) -o .f \$(DEFINES) \$(INCLUDES) \$(SRCFILES) |
896 |
|
|
897 |
links: \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) |
links: \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) |
898 |
|
|
903 |
@\$(EXECUTABLE) > \$@ |
@\$(EXECUTABLE) > \$@ |
904 |
|
|
905 |
clean: |
clean: |
906 |
-rm -rf *.o *.f *.p ${RMFILES} |
-rm -rf *.o *.f *.p ${RMFILES} work.{pc,pcl} |
907 |
Clean: |
Clean: |
908 |
@make clean |
@make clean |
909 |
@make cleanlinks |
@make cleanlinks |