some tweak to seq_cc
[charm.git] / src / arch / gemini_gni-crayxe / conv-mach.sh
1 PMI_CFLAGS=`pkg-config --cflags cray-pmi`
2 PMI_LIBS=`pkg-config --libs cray-pmi`
3 UGNI_CFLAGS=`pkg-config --cflags cray-ugni`
4 UGNI_LIBS=`pkg-config --libs cray-ugni`
5
6 PGCC=`CC -V 2>/dev/null | grep pgCC`
7
8 CMK_CPP_CHARM='/lib/cpp -P'
9 CMK_CPP_C="cc -E"
10 CMK_CC="cc $PMI_CFLAGS $UGNI_CFLAGS "
11 CMK_CXX="CC $PMI_CFLAGS $UGNI_CFLAGS"
12 CMK_CXXPP="$CMK_CXX -x c++ -E  "
13 CMK_LD="eval $CMK_CC "
14 CMK_LIBS='-lckqt'
15 CMK_LD_LIBRARY_PATH="-rpath $CHARMLIBSO/ $PMI_LIBS $UGNI_LIBS"
16
17 CMK_QT="generic64"
18
19 # compiler for compiling sequential programs
20 if test -n "$PGCC"
21 then
22 CMK_CC="$CMK_CC -DCMK_CC_PGCC=1 "
23 CMK_CXX="$CMK_CXX -DCMK_CC_PGCC=1 "
24 # gcc is needed for building QT
25 CMK_SEQ_CC="gcc "
26 CMK_SEQ_CXX="pgCC "
27 else
28 CMK_SEQ_CC="gcc "
29 CMK_SEQ_CXX="g++ "
30 fi
31 CMK_SEQ_LD="$CMK_SEQ_CC "
32 CMK_SEQ_LDXX="$CMK_SEQ_CXX "
33 CMK_SEQ_LIBS=""
34
35 # compiler for native programs
36 CMK_NATIVE_CC="gcc "
37 CMK_NATIVE_LD="gcc "
38 CMK_NATIVE_CXX="g++ "
39 CMK_NATIVE_LDXX="g++ "
40 CMK_NATIVE_LIBS=""
41
42 CMK_RANLIB="ranlib"
43
44 # for F90 compiler
45 CMK_CF77="ftn "
46 CMK_CF90="ftn "
47 CMK_F90LIBS=""
48 CMK_F90_USE_MODDIR=1
49 CMK_F90_MODINC="-I"
50 CMK_MOD_EXT="mod"
51
52 CMK_NO_BUILD_SHARED=true