1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of naff_cc</title> |
---|
6 | <meta name="keywords" content="naff_cc"> |
---|
7 | <meta name="description" content="cc_all - Compile nafflibrary for Matlab"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../../../../../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../../../../../index.html">Home</a> > <a href="#">machine</a> > <a href="#">Soleil</a> > <a href="../../index.html">common</a> > <a href="#">naff</a> > <a href="index.html">nafflib</a> > naff_cc.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../../../../../index.html"><img alt="<" border="0" src="../../../../../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for machine/Soleil/common/naff/nafflib <img alt=">" border="0" src="../../../../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>naff_cc |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
24 | <div class="box"><strong>cc_all - Compile nafflibrary for Matlab</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function naff_cc </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment"> cc_all - Compile nafflibrary for Matlab</pre></div> |
---|
31 | |
---|
32 | <!-- crossreference --> |
---|
33 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
34 | This function calls: |
---|
35 | <ul style="list-style-image:url(../../../../../matlabicon.gif)"> |
---|
36 | </ul> |
---|
37 | This function is called by: |
---|
38 | <ul style="list-style-image:url(../../../../../matlabicon.gif)"> |
---|
39 | </ul> |
---|
40 | <!-- crossreference --> |
---|
41 | |
---|
42 | <h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
43 | <ul style="list-style-image:url(../../../../../matlabicon.gif)"> |
---|
44 | <li><a href="#_sub1" class="code">function internal_cc(fn)</a></li></ul> |
---|
45 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../../../up.png"></a></h2> |
---|
46 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function naff_cc</a> |
---|
47 | 0002 <span class="comment">% cc_all - Compile nafflibrary for Matlab</span> |
---|
48 | 0003 <span class="comment">%</span> |
---|
49 | 0004 |
---|
50 | 0005 <span class="comment">% Modified by Laurent S. Nadolski</span> |
---|
51 | 0006 <span class="comment">% April 6th, 2007</span> |
---|
52 | 0007 |
---|
53 | 0008 cd_old = pwd; |
---|
54 | 0009 cd(fileparts(which(<span class="string">'naff_cc'</span>))) |
---|
55 | 0010 |
---|
56 | 0011 disp([<span class="string">'Compiling NAFF routines on '</span>, computer,<span class="string">'.'</span>]) |
---|
57 | 0012 |
---|
58 | 0013 <span class="comment">% Object files</span> |
---|
59 | 0014 disp(<span class="string">'Compiling: modnaff.c'</span>); |
---|
60 | 0015 mex -I/usr/local/matlab/extern/include -O -c modnaff.c |
---|
61 | 0016 |
---|
62 | 0017 disp(<span class="string">'Compiling: example.c'</span>); |
---|
63 | 0018 mex -I/usr/local/matlab/extern/include -O -c complexe.c |
---|
64 | 0019 |
---|
65 | 0020 disp(<span class="string">'Compiling: nafflib.c'</span>); |
---|
66 | 0021 |
---|
67 | 0022 <a href="#_sub1" class="code" title="subfunction internal_cc(fn)">internal_cc</a>(<span class="string">'nafflib.c modnaff.o complexe.o'</span>); |
---|
68 | 0023 |
---|
69 | 0024 cd(cd_old); |
---|
70 | 0025 |
---|
71 | 0026 <a name="_sub1" href="#_subfunctions" class="code">function internal_cc(fn)</a> |
---|
72 | 0027 <span class="comment">% cc(filename)</span> |
---|
73 | 0028 <span class="comment">%</span> |
---|
74 | 0029 <span class="comment">% Version 5, Solaris compiling function</span> |
---|
75 | 0030 <span class="comment">%</span> |
---|
76 | 0031 |
---|
77 | 0032 disp([<span class="string">'Compiling: '</span>,fn]); |
---|
78 | 0033 |
---|
79 | 0034 cmdstr = [ <span class="string">'mex -I/usr/local/matlab/extern/include -O '</span>, fn ]; |
---|
80 | 0035 disp(cmdstr); |
---|
81 | 0036 eval(cmdstr);</pre></div> |
---|
82 | <hr><address>Generated on Mon 21-May-2007 15:35:27 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
83 | </body> |
---|
84 | </html> |
---|