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 atmexall</title> |
---|
6 | <meta name="keywords" content="atmexall"> |
---|
7 | <meta name="description" content="ATMEXALL builds all AT platform deendent mex-files from C-sources"> |
---|
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="index.html">at</a> > atmexall.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 at <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>atmexall |
---|
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>ATMEXALL builds all AT platform deendent mex-files from C-sources</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>This is a script file. </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">ATMEXALL builds all AT platform deendent mex-files from C-sources |
---|
31 | On UNIX platform, the GNU gcc compiler must be installed and |
---|
32 | properly configured. |
---|
33 | On Windows, Microsoft Visual C++ is required</pre></div> |
---|
34 | |
---|
35 | <!-- crossreference --> |
---|
36 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
37 | This function calls: |
---|
38 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
39 | <li><a href="atroot.html" class="code" title="function rootdir = atroot">atroot</a> ATROOT returns Accelerator Toolbox root directory</li></ul> |
---|
40 | This function is called by: |
---|
41 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
42 | </ul> |
---|
43 | <!-- crossreference --> |
---|
44 | |
---|
45 | |
---|
46 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
47 | <div class="fragment"><pre>0001 <span class="comment">%ATMEXALL builds all AT platform deendent mex-files from C-sources</span> |
---|
48 | 0002 <span class="comment">% On UNIX platform, the GNU gcc compiler must be installed and</span> |
---|
49 | 0003 <span class="comment">% properly configured.</span> |
---|
50 | 0004 <span class="comment">% On Windows, Microsoft Visual C++ is required</span> |
---|
51 | 0005 |
---|
52 | 0006 <span class="comment">% Modification by Laurent S. Nadolski, April 6th, 2007</span> |
---|
53 | 0007 <span class="comment">% For Linux platform -ldl is need (personal laptop)</span> |
---|
54 | 0008 <span class="comment">% PLATFORMOPTION = ['-ldl -D',computer,' '];</span> |
---|
55 | 0009 |
---|
56 | 0010 ATROOT = <a href="atroot.html" class="code" title="function rootdir = atroot">atroot</a> |
---|
57 | 0011 |
---|
58 | 0012 <span class="comment">% Navigate to the directory that contains pass-methods</span> |
---|
59 | 0013 cd(ATROOT) |
---|
60 | 0014 cd simulator |
---|
61 | 0015 cd element |
---|
62 | 0016 PASSMETHODDIR = pwd; |
---|
63 | 0017 disp([<span class="string">'Current directory: '</span>,PASSMETHODDIR]); |
---|
64 | 0018 mexpassmethod(<span class="string">'all'</span>); |
---|
65 | 0019 |
---|
66 | 0020 |
---|
67 | 0021 <span class="comment">% User passmethods</span> |
---|
68 | 0022 cd user |
---|
69 | 0023 disp([<span class="string">'Current directory: '</span>, pwd]); |
---|
70 | 0024 mexuserpassmethod(<span class="string">'all'</span>); |
---|
71 | 0025 |
---|
72 | 0026 |
---|
73 | 0027 <span class="comment">% Navigate to the directory that contains tracking functions</span> |
---|
74 | 0028 cd(ATROOT) |
---|
75 | 0029 cd simulator |
---|
76 | 0030 cd track |
---|
77 | 0031 |
---|
78 | 0032 disp([<span class="string">'Current directory:'</span>, pwd]); |
---|
79 | 0033 |
---|
80 | 0034 <span class="keyword">switch</span> computer |
---|
81 | 0035 <span class="keyword">case</span> <span class="string">'SOL2'</span> |
---|
82 | 0036 PLATFORMOPTION = [<span class="string">'-D'</span>,computer,<span class="string">' '</span>]; |
---|
83 | 0037 <span class="keyword">case</span> <span class="string">'GLNX86'</span> |
---|
84 | 0038 PLATFORMOPTION = [<span class="string">'-ldl -D'</span>,computer,<span class="string">' '</span>]; <span class="comment">% add by Laurent April 6th, 2007</span> |
---|
85 | 0039 <span class="keyword">end</span> |
---|
86 | 0040 |
---|
87 | 0041 MEXCOMMAND = [<span class="string">'mex '</span>,PLATFORMOPTION,<span class="string">'atpass.c'</span>]; |
---|
88 | 0042 disp(MEXCOMMAND); |
---|
89 | 0043 eval(MEXCOMMAND); |
---|
90 | 0044 |
---|
91 | 0045 <span class="comment">% Navigate to the directory that contains some accelerator physics functions</span> |
---|
92 | 0046 cd(ATROOT) |
---|
93 | 0047 cd atphysics |
---|
94 | 0048 disp([<span class="string">'Current directory:'</span>, pwd]); |
---|
95 | 0049 |
---|
96 | 0050 <span class="comment">% findmpoleraddiffmatrix.c</span> |
---|
97 | 0051 disp(<span class="string">'mex findmpoleraddiffmatrix.c'</span>) |
---|
98 | 0052 |
---|
99 | 0053 eval([<span class="string">'mex findmpoleraddiffmatrix.c -I'''</span>,PASSMETHODDIR,<span class="string">''''</span>]); |
---|
100 | 0054 <span class="comment">% ADD 'MEXING' instructions for other C files</span> |
---|
101 | 0055 disp(<span class="string">'ALL mex-files created successfully'</span>) |
---|
102 | 0056 clear ATROOT PASSMETHODDIR WARNMSG PLATFORMOPTION MEXCOMMAND</pre></div> |
---|
103 | <hr><address>Generated on Mon 21-May-2007 15:26:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
104 | </body> |
---|
105 | </html> |
---|