Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +# Revision 1.74 1997/05/13 16:58:02 peterg +# Added -s switch to get mtt to search for (Bond Graph) switches +# ## Revision 1.73 1997/05/09 09:18:45 peterg ## Put ./ in front of a.out (again) ## # Revision 1.72 1997/05/06 13:54:21 peterg # Changed gcc arguments for the ode simulation -- all files now included @@ -628,12 +631,10 @@ struc2switch_txt $1; \ echo "Appending switch declarations"; \ cat $1_sympar.txt1 $1_switch.txt> $1_sympar.txt; \ fi -$1_switch.c: $1_sub.sh - struc2switch_txt2c $1 endif # ## Old version -- just looks on top level # ## $1_sympar.r: $1_lbl.txt $1_params.r @@ -689,11 +690,13 @@ $1_input.c: $1_input.txt $1_sympar.c input_txt2c $1 endif ifeq ($switches,1) -$1_input.c: $1_input.txt $1_sympar.c +$1_switch.c: $1_struc.txt + struc2switch_txt2c $1 +$1_input.c: $1_input.txt $1_sympar.c $1_switch.c input_txt2c -s $1 endif