Warning, /tools/build_options/unsupported/sp4 is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
2ff82eb834 Ed H*0001 #!/bin/bash
0002 #
6144427bd2 Jean*0003 # tested on bluesky, ce107 Oct 2005
b34aa4cc66 Ed H*0004 # using the following invocation:
f2305ea578 Jean*0005 # ../../../tools/genmake2 -of=../../../tools/build_options/sp4 -mpi -make=gmake
b34aa4cc66 Ed H*0006
f2305ea578 Jean*0007 if test "x$MPI" = xtrue ; then
0008 CC='mpcc_r'
0009 FC='mpxlf95_r'
0010 LINK='mpxlf95_r'
0011 else
0012 CC='cc_r'
0013 FC='xlf95_r'
0014 LINK='xlf95_r'
0015 fi
2ff82eb834 Ed H*0016
f2305ea578 Jean*0017 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
0018 S64='$(TOOLSDIR)/set64bitConst.sh'
0019 DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
b34aa4cc66 Ed H*0020 CPP='/lib/cpp -P'
f2305ea578 Jean*0021
0022 #FFLAGS="$FFLAGS -qfixed=72"
0023 FFLAGS="$FFLAGS -qfixed=132 -bmaxdata:0x80000000"
0024
0025 if test "x$IEEE" = x ; then #- with optimisation:
089fd6f9d7 Cons*0026 FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
f2305ea578 Jean*0027 CFLAGS=$FOPTIM
0028 else #- no optimisation + IEEE :
089fd6f9d7 Cons*0029 FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
f2305ea578 Jean*0030 CFLAGS=$FOPTIM
089fd6f9d7 Cons*0031 fi
f2305ea578 Jean*0032
089fd6f9d7 Cons*0033 HPMTINC='-I/usr/local/hpmtoolkit/include'
0034 HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi'
0035 GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include'
0036 GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas'
0037 PAPIINC='-I/usr/local/include'
0038 PAPILIB='-L/usr/local/lib -lpapi'
f2305ea578 Jean*0039
0040 #ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil
0041 INCLUDES='-I/usr/local/include'
0042 LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib/r4i4'
0043
0044 if test "x$MPI" = xtrue ; then
0045 INCLUDES="-I/usr/lpp/ppe.poe/include/thread $INCLUDES"
15978f0412 Jean*0046 #- used for parallel (MPI) DIVA
f2305ea578 Jean*0047 MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'
15978f0412 Jean*0048 #MPI_HEADER_FILES='mpif.h'
f2305ea578 Jean*0049 else
0050 # the original "sp4-32bit" as "/usr/local/lib32" instead of "/usr/local/lib"
0051 LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib32/r4i4'
0052 fi