bfa9f3efe88d55142b0735c960d4b86f59a5218f
[charm.git] / src / libs / ck-libs / ampi / ampif77
1 #!/bin/sh
2 CHARMBIN=`dirname $0`
3
4 STANDALONE=""
5
6 processArgs() {
7 while [ ! $# -eq 0 ]
8 do
9   arg="$1"
10   case "$arg" in
11   -standalone)
12      STANDALONE="true"
13      ;;
14   *)
15      ;;
16   esac
17   shift
18 done
19 }
20
21 eval processArgs "$@"
22
23 [ -f $CHARMBIN/../lib/libampiromio.a -a -z "$STANDALONE" ] && ROMIO=-lampiromio
24
25 $CHARMBIN/charmc -language ampif -default-to-aout $@ $ROMIO