mpi-bluegeneq-smp changes.
[charm.git] / src / arch / multicore-linux-ppc / conv-mach.sh
1 CMK_DEFS=' -D_REENTRANT '
2 CMK_CPP_CHARM="/lib/cpp -P"
3 CMK_CPP_C="gcc -E"
4 CMK_CC="gcc -fPIC $CMK_DEFS "
5 CMK_CXX="g++ -fPIC $CMK_DEFS "
6 CMK_CXXPP="$CMK_CXX -x c++ -E "
7 CMK_RANLIB="ranlib"
8 CMK_LIBS="-lckqt -lpthread"
9 #CMK_LD="$CMK_CC -Wl,--allow-multiple-definition "
10 #CMK_LDXX="$CMK_CXX -Wl,--allow-multiple-definition "
11 CMK_LD="$CMK_CC  $CMK_DEFS "
12 CMK_LDXX="$CMK_CXX  $CMK_DEFS "
13 CMK_LD_SHARED="-shared"
14 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
15 CMK_XIOPTS=""
16 CMK_QT="linux-smp"
17
18 # fortran compiler Absoft or gnu f95
19 CMK_CF77="g77 "
20 CMK_F77LIBS="-lg2c "
21 CMK_CF90=`which xlf90_r 2>/dev/null`
22 if test -n "$CMK_CF90"
23 then
24 # xlf
25   bindir=`dirname $CMK_CF90`
26   libdir="$bindir/../lib"
27   CMK_CF90="$CMK_CF90 -qpic=large -qthreaded -qlanglvl=90std -qwarn64 -qspill=32648 -qsuppress=1513-029:1518-012:1518-059 -qsuffix=f=f90:cpp=F90 "
28   CMK_CF90_FIXED="$CMK_CF90 -qsuffix=f=f:cpp=F -qfixed=132 "
29   CMK_F90LIBS="-L/opt/ibmcmp/xlf/11.1/bin/../../../xlsmp/1.7/lib -L$libdir -lxl -lxlf90 -lxlfmath -lxlopt -lxlsmp"
30   CMK_F90_USE_MODDIR=1
31   CMK_F90_MODINC="-I"
32 else
33 # gnu f95
34   CMK_CF90=`which f95 2>/dev/null`
35   if test -n "$CMK_CF90"
36   then
37     CMK_FPP="/lib/cpp -P -CC"
38     CMK_CF90="$CMK_CF90 -fpic -fautomatic -fdollar-ok "
39     CMK_CF90_FIXED="$CMK_CF90 -ffixed-form "
40     CMK_F90LIBS="-lgfortran "
41     CMK_F90_USE_MODDIR=1
42     CMK_F90_MODINC="-I"
43   fi
44 fi