1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# |
# $Name$ |
5 |
|
|
6 |
# tested on bluesky, EH3 2003-09-04 |
# tested on bluesky, ce107 Oct 2005 |
7 |
# using the following invocation: |
# using the following invocation: |
8 |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp4 -make=gmake |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp4 -make=gmake |
9 |
|
|
|
|
|
10 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
S64='$(TOOLSDIR)/set64bitConst.sh' |
11 |
MAKEDEPEND=makedepend |
MAKEDEPEND=makedepend |
12 |
DEFINES='-DTARGET_PWR3 -DTARGET_SGI -DWORDLENGTH=4' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4' |
13 |
|
|
14 |
#ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil |
#ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil |
15 |
LN='ln -s' |
INCLUDES='-I/usr/lpp/ppe.poe/include/thread -I/usr/local/include' |
|
INCLUDES='-I/usr/lpp/ppe.poe/include' |
|
|
# set CPP = ( '/lib/cpp' ) |
|
16 |
CPP='/lib/cpp -P' |
CPP='/lib/cpp -P' |
17 |
FC='mpxlf95' |
CC='mpcc_r' |
18 |
LINK='mpxlf95' |
FC='mpxlf95_r' |
19 |
LIBS=' -L/usr/local/apps/mass -lmass' |
LINK='mpxlf95_r' |
20 |
# set FFLAGS = ( '-extend_source -mp -mpio -bytereclen -r10000 -mips4' ) |
LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib/r4i4' |
21 |
FFLAGS='-qfixed=132 -O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1 -bmaxdata:0x80000000' |
FFLAGS='-qfixed=132 -bmaxdata:0x80000000' |
22 |
# set FOPTIM = ( '-O3' ) |
if test "x$IEEE" = x ; then |
23 |
# set NOOPTFLAGS = ( '-O0' ) |
# No need for IEEE-754 |
24 |
# set NOOPTFILES = ( 'barrier.F different_multiple.F ' \ |
FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
25 |
# 'external_fields_load.F' ) |
CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
26 |
RMFILES='rii_files' |
else |
27 |
|
# Try to follow IEEE-754 |
28 |
|
FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
29 |
|
CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
30 |
|
fi |
31 |
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
32 |
|
MPI_HEADER_FILES='mpif.h' |
33 |
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h' |
34 |
|
MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread' |
35 |
|
HPMTINC='-I/usr/local/hpmtoolkit/include' |
36 |
|
HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi' |
37 |
|
GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include' |
38 |
|
GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas' |
39 |
|
PAPIINC='-I/usr/local/include' |
40 |
|
PAPILIB='-L/usr/local/lib -lpapi' |