Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.241 2000/05/16 11:42:14 peterg +## Addded /usr/lib/libp2c.a to gcc +## ## Revision 1.240 2000/05/10 09:38:58 peterg ## Added Make to list of copied files. ## ## Revision 1.239 2000/04/11 18:08:33 peterg ## Fixed cse.tex bug @@ -814,11 +817,11 @@ #Check $MTTPATH has been set mtt_check_var "$MTTPATH" "MTTPATH" #Version -version='4.1++' +version='4.2' # MTT recursion level is zero unless explicitly set level=0 #Computation mode is octave by default @@ -1513,10 +1516,19 @@ $MAKE -S $verbose -f - $1_$2.$3 << EOF # Cancel implicit rules I don't want %.dvi: %.tex + +# MTT implicit rules +## .oct files +%.oct: %.cc + echo Creating $1_$2.oct; mkoctfile $< + +## .cc files +%.cc: %.p + mtt_p2cc $< ifeq ("$sensitivity","sensitivity") ifeq ("$level","0") $1_abg.fig: $sys_abg.fig abg2sensitivity_fig $sys @@ -1648,15 +1660,27 @@ #SUMMARY sympar symbolic parameters (tex) # txt to tex (LaTeX) sympar conversion $1_sympar.tex: $1_sympar.txt sympar_txt2tex $1 + +#SUMMARY logic Dynamic switch logic (txt) +$1_logic.txt: + echo Creating $1_logic.txt + ( \ + echo '# -*-octave-*- Put Emacs into octave-mode'; \ + echo "# Simulation parameters for system $1 ($1_logic.txt)"; \ + echo "# Generated by MTT on" `date`.; \ + cat $MTTPATH/trans/rcs_header.sh; \ + echo ;\ + )> $1_logic.txt + #SUMMARY switch Dynamic switch information (txt) $1_switch.txt: $1_struc.txt struc2switch_txt $1 -$1_switchopen.m: $1_switch.txt $1_sympars.txt +$1_switchopen.m: $1_switch.txt $1_sympars.txt $1_logic.txt switch_txt2m $1 #SUMMARY sympars sympar + dynamic switch information (txt) $1_sympars.txt: $1_sympar.txt $1_switch.txt echo Creating $1_sympars.txt @@ -1958,13 +1982,10 @@ $1_cseo.m: $1_cse.m touch $1_cseo.m $1_cse.tex: $1_cse.r $1_sympar.r $1_simp.r cse_r2tex $1 $2; latex_tidy $1_cse.tex -## Implicit oct rules -%.oct: %.p - mtt_p2oct $< #SUMMARY scse sensitivity constrained-state equations (r) #SUMMARY scse sensitivity constrained-state equations (tex) #SUMMARY scse sensitivity constrained-state equations (ps)