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