e3b4b0e03f66a4a986e86ff60e2b7b7447b9568e
[charm.git] / src / arch / mpi-crayxe / conv-mach.sh
1 #CMK_DEFS="-I/opt/xt-mpt/1.5.47/mpich2-64/T/include "
2 #CMK_LD_DEFS="-lrca "
3
4 CMK_BUILD_CRAY=1
5
6 PGCC=`CC -V 2>&1 | grep pgCC`
7 ICPC=`CC -V 2>&1 | grep Intel`
8
9 CMK_CPP_CHARM="/lib/cpp -P"
10 CMK_CPP_C="cc -E $CMK_DEFS "
11 CMK_CXXPP="CC -E $CMK_DEFS "
12 CMK_CC="cc $CMK_DEFS "
13 CMK_CXX="CC  $CMK_DEFS "
14 CMK_LD="$CMK_CC $CMK_LD_DEFS"
15 CMK_LDXX="$CMK_CXX $CMK_LD_DEFS"
16 # Swap these and set XT[45]_TOPOLOGY in conv-mach.h if doing topo work
17 # on a Cray XT of known dimensions. See src/util/CrayNid.c for details
18 #CMK_LIBS="-lckqt -lrca"
19 CMK_LIBS="-lckqt"
20
21 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
22
23 # compiler for compiling sequential programs
24 if test -n "$PGCC"
25 then
26 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
27 CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 "
28 # gcc is needed for building QT
29 CMK_SEQ_CC="gcc -fPIC "
30 CMK_SEQ_CXX="pgCC -fPIC "
31 elif test -n "$ICPC"
32 then
33 CMK_SEQ_CC="icc -fPIC "
34 CMK_SEQ_CXX="icpc -fPIC "
35 else
36 CMK_SEQ_CC="gcc -fPIC"
37 CMK_SEQ_CXX="g++ -fPIC "
38 fi
39 CMK_SEQ_LD="$CMK_SEQ_CC "
40 CMK_SEQ_LDXX="$CMK_SEQ_CXX "
41 CMK_SEQ_LIBS=""
42
43 # compiler for native programs
44 CMK_NATIVE_CC="gcc "
45 CMK_NATIVE_LD="gcc "
46 CMK_NATIVE_CXX="g++ "
47 CMK_NATIVE_LDXX="g++ "
48 CMK_NATIVE_LIBS=""
49
50 CMK_RANLIB="ranlib"
51 CMK_QT="generic64"
52
53 # for F90 compiler
54 CMK_CF77="ftn "
55 CMK_CF90="ftn "
56 CMK_F90LIBS=""
57 CMK_F90_USE_MODDIR=1
58 CMK_F90_MODINC="-I"
59 CMK_MOD_EXT="mod"
60
61 CMK_NO_BUILD_SHARED=true
62