# Compile modes (specified by user): libraries on mercure # # Note : - all libraries are compiled with -Pstack # - the models use their own (stack/static) option # if [ $compile_mode = default ]; then optc=" " optl=" " optf=" -Wf,-pvctl noassume " optf77=" -Wf,-pvctl noassume " elif [ $compile_mode = debug ]; then optc=" " optf=" -Wf,-pvctl noassume -ftrace" optf77=" -Wf,-pvctl noassume -ftrace" optl=" -ftrace" elif [ $compile_mode = profile ]; then echo "not yet possible" exit 1 elif [ $compile_mode = opt ]; then optc="-Chopt" optf="-Chopt" optf77="-Chopt" optl=" -Wl,-Z 1000000 -pi line=1000" elif [ $compile_mode = ad_hoc ]; then echo "with this option the options are set through GUI input" exit 1 else echo "Invalid compile mode" exit 1 fi # Other compile options optdbl="-dw -Wf,-A idbl4" optnh="" lstflags="-Wf,-L fmtlist transform"