Warning, /tools/build_options/unsupported/sp4-64bit 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
3b1228ead4 Cons*0001 #!/bin/bash
0002 #
77f61621cc Jean*0003 # tested on bluesky, ce107 Dec 2005
0004 # using the following invocation:
0005 # ../../../tools/genmake2 -of=../../../tools/build_options/sp4-64bit -mpi -make=gmake
3b1228ead4 Cons*0006
77f61621cc Jean*0007 if test "x$MPI" = xtrue ; then
0008 CC='mpcc_r -q64'
0009 FC='mpxlf95_r -q64'
0010 LINK='mpxlf95_r -q64'
0011 else
0012 CC='cc_r -q64'
0013 FC='xlf95_r -q64'
0014 LINK='mpxlf95_r -q64'
0015 fi
0016
0017 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
3b1228ead4 Cons*0018 S64='$(TOOLSDIR)/set64bitConst.sh'
0019 DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
0020 CPP='/lib/cpp -P'
77f61621cc Jean*0021
0022 #FFLAGS="$FFLAGS -qfixed=72"
0023 FFLAGS="$FFLAGS -qfixed=132"
0024
0025 if test "x$IEEE" = x ; then #- with optimisation:
089fd6f9d7 Cons*0026 FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
77f61621cc Jean*0027 CFLAGS=$FOPTIM
0028 else #- no optimisation + IEEE :
089fd6f9d7 Cons*0029 FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
77f61621cc Jean*0030 CFLAGS=$FOPTIM
0031 fi
0032
0033 #INCLUDES='-I/usr/local/include'
0034 LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib64/r4i4'
0035
0036 if test "x$MPI" = xtrue ; then
0037 INCLUDES='-I/usr/local/include'
0038 INCLUDES="-I/usr/lpp/ppe.poe/include/thread64 $INCLUDES"
15978f0412 Jean*0039 #- used for parallel (MPI) DIVA
0040 # MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64'
0041 # #MPI_HEADER_FILES='mpif.h'
089fd6f9d7 Cons*0042 fi