cafda84d95543491c48dd0c1aff8a814521e948c
[charm.git] / src / arch / mpi-bluegeneq / cc-xlc.sh
1 XLC_TYPICAL_PRE=/opt/ibmcmp/vacpp/bg/12.1
2 XLF_TYPICAL_PRE=/opt/ibmcmp/xlf/bg/14.1
3 XLC_PRE=$XLC_TYPICAL_PRE
4
5 XLC_TYPICAL_POST=bin/bg
6 XLC_POST=$XLC_TYPICAL_POST
7
8 # if no floor set, use typical floor path
9 if test -n "$BGQ_XLC_PRE"
10 then
11   XLC_PRE=$BGQ_XLC_PRE
12 fi
13
14 XLC_F=$XLF_TYPICAL_PRE
15 CMK_CC="$XLC_PRE/${XLC_POST}xlc -qcpluscmt -qhalt=e $BGQ_INC"
16 CMK_CXX="$XLC_PRE/${XLC_POST}xlC -qhalt=e $BGQ_INC"
17 CMK_LD="$CMK_CC"
18 CMK_LDXX="$CMK_CXX"
19 CMK_CF77="$XLC_F/${XLC_POST}xlf "
20 CMK_CF90="$XLC_F/${XLC_POST}xlf90  -qsuffix=f=f90" 
21 CMK_CF90_FIXED="$XLC_F/${XLC_POST}xlf90 " 
22 CMK_C_OPTIMIZE='-O3 -Q'
23 CMK_CXX_OPTIMIZE='-O3 -Q'
24 CMK_AR='ar cq'
25 CMK_NM='nm '
26 CMK_QT="aix"
27 #CMK_NATIVE_CC="/opt/ibmcmp/vacpp/bg/9.0/bin/xlc"
28 #CMK_NATIVE_CXX="/opt/ibmcmp/vacpp/bg/9.0/bin/xlC"
29 CMK_NATIVE_LD="$CMK_NATIVE_CC"
30 CMK_NATIVE_LDXX="$CMK_NATIVE_CXX"
31 CMK_RANLIB="ranlib"
32 CMK_F90LIBS="-L$XLC_F/lib -lxlf90 -lxlopt -lxl -lxlfmath"