Adding linking support for zlib library on BG/P.
[charm.git] / src / arch / mpi-bluegenep / conv-mach.sh
1 BGP_TYPICAL_FLOOR=/bgsys/drivers/ppcfloor
2
3 # if no floor set, use typical floor path
4 if test -z "$BGP_FLOOR"
5 then
6   BGP_FLOOR=$BGP_TYPICAL_FLOOR
7 fi
8
9 # if no install path (for experimental) set, use floor
10 if test -z "$BGP_INSTALL"
11 then
12   BGP_INSTALL=$BGP_TYPICAL_FLOOR
13 fi
14
15 BGP_ZLIB=/soft/apps/zlib-1.2.3
16
17 BGP_BIN=$BGP_FLOOR/gnu-linux/bin
18 BGP_INC="-I$BGP_INSTALL/comm/include -I$BGP_INSTALL/arch/include -I$BGP_ZLIB/include "
19
20 BGP_LIB="-L$BGP_INSTALL/comm/lib -L$BGP_INSTALL/runtime/SPI -L$BGP_ZLIB/lib "
21
22 # test if compiler binary present
23 if test ! -x $BGP_BIN/powerpc-bgp-linux-g++
24 then
25  echo "ERROR: Invalid BGP_INSTALL or BGP_FLOOR, C/C++ compiler missing"
26  exit 1
27 fi
28
29 OPTS_CPP="$OPTS_CPP"
30 GCC_OPTS="-gdwarf-2 -Wno-deprecated $BGP_INC"
31 OPTS_LD="$OPTS_LD"
32
33 CMK_CPP_CHARM="$BGP_BIN/powerpc-bgp-linux-cpp -P"
34 CMK_CPP_C="$BGP_BIN/powerpc-bgp-linux-cpp -E "
35 CMK_CXX="$BGP_BIN/powerpc-bgp-linux-g++ $GCC_OPTS "
36 CMK_GCXX="$BGP_BIN/powerpc-bgp-linux-g++ $GCC_OPTS "
37 CMK_CC="$BGP_BIN/powerpc-bgp-linux-gcc $GCC_OPTS "
38 CMK_CXXPP="$BGP_BIN/powerpc-bgp-linux-g++ -E "
39 CMK_CF77="$BGP_BIN/powerpc-bgp-linux-gfortran "
40 CMK_CF90='f90'
41 CMK_RANLIB="$BGP_BIN/powerpc-bgp-linux-ranlib "
42 CMK_AR="$BGP_BIN/powerpc-bgp-linux-ar q "
43 CMK_LD="$CMK_CC $BGP_LIB"
44 CMK_LDXX="bgxlC $BGP_LIB"
45 CMK_LIBS='-lckqt -lmpich.cnk -ldcmf.cnk -ldcmfcoll.cnk -lpthread -lrt -lSPI.cna'
46 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
47 #CMK_SEQ_LIBS=''
48 #CMK_SEQ_CC="$BGP_BIN/powerpc-bgp-linux-gcc -Wno-deprecated "
49 #CMK_SEQ_LD="$CMK_SEQ_CC"
50 #CMK_SEQ_CXX="$BGP_BIN/powerpc-bgp-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="aix"