Merge optimizations/fixes/changes from pami-bgq branch.
[charm.git] / src / arch / pami-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_BIN=$BGQ_FLOOR/gnu-linux/bin
16 BGQ_INC="-I$BGQ_INSTALL/comm/sys/include -I$BGQ_INSTALL/spi/include -I$BGQ_INSTALL -I$BGQ_INSTALL/spi/include/kernel/cnk/"
17
18 BGQ_LIB="-L$BGQ_INSTALL/comm/sys-fast/lib -lpami -L$BGQ_INSTALL/spi/lib -lSPI -lSPI_cnk -lpthread -lrt" 
19 #"-pg -L/bghome/boger/sandbox/src-110606/bgq/work/gnu-linux/powerpc64-bgq-linux/lib -lc"
20
21 # test if compiler binary present
22 if test ! -x $BGQ_BIN/powerpc64-bgq-linux-g++
23 then
24  echo "ERROR: Invalid BGQ_INSTALL or BGQ_FLOOR, C/C++ compiler missing"
25  exit 1
26 fi
27
28 OPTS_CPP="$OPTS_CPP"
29 GCC_OPTS="-Wno-deprecated $BGQ_INC"
30 OPTS_LD="$OPTS_LD"
31
32 CMK_CPP_CHARM="$BGQ_BIN/powerpc64-bgq-linux-cpp -P"
33 CMK_CPP_C="$BGQ_BIN/powerpc64-bgq-linux-cpp -E "
34 CMK_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
35 CMK_GCXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
36 CMK_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc $GCC_OPTS "
37 CMK_CXXPP="$BGQ_BIN/powerpc64-bgq-linux-g++ -E "
38 CMK_CF77="$BGQ_BIN/powerpc64-bgq-linux-gfortran "
39 CMK_CF90='f90'
40 CMK_RANLIB="$BGQ_BIN/powerpc64-bgq-linux-ranlib "
41 CMK_AR="$BGQ_BIN/powerpc64-bgq-linux-ar q "
42 CMK_SYSLIBS="$BGQ_LIB"
43 CMK_LIBS='-lckqt'
44 CMK_LD="$CMK_CC"
45 CMK_LDXX="$CMK_CXX"
46 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
47 #CMK_SEQ_LIBS=''
48 #CMK_SEQ_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc -Wno-deprecated "
49 #CMK_SEQ_LD="$CMK_SEQ_CC"
50 #CMK_SEQ_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ -Wno-deprecated "
51 #CMK_SEQ_LDXX="$CMK_SEQ_CXX"
52 CMK_NATIVE_CC='gcc '
53 CMK_NATIVE_LD='gcc '
54 CMK_NATIVE_CXX='g++ -Wno-deprecated '
55 CMK_NATIVE_LDXX='g++'
56 CMK_F90LIBS='-lf90math -lfio -lU77 -lf77math '
57 CMK_MOD_NAME_ALLCAPS=1
58 CMK_MOD_EXT="mod"
59 CMK_F90_USE_MODDIR=1
60 CMK_F90_MODINC="-p"
61 CMK_QT="generic64"