Merge branch 'charm' of charmgit:charm into charm
[charm.git] / src / arch / net-linux / conv-mach.sh
1 CMK_CPP_CHARM="/lib/cpp -P"
2 CMK_CPP_C="gcc -m32 -E"
3 CMK_CC="gcc -m32"
4 CMK_CXX="g++ -m32"
5 CMK_CXXPP="$CMK_CXX -x c++ -E "
6 CMK_RANLIB="ranlib"
7 CMK_LIBS="-lckqt"
8 #CMK_LD="$CMK_CC -Wl,--allow-multiple-definition "
9 #CMK_LDXX="$CMK_CXX -Wl,--allow-multiple-definition "
10 CMK_LD="$CMK_CC "
11 CMK_LDXX="$CMK_CXX "
12 CMK_LD_SHARED="-shared"
13 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
14 CMK_XIOPTS=""
15 CMK_QT="i386-gcc"
16
17 CMK_CF90=`which f95 2>/dev/null`
18 if test -n "$CMK_CF90"
19 then
20     . $CHARMINC/conv-mach-gfortran.sh
21 else
22
23 # fortran compiler f77 or gnu f95
24 CMK_CF77=`which g77 2>/dev/null`
25 if test -z "$CMK_CF77"
26 then
27   CMK_CF77=`which f77 2>/dev/null`
28 fi
29 if test -n "$CMK_CF77"
30 then
31   CMK_F77LIBS="-lg2c "
32 fi
33
34 CMK_CF90=`which f90 2>/dev/null`
35 if test -n "$CMK_CF90"
36 then
37 # absoft
38   CMK_CF90_FIXED="$CMK_CF90 -W132 "
39   CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
40   CMK_F90_USE_MODDIR=1
41   CMK_F90_MODINC="-p"
42 else
43 # gnu f95
44   CMK_CF90=`which f95 2>/dev/null`
45   if test -n "$CMK_CF90"
46   then
47     CMK_FPP="/lib/cpp -P -CC"
48     CMK_CF90="$CMK_CF90 -fpic -fautomatic -fdollar-ok "
49     CMK_CF90_FIXED="$CMK_CF90 -ffixed-form "
50     CMK_F90LIBS="-lgfortran "
51     CMK_F90_USE_MODDIR=1
52     CMK_F90_MODINC="-I"
53   fi
54 fi
55
56 fi