︙ | | | ︙ | |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.334 2002/05/01 14:10:22 gawthrop
## Added -dr foo (reads from dir foo) option
##
## Revision 1.333 2002/04/28 18:41:26 geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
|
>
>
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright (C) 2001 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.335 2002/05/01 17:30:55 geraint
## Improved pre-processor directives to better accommodate future alternatives (matlab)
## if necessary.
##
## Revision 1.334 2002/05/01 14:10:22 gawthrop
## Added -dr foo (reads from dir foo) option
##
## Revision 1.333 2002/04/28 18:41:26 geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
|
︙ | | | ︙ | |
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
|
rm -f *_rep.tex
rm -f *_unique_raw_list *_raw_list
rm -f mtt_error.txt mtt_info.txt *_ode2odes.out
rm -f *_*_write.r *_simpar.m *_simpar.p
rm -f *_cseo.oct *_input.oct *_simpar.oct *_smxax.oct
rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct
rm -f *_ode.oct *_odeo.oct
rm -f *_cseo.cc *_input.cc *_simpar.cc *_smxax.cc
rm -f *_csex.cc *_numpar.cc *_smxa.cc *_state.cc
rm -f *_ode.cc *_odeo.cc
rm -f *_logic.m *_logic.cc *_logic.oct
rm -f *_state.m *_state.cc *_state.oct
rm -f *_ode2odes.* *.dat2 MTT.core
rm -f *_modpar.txt *_modpar.r
|
>
>
>
|
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
|
rm -f *_rep.tex
rm -f *_unique_raw_list *_raw_list
rm -f mtt_error.txt mtt_info.txt *_ode2odes.out
rm -f *_*_write.r *_simpar.m *_simpar.p
rm -f *_cseo.oct *_input.oct *_simpar.oct *_smxax.oct
rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct
rm -f *_ode.oct *_odeo.oct
rm -f *_cseo.mexglx *_input.mexglx *_simpar.mexglx *_smxax.mexglx
rm -f *_csex.mexglx *_numpar.mexglx *_smxa.mexglx *_state.mexglx
rm -f *_ode.mexglx *_odeo.mexglx
rm -f *_cseo.cc *_input.cc *_simpar.cc *_smxax.cc
rm -f *_csex.cc *_numpar.cc *_smxa.cc *_state.cc
rm -f *_ode.cc *_odeo.cc
rm -f *_logic.m *_logic.cc *_logic.oct
rm -f *_state.m *_state.cc *_state.oct
rm -f *_ode2odes.* *.dat2 MTT.core
rm -f *_modpar.txt *_modpar.r
|
︙ | | | ︙ | |
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
|
rm -f $1_rep.tex
rm -f $1_unique_raw_list $1_raw_list
rm -f mtt_error.txt mtt_info.txt $1_ode2odes.out
rm -f $1_*_write.r $1_simpar.m $1_simpar.p
rm -f $1_cseo.oct $1_input.oct $1_simpar.oct $1_smxax.oct
rm -f $1_csex.oct $1_numpar.oct $1_smxa.oct $1_state.oct
rm -f $1_ode.oct $1_odeo.oct
rm -f $1_cseo.cc $1_input.cc $1_simpar.cc $1_smxax.cc
rm -f $1_csex.cc $1_numpar.cc $1_smxa.cc $1_state.cc
rm -f $1_ode.cc $1_odeo.cc
rm -f $1_logic.m $1_logic.cc $1_logic.oct
rm -f $1_state.m $1_state.cc $1_state.oct
rm -f $1_ode2odes.* $1.dat2
rm -f $1_modpar.txt $1_modpar.r
|
>
>
>
|
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
|
rm -f $1_rep.tex
rm -f $1_unique_raw_list $1_raw_list
rm -f mtt_error.txt mtt_info.txt $1_ode2odes.out
rm -f $1_*_write.r $1_simpar.m $1_simpar.p
rm -f $1_cseo.oct $1_input.oct $1_simpar.oct $1_smxax.oct
rm -f $1_csex.oct $1_numpar.oct $1_smxa.oct $1_state.oct
rm -f $1_ode.oct $1_odeo.oct
rm -f $1_cseo.mexglx $1_input.mexglx $1_simpar.mexglx $1_smxax.mexglx
rm -f $1_csex.mexglx $1_numpar.mexglx $1_smxa.mexglx $1_state.mexglx
rm -f $1_ode.mexglx $1_odeo.mexglx
rm -f $1_cseo.cc $1_input.cc $1_simpar.cc $1_smxax.cc
rm -f $1_csex.cc $1_numpar.cc $1_smxa.cc $1_state.cc
rm -f $1_ode.cc $1_odeo.cc
rm -f $1_logic.m $1_logic.cc $1_logic.oct
rm -f $1_state.m $1_state.cc $1_state.oct
rm -f $1_ode2odes.* $1.dat2
rm -f $1_modpar.txt $1_modpar.r
|
︙ | | | ︙ | |
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
|
echo Creating $1_\$*.oct; $MKOCTFILE -DCODEGENTARGET=OCTAVEDLD $1_\$*.cc
.PRECIOUS: mtt_%.oct
mtt_%.oct: mtt_%.cc
echo Compiling \$<
${MKOCTFILE} -DCODEGENTARGET=OCTAVEDLD $define_octave_dev \$<
## .cc files
.PRECIOUS: %.cc # Don't let mtt delete them
$1_%.cc: $1_%.m
mtt_m2cc.sh $1 \$* cat
mtt_%.cc: ${MTT_LIB}/cc/mtt_%.cc
cp ${MTT_LIB}/cc/mtt_\$*.cc mtt_\$*.cc
|
>
>
>
>
>
>
>
|
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
|
echo Creating $1_\$*.oct; $MKOCTFILE -DCODEGENTARGET=OCTAVEDLD $1_\$*.cc
.PRECIOUS: mtt_%.oct
mtt_%.oct: mtt_%.cc
echo Compiling \$<
${MKOCTFILE} -DCODEGENTARGET=OCTAVEDLD $define_octave_dev \$<
## .mex files
$1_%.mexglx: $1_%.cc $1_def.h $1_sympar.h $1_cr.h
echo Creating $1_\$*.mexglx
${MTT_CXX} -shared -o $1_\$*.mexglx $1_\$*.cc \
${MTT_MATLAB_FLAGS} -DCODEGENTARGET=MATLABMEX \
${MTT_CXXINCS} ${MTT_CXXLIBS} ${MTT_CXXFLAGS} ${MTT_LIB}/cc/mtt_kpathsea.cc
## .cc files
.PRECIOUS: %.cc # Don't let mtt delete them
$1_%.cc: $1_%.m
mtt_m2cc.sh $1 \$* cat
mtt_%.cc: ${MTT_LIB}/cc/mtt_%.cc
cp ${MTT_LIB}/cc/mtt_\$*.cc mtt_\$*.cc
|
︙ | | | ︙ | |