Revision 1114 trunk/scripts/admb/adcomp

adcomp (revision 1114)
11 11
if [[ "$1" == "-help" ]]; then help; exit; fi
12 12
if [[ "$1" == "--help" ]]; then help; exit; fi
13 13

  
14
if [ -f "$ADMB_HOME/bin/admb-cfg.sh" ]; then
15
  source "$ADMB_HOME/bin/admb-cfg.sh"
16
else
17
  CXX=c++
18
fi
19

  
20
if [ "$CXX" == "openCC" ]; then
21
  sym=-O2
22
else
23
  sym=-O3
24
fi
25

  
14 26
# Pop args until model=$1
15 27
unset dll
16 28
opt=-DSAFE_ALL
17
sym=-O3
18 29
while getopts "dgrs" A; do
19 30
  case $A in
20 31
    d) dll=-DBUILDING_DLL;;
......
31 42
  file=$file.cpp
32 43
fi
33 44

  
34
if [ -f "$ADMB_HOME/bin/admb-cfg.sh" ]; then
35
  source "$ADMB_HOME/bin/admb-cfg.sh"
36
else
37
  CXX=c++
38
fi
39 45

  
40 46
CXXFLAGS="-c $CXXFLAGS $sym"
41 47
if [ ! -z "$dll" ]; then

Also available in: Unified diff