New version with interrupt/thread support.
[charm.git] / src / arch / bluegenel / conv-mach.sh
1 BGL_TYPICAL_FLOOR=/bgl/BlueLight/ppcfloor
2
3 #BGL_SRC=/bgd-public/chuang10/bglsw
4 #BGL_INSTALL=/bgd-public/chuang10/bglsw-install
5 #BGL_FLOOR=/auto/BGX/floor
6
7 # if no floor set, use typical floor path
8 if test -z "$BGL_FLOOR"
9 then
10   BGL_FLOOR=$BGL_TYPICAL_FLOOR
11 fi
12
13 # if no install path (for experimental) set, use floor
14 if test -z "$BGL_INSTALL"
15 then
16   BGL_INSTALL=$BGL_FLOOR
17 fi
18
19 BGL_BIN=$BGL_FLOOR/blrts-gnu/bin
20 BGL_INC="-I$BGL_INSTALL/bglsys/include"
21 #-I$BGL_INSTALL/blrts-gnu/powerpc-bgl-blrts-gnu/sys-include/" 
22
23 #BGL_LIB="-L$BGL_INSTALL/bglsys/lib -L/gsa/watgsa/home/s/a/sameer77/bgx/new2/bglsw-install/blrts-gnu/powerpc-bgl-blrts-gnu/lib -lc"
24
25 BGL_LIB="-L$BGL_INSTALL/bglsys/lib -L$BGL_INSTALL/blrts-gnu/powerpc-bgl-blrts-gnu/lib"
26
27 # test if compiler binary present
28 if test ! -x $BGL_BIN/powerpc-bgl-blrts-gnu-g++
29 then
30  echo "ERROR: Invalid BGL_INSTALL or BGL_FLOOR, C/C++ compiler missing"
31  exit 1
32 fi
33
34 OPTS_CPP="$OPTS_CPP"
35 GCC_OPTS="-gdwarf-2 -Wno-deprecated $BGL_INC -I$BGL_INSTALL/blrts-gnu/powerpc-bgl-blrts-gnu/sys-include"
36 OPTS_LD="$OPTS_LD"
37
38 CMK_CPP_CHARM="$BGL_BIN/powerpc-bgl-blrts-gnu-cpp -P"
39 CMK_CPP_C="$BGL_BIN/powerpc-bgl-blrts-gnu-cpp -E "
40 CMK_CXX="$BGL_BIN/powerpc-bgl-blrts-gnu-g++ $GCC_OPTS "
41 CMK_GCXX="$BGL_BIN/powerpc-bgl-blrts-gnu-g++ $GCC_OPTS "
42 CMK_CC="$BGL_BIN/powerpc-bgl-blrts-gnu-gcc $GCC_OPTS "
43 CMK_CXXPP="$BGL_BIN/powerpc-bgl-blrts-gnu-g++ -E "
44 CMK_CF77="$BGL_BIN/powerpc-bgl-blrts-gnu-g77 "
45 CMK_CF90='f90'
46 CMK_RANLIB="$BGL_BIN/powerpc-bgl-blrts-gnu-ranlib "
47 CMK_AR="$BGL_BIN/powerpc-bgl-blrts-gnu-ar q "
48 CMK_LD="$CMK_CC $BGL_LIB"
49 CMK_LDXX="$CMK_CXX $BGL_LIB"
50 CMK_LIBS='-lckqt -lbglml.rts -lrts.rts -ldevices.rts'
51 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
52 #CMK_SEQ_LIBS=''
53 #CMK_SEQ_CC="$BGL_BIN/powerpc-bgl-blrts-gnu-gcc -Wno-deprecated "
54 #CMK_SEQ_LD="$CMK_SEQ_CC"
55 #CMK_SEQ_CXX="$BGL_BIN/powerpc-bgl-blrts-gnu-g++ -Wno-deprecated "
56 #CMK_SEQ_LDXX="$CMK_SEQ_CXX"
57 CMK_NATIVE_CC='gcc '
58 CMK_NATIVE_LD='gcc '
59 CMK_NATIVE_CXX='g++ -Wno-deprecated '
60 CMK_NATIVE_LDXX='g++'
61 CMK_F90LIBS='-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math '
62 CMK_MOD_NAME_ALLCAPS=1
63 CMK_MOD_EXT="mod"
64 CMK_F90_USE_MODDIR=1
65 CMK_F90_MODINC="-p"
66 CMK_QT="generic"