annotate scripts/miscellaneous/mex.m @ 5917:f47c0a988fe3

[project @ 2006-07-28 21:21:51 by jwe]
author jwe
date Fri, 28 Jul 2006 21:21:51 +0000
parents 80d3933fb8b6
children 4fb053f24fd6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5904
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 2006 David Bateman
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
2 ##
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
4 ##
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
9 ##
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
14 ##
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
18 ## 02110-1301, USA.
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
19
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
20 ## -*- texinfo -*-
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
21 ## @deftypefn {Function File} {} mex [options] file ...
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
22 ## Compile source code written in C, C++, or Fortran, to a MEX file.
5917
f47c0a988fe3 [project @ 2006-07-28 21:21:51 by jwe]
jwe
parents: 5904
diff changeset
23 ## This is equivalent to @code{mkoctfile --mex [options] file}.
5904
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
24 ## @seealso{mkoctfile}
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
25 ## @end deftypefn
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
26
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
27 ## PKG_ADD: mark_as_command mex
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
28
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
29 function mex (varargin)
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
30 args = {"--mex", varargin{:}};
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
31 mkoctfile (args{:});
80d3933fb8b6 [project @ 2006-07-26 17:19:10 by jwe]
jwe
parents:
diff changeset
32 endfunction