cb22c478c4e58421c031eddf9bc8a9898b2dafb9
[charm.git] / src / arch / pamilrts-bluegeneq / conv-mach.sh
1 BGQ_TYPICAL_FLOOR=/bgsys/drivers/ppcfloor
2
3 # if no floor set, use typical floor path
4 if test -z "$BGQ_FLOOR"
5 then
6   BGQ_FLOOR=$BGQ_TYPICAL_FLOOR
7 fi
8
9 # if no install path (for experimental) set, use floor
10 if test -z "$BGQ_INSTALL"
11 then
12   BGQ_INSTALL=$BGQ_TYPICAL_FLOOR
13 fi
14
15 BGQ_ZLIB=/soft/libraries/alcf/current/gcc/ZLIB/
16
17 BGQ_BIN=$BGQ_FLOOR/gnu-linux/bin
18 BGQ_INC="-I$BGQ_INSTALL/comm/sys/include -I$BGQ_INSTALL/spi/include -I$BGQ_INSTALL -I$BGQ_INSTALL/spi/include/kernel/cnk -I$BGQ_ZLIB/include"
19
20 BGQ_LIB="-L$BGQ_INSTALL/comm/sys-fast/lib -lpami -L$BGQ_INSTALL/spi/lib -L$BGQ_ZLIB/lib -lSPI -lSPI_cnk -lpthread -lrt" 
21
22 # test if compiler binary present
23 if test ! -x $BGQ_BIN/powerpc64-bgq-linux-g++
24 then
25  echo "ERROR: Invalid BGQ_INSTALL or BGQ_FLOOR, C/C++ compiler missing"
26  exit 1
27 fi
28
29 OPTS_CPP="$OPTS_CPP"
30 GCC_OPTS="-Wno-deprecated $BGQ_INC"
31 OPTS_LD="$OPTS_LD"
32
33 CMK_CPP_CHARM="$BGQ_BIN/powerpc64-bgq-linux-cpp -P"
34 CMK_CPP_C="$BGQ_BIN/powerpc64-bgq-linux-cpp -E "
35 CMK_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
36 CMK_GCXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
37 CMK_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc $GCC_OPTS "
38 CMK_CXXPP="$BGQ_BIN/powerpc64-bgq-linux-g++ -E "
39 CMK_CF77="$BGQ_BIN/powerpc64-bgq-linux-gfortran "
40 CMK_CF90='f90'
41 CMK_RANLIB="$BGQ_BIN/powerpc64-bgq-linux-ranlib "
42 CMK_AR="$BGQ_BIN/powerpc64-bgq-linux-ar q "
43 CMK_SYSLIBS="$BGQ_LIB"
44 CMK_LIBS='-lckqt'
45 CMK_LD="$CMK_CC"
46 CMK_LDXX="$CMK_CXX"
47 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
48 #CMK_SEQ_LIBS=''
49 #CMK_SEQ_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc -Wno-deprecated "
50 #CMK_SEQ_LD="$CMK_SEQ_CC"
51 #CMK_SEQ_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ -Wno-deprecated "
52 #CMK_SEQ_LDXX="$CMK_SEQ_CXX"
53 CMK_NATIVE_CC='gcc '
54 CMK_NATIVE_LD='gcc '
55 CMK_NATIVE_CXX='g++ -Wno-deprecated '
56 CMK_NATIVE_LDXX='g++'
57 CMK_F90LIBS='-lf90math -lfio -lU77 -lf77math '
58 CMK_MOD_NAME_ALLCAPS=1
59 CMK_MOD_EXT="mod"
60 CMK_F90_USE_MODDIR=1
61 CMK_F90_MODINC="-p"
62 CMK_QT="generic64"